Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Make nbformat more "standalone" #2251

Carreau opened this Issue Aug 4, 2012 · 3 comments


None yet
3 participants

Carreau commented Aug 4, 2012

When writing gistpynb I had to import nbformat that pulled lots of stuff from IPython.utils and grepping through IPython.utils it depends on IPython in a few place.

It would be cool to make some part of IPython more copy and past friendly.


takluyver commented Aug 4, 2012

The idea behind IPython.utils is that it provides useful functions and classes that aren't specific to IPython - if they're useful in nbformat, I think it makes sense to use them there.


Carreau commented Aug 5, 2012

so the problem is that, in IPython.utils you find

from IPython.config import Application
from IPython.core import release
from IPython.core.error import TryNext
from IPython.core.hooks import CommandChainDispatcher

Wich make it non-friendly to bundle elsewhere


takluyver commented Aug 5, 2012

Yep, those should ideally be refactored - although bits of it are API that we can't really change (e.g. there are public functions in IPython.utils.path that have to know about profile directories and so on.

IPython.utils should also be fairly modular, so it should be possible to import other useful bits without triggering imports of core.

@minrk minrk removed the prio-low label Jan 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment