diff --git a/jupyter_notebook/nbconvert/handlers.py b/jupyter_notebook/nbconvert/handlers.py index cc40a85532..2c1dc1dc32 100644 --- a/jupyter_notebook/nbconvert/handlers.py +++ b/jupyter_notebook/nbconvert/handlers.py @@ -57,7 +57,7 @@ def get_exporter(format, **kwargs): """get an exporter, raising appropriate errors""" # if this fails, will raise 500 try: - from jupyter_nbconvert.exporters.export import exporter_map + from nbconvert.exporters.export import exporter_map except ImportError as e: raise web.HTTPError(500, "Could not import nbconvert: %s" % e) diff --git a/jupyter_notebook/services/contents/filemanager.py b/jupyter_notebook/services/contents/filemanager.py index d7755de997..b103dc01bc 100644 --- a/jupyter_notebook/services/contents/filemanager.py +++ b/jupyter_notebook/services/contents/filemanager.py @@ -34,7 +34,7 @@ def _post_save_script(model, os_path, contents_manager, **kwargs): replaces `ipython notebook --script` """ - from jupyter_nbconvert.exporters.script import ScriptExporter + from nbconvert.exporters.script import ScriptExporter if model['type'] != 'notebook': return diff --git a/jupyter_notebook/services/nbconvert/handlers.py b/jupyter_notebook/services/nbconvert/handlers.py index edc55ce83d..f23ddc92be 100644 --- a/jupyter_notebook/services/nbconvert/handlers.py +++ b/jupyter_notebook/services/nbconvert/handlers.py @@ -11,7 +11,7 @@ class NbconvertRootHandler(IPythonHandler): @json_errors def get(self): try: - from jupyter_nbconvert.exporters.export import exporter_map + from nbconvert.exporters.export import exporter_map except ImportError as e: raise web.HTTPError(500, "Could not import nbconvert: %s" % e) res = {} diff --git a/requirements.txt b/requirements.txt index ae785fd57a..22757b6065 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ -e git+https://github.com/jupyter/jupyter_client.git#egg=jupyter_client -e git+https://github.com/ipython/ipython.git#egg=ipython -e git+https://github.com/ipython/ipython_kernel.git#egg=ipython_kernel --e git+https://github.com/jupyter/jupyter_nbconvert.git#egg=jupyter_nbconvert +-e git+https://github.com/jupyter/nbconvert.git#egg=nbconvert diff --git a/setup.py b/setup.py index 895bed76e7..bee4c0c117 100755 --- a/setup.py +++ b/setup.py @@ -147,7 +147,7 @@ 'jupyter_core', 'jupyter_client', 'jupyter_nbformat', - 'jupyter_nbconvert', + 'nbconvert', 'ipython_kernel', # bless IPython kernel for now ] extras_require = {