[IPython-User] ipycli - command line support for notebooks
Tue Jul 10 10:04:32 CDT 2012
Le 9 juil. 2012 à 19:24, Dale Jung a écrit :
> 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.
> nb add-dir hello
> nb test4/wheee.ipynb
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)
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User