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

Dale Jung dale@dalejung....
Tue Jul 10 22:49:23 CDT 2012

Quick update. 

Added simple persistence that will save/reload notebook dirs and pathed notebooks.

Added an autosave. It'll check every 10 seconds for changes. The save file will be ".[name].ipynb.[client_id].save". Client id will be unique per browser window. Was kind of paranoid of opening two windows to the same file and ping ponging autosaves. 

There isn't any gui based management of the autosaves. It's really just there for those holy crap moments. 

There is vim support, but it's disabled by default. uncomment the keyMap line in notebook.js

On Jul 10, 2012, at 11:04 AM, Matthias BUSSONNIER wrote:

> 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)
> Thanks.
> -- 
> Matthias
>> 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
> _______________________________________________
> 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/a03fce9c/attachment-0001.html 

More information about the IPython-User mailing list