<div dir="ltr">You can do a widget box and next to it a button, like "Load file" and then link the button click even to the name of the text in the file. I can give you some help later this week if you have trouble finding how to do that (we are about to pack up computers for a lab move)</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 4:11 PM, Antonino Ingargiola <span dir="ltr"><<a href="mailto:tritemio@gmail.com" target="_blank">tritemio@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, is there a widget I can use for that? If yes I must have missed it...<div><br></div><div>Antonio</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 11:53 AM, Adam Hughes <span dir="ltr"><<a href="mailto:hughesadam87@gmail.com" target="_blank">hughesadam87@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Would you be able to just use an IPython widget to get the file name? </div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Dec 17, 2014 at 2:37 PM, Antonino Ingargiola <span dir="ltr"><<a href="mailto:tritemio@gmail.com" target="_blank">tritemio@gmail.com</a>></span> wrote:</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Dear ipython developers,<div><br></div><div>I occasionally have the need to get a data file name via a GUI dialog when using the notebook.</div><div><br></div><div>Opening a QT dialog from the notebook involves initializing the QT gui. At the same time I always use inline plots so I also need to enable the inline plot backed. This can be done with</div><div><br></div><div> %gui qt</div><div> %matplotlib inline</div><div><br></div><div>These commands work when executed manually on different cells.</div><div>However, the previous commands will freeze the ipython notebook if they are in the same cell or if executing the notebook with Run-All (open issue <a href="https://github.com/ipython/ipython/issues/5798" target="_blank">#5798</a>). The problem is multi-platform and occurs both with PySide and PyQT.<br><br></div><div>Is there any workaround for this? It really bothers me to lose the ability to Run-All when I enable the QT gui.</div><div><br></div><div>Alternatively would be possible to use a javascript dialog to select a file on the filesystem? If yes an example would be nice.</div><div><br></div><div>PS: I'm using ipython 2.x</div><div><br></div><div>Thanks,</div><div>Antonio</div></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div></div>
</div></div><br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div></div>