[IPython-dev] nbopen & nbmanager - a pair of tools for IPython Notebook on your own machine

Thomas Kluyver takowl at gmail.com
Mon Aug 4 01:49:02 EDT 2014


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:

http://ipython.org/ipython-doc/dev/api/generated/IPython.html.notebookapp.html#IPython.html.notebookapp.list_running_servers

nbmanager also includes a slightly higher level API around that, which is
completely independent of all the GUI code (though this requires IPython 3):

https://github.com/takluyver/nbmanager/blob/master/nbmanager/api.py

Best wishes,
Thomas


On 3 August 2014 22:34, Joshua Barratt <jbarratt at serialized.net> wrote:

> 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.
>
> I created something similar to nbmanager, but much more stripped down and
> only allows viewing.
>
> I called mine nblist
> <https://gist.github.com/jbarratt/ae8026493fedc79f122b>.
>
>         $ nblist
>           http://127.0.0.1:8088 | /Users/me/work/notebooks
>
>           http://127.0.0.1:8089 | /Users/me/work/otherproject
>
>
> I also recently wrote something called nbgrep
> <https://gist.github.com/jbarratt/fa1d3473048e5f856aeb> (blog post here
> <http://serialized.net/2014/07/mining-your-ipython-notebooks-with-nbgrep/>)
> which allows you to search the input cells of all your notebooks,
> regardless of directory.
>
> Unfortunately both of mine only work on OSX, though they could be modified
> to be cross-platform.
>
> Josh
>
> On Fri, Aug 1, 2014 at 2:55 PM, Thomas Kluyver <takowl at gmail.com> wrote:
>
>> I've been working on a couple of tools to improve the experience of
>> working with IPython notebooks on your own computer.
>>
>> 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):
>>
>> https://github.com/takluyver/nbopen
>>
>> 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:
>>
>> https://github.com/takluyver/nbmanager
>>
>> nbopen will work on IPython 2, while nbmanager, which is more
>> experimental, requires you to be running IPython from git at the moment.
>>
>> Thomas
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140803/15c49975/attachment.html>


More information about the IPython-dev mailing list