[IPython-User] ipycli - command line support for notebooks

Matthias BUSSONNIER bussonniermatthias@gmail....
Tue Jul 10 10:04:32 CDT 2012

Le 9 juil. 2012 à 19:24, Dale Jung a écrit :

> Hi,
> Just wanted to share a project I started over the weekend. It's essentially the IPython notebook modified to support arbitrary pathed notebooks and directories. The idea being that you have one notebook server and add/create notebooks from the command line. 
> The basic usage would be:
> nb add-dir some_directory # add the directory to the list of notebook_dirs
> nb note.ipynb # add a single notebook
> ipycli has two types of notebooks. Those that come from notebook dirs, which work like the normal Notebook except you can have multiple, and the pathed notebooks which only list the added notebook. 
> Example:
> nb add-dir hello
> nb test4/wheee.ipynb
> https://img.skitch.com/20120709-jeduufmwer7gseek6w3xu21xex.jpg

That's quite cool. 
We (especially Brian) plan on making the notebook dashboard able to browse the filesystem to run different notebooks.
I guess we should start discussing of how to do it (maybe on SciPy next week ?).
Having a cli client on top of that would be really great.

I'm sure there are some code that are worth integrating upstream, as we will someday have to write it. 
(like I saw you started adding vim keyMap which is often requested) 
So feel free to open a pull request, even if code is not integrating as is, it is always a point where
we can discuss on how we want things to be, and will alway be less work if our internal changes.

You can also list your project somewhere on the wiki. (http://wiki.ipython.org)


> Caveats:
> while ipycli doesn't require modifying your ipython install, it was only tested again dev (@811283a)
> The nb script in bin assumes that your ipycli server is running locally and on port 8888. You can change that in the script. 
> I turned on the stable guids, which means the notebook_id is stable as long as it's not renamed. I'm not sure what the implications of that are, but I'm ignoring the comment warning for the sake of convenience… for now.
> Dale Jung
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120710/05262b3b/attachment.html 

More information about the IPython-User mailing list