<div dir="ltr"><div>It <i>almost</i> works on IPython 2.x, except the nbserver-* JSON blobs only have the PID's in the name, not the actual file.</div><div><br></div>I took a pass at fixing this up for IPython 2.x, by borrowing some of the code from the master branch, and it seems to be working.<div>
<br></div><div><a href="https://gist.github.com/jbarratt/ae8026493fedc79f122b">https://gist.github.com/jbarratt/ae8026493fedc79f122b</a><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 3, 2014 at 10:49 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Neat, thanks for those. For nblist, instead of scanning processes and ports, it may be easier to use our API function list_running_servers(), especially for cross platform support:<br>
<br><a href="http://ipython.org/ipython-doc/dev/api/generated/IPython.html.notebookapp.html#IPython.html.notebookapp.list_running_servers" target="_blank">http://ipython.org/ipython-doc/dev/api/generated/IPython.html.notebookapp.html#IPython.html.notebookapp.list_running_servers</a><br>
<br></div>nbmanager also includes a slightly higher level API around that, which is completely independent of all the GUI code (though this requires IPython 3):<br><br><a href="https://github.com/takluyver/nbmanager/blob/master/nbmanager/api.py" target="_blank">https://github.com/takluyver/nbmanager/blob/master/nbmanager/api.py</a><br>
<br></div>Best wishes,<br>Thomas<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 August 2014 22:34, Joshua Barratt <span dir="ltr"><<a href="mailto:jbarratt@serialized.net" target="_blank">jbarratt@serialized.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for sharing those, very cool. I had been thinking about doing something like nbopen, I'm happy to see that's something I can delete off of the infinite to-do list.<div>
<br></div><div>I created something similar to nbmanager, but much more stripped down and only allows viewing.</div>
<div><br></div><div>I called mine <a href="https://gist.github.com/jbarratt/ae8026493fedc79f122b" target="_blank">nblist</a>. <br></div><div><br></div><div><pre style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;width:748px;color:rgb(51,51,51);line-height:16.799999237060547px">
<div> $ nblist</div><div> <a href="http://127.0.0.1:8088" target="_blank">http://127.0.0.1:8088</a> | /Users/me/work/notebooks</div><div>
<a href="http://127.0.0.1:8089" target="_blank">http://127.0.0.1:8089</a> | /Users/me/work/otherproject</div></pre></div><div class="gmail_extra"><br></div><div class="gmail_extra">I also recently wrote something called <a href="https://gist.github.com/jbarratt/fa1d3473048e5f856aeb" target="_blank">nbgrep</a> (blog post <a href="http://serialized.net/2014/07/mining-your-ipython-notebooks-with-nbgrep/" target="_blank">here</a>) which allows you to search the input cells of all your notebooks, regardless of directory.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Unfortunately both of mine only work on OSX, though they could be modified to be cross-platform.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Josh<br><br><div class="gmail_quote"><div><div>On Fri, Aug 1, 2014 at 2:55 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
<div dir="ltr"><div><div><div><div>I've been working on a couple of tools to improve the experience of working with IPython notebooks on your own computer.<br><br></div>First, nbopen, a tool to open a notebook in the nearest available server, or start a new server if there isn't one available. It now integrates with your file manager so you can double click on a notebook file to open it (open source desktops only for now, PRs for other systems welcome):<br>
<br><a href="https://github.com/takluyver/nbopen" target="_blank">https://github.com/takluyver/nbopen</a><br><br></div>However, there's no easy way to shut down notebook servers launched by double clicking on notebooks, because there isn't a terminal where you can press ctrl-c. So I also made nbmanager, a GUI app which discovers running notebook servers and open notebooks, and lets you easily shut them down:<br>
<br><a href="https://github.com/takluyver/nbmanager" target="_blank">https://github.com/takluyver/nbmanager</a><br><br></div>nbopen will work on IPython 2, while nbmanager, which is more experimental, requires you to be running IPython from git at the moment.<span><font color="#888888"><br>
<br></font></span></div><span><font color="#888888">Thomas<br></font></span></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><br></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><br></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><br></div>