[IPython-dev] NotebookManager API

Doug Blank doug.blank at gmail.com
Tue Jan 28 10:46:44 EST 2014


I just found out what a NoteBook manager is, but I see that there is a gist
here from a year ago:

https://gist.github.com/zylinqk/4107048

Don't know if that would be helpful.

-Doug


On Tue, Jan 28, 2014 at 10:23 AM, Matthias BUSSONNIER <
bussonniermatthias at gmail.com> wrote:

> 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
>
> _______________________________________________
> 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/20140128/411249e0/attachment.html>


More information about the IPython-dev mailing list