##// END OF EJS Templates
Fix all imports for the notebook.
Fernando Perez -
Show More
@@ -28,6 +28,7 b' from warnings import warn'
28 28 warn("The top-level `frontend` package has been deprecated. "
29 29 "All its subpackages have been moved to the top `IPython` level.")
30 30
31 1/0
31 32 #-----------------------------------------------------------------------------
32 33 # Class declarations
33 34 #-----------------------------------------------------------------------------
@@ -34,7 +34,7 b' import webbrowser'
34 34 # Third party
35 35 # check for pyzmq 2.1.11
36 36 from IPython.utils.zmqrelated import check_for_zmq
37 check_for_zmq('2.1.11', 'IPython.frontend.html.notebook')
37 check_for_zmq('2.1.11', 'IPython.html.notebook')
38 38
39 39 import zmq
40 40 from jinja2 import Environment, FileSystemLoader
@@ -61,7 +61,7 b' from tornado import httpserver'
61 61 from tornado import web
62 62
63 63 # Our own libraries
64 from IPython.frontend.html.notebook import DEFAULT_STATIC_FILES_PATH
64 from IPython.html.notebook import DEFAULT_STATIC_FILES_PATH
65 65
66 66 from .services.kernels.kernelmanager import MappingKernelManager
67 67 from .services.notebooks.nbmanager import NotebookManager
@@ -72,7 +72,7 b' from .base.handlers import AuthenticatedFileHandler, FileFindHandler'
72 72
73 73 from IPython.config.application import catch_config_error, boolean_flag
74 74 from IPython.core.application import BaseIPythonApplication
75 from IPython.frontend.consoleapp import IPythonConsoleApp
75 from IPython.consoleapp import IPythonConsoleApp
76 76 from IPython.kernel import swallow_argv
77 77 from IPython.kernel.zmq.session import default_secure
78 78 from IPython.kernel.zmq.kernelapp import (
@@ -120,7 +120,7 b' def random_ports(port, n):'
120 120
121 121 def load_handlers(name):
122 122 """Load the (URL pattern, handler) tuples for each component."""
123 name = 'IPython.frontend.html.notebook.' + name
123 name = 'IPython.html.notebook.' + name
124 124 mod = __import__(name, fromlist=['default_handlers'])
125 125 return mod.default_handlers
126 126
@@ -490,7 +490,7 b' class NotebookApp(BaseIPythonApplication):'
490 490 else:
491 491 self.log.info("Using MathJax: %s", new)
492 492
493 notebook_manager_class = DottedObjectName('IPython.frontend.html.notebook.services.notebooks.filenbmanager.FileNotebookManager',
493 notebook_manager_class = DottedObjectName('IPython.html.notebook.services.notebooks.filenbmanager.FileNotebookManager',
494 494 config=True,
495 495 help='The notebook manager class to use.')
496 496
General Comments 0
You need to be logged in to leave comments. Login now