[IPython-dev] NotebookManager API

Matthias BUSSONNIER bussonniermatthias at gmail.com
Tue Jan 28 10:23:27 EST 2014


Hi Konrad, 

You are probably one of the first to go this route, 
I suggest you open github issues about that and we can fix them as we go. 

But otherwise, I think that inheriting NotebookManager  is the good way to go. 
-- 
Matthias

Le 28 janv. 2014 à 16:14, Konrad Hinsen a écrit :

> I am working on my NotebookManager, using IPython.html.services.notebooks.nbmanager,
> IPython.html.services.notebooks.filenbmanager, and the "bookstore" plugin
> as a guidance. However, my NotebookManager differs in one fundamental aspect:
> its backing store is not a filesystem, meaning there are no filenames and in
> particular no extensions.
> 
> Is there any documentation for the NotebookManager API that is more
> precise than the existing implementations? I wonder in particular
> about the rules for the "path" and "name" arguments of the various
> methods. One problem I am fighting with is that my get_notebook_model
> gets called sometimes with the notebook names that I return in
> list_notebooks, but sometimes with the names suffixed with ".ipynb". I
> also see calls to list_notebooks with values of "path" that don't
> satisfy my path_exists test.
> 
> Inspecting the source code, I wonder what the distinction between the
> classes NotebookManager and FileNotebookManager is. The names suggest
> that FileNotebookManager is specific to a filesystem-based manager,
> whereas NotebookManager is generic, but NotebookManager already
> contains calls to os.path. I am writing my own manager as a subclass
> of NotebookManager, but perhaps I shouldn't.
> 
> Konrad.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev




More information about the IPython-dev mailing list