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