mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Fixing minor bugs in notebookapp related to base class name.
This commit is contained in:
parent
f40f6448c2
commit
f819997f6e
@ -51,7 +51,8 @@ from .handlers import (LoginHandler, LogoutHandler,
|
|||||||
MainClusterHandler, ClusterProfileHandler, ClusterActionHandler,
|
MainClusterHandler, ClusterProfileHandler, ClusterActionHandler,
|
||||||
FileFindHandler,
|
FileFindHandler,
|
||||||
)
|
)
|
||||||
from .notebookmanager import NotebookManager
|
from .basenbmanager import BaseNotebookManager
|
||||||
|
from .filenbmanager import FileNotebookManager
|
||||||
from .clustermanager import ClusterManager
|
from .clustermanager import ClusterManager
|
||||||
|
|
||||||
from IPython.config.application import catch_config_error, boolean_flag
|
from IPython.config.application import catch_config_error, boolean_flag
|
||||||
@ -219,7 +220,7 @@ flags['read-only'] = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Add notebook manager flags
|
# Add notebook manager flags
|
||||||
flags.update(boolean_flag('script', 'NotebookManager.save_script',
|
flags.update(boolean_flag('script', 'FileNotebookManager.save_script',
|
||||||
'Auto-save a .py script everytime the .ipynb notebook is saved',
|
'Auto-save a .py script everytime the .ipynb notebook is saved',
|
||||||
'Do not auto-save .py scripts for every notebook'))
|
'Do not auto-save .py scripts for every notebook'))
|
||||||
|
|
||||||
@ -236,7 +237,7 @@ aliases.update({
|
|||||||
'port-retries': 'NotebookApp.port_retries',
|
'port-retries': 'NotebookApp.port_retries',
|
||||||
'keyfile': 'NotebookApp.keyfile',
|
'keyfile': 'NotebookApp.keyfile',
|
||||||
'certfile': 'NotebookApp.certfile',
|
'certfile': 'NotebookApp.certfile',
|
||||||
'notebook-dir': 'NotebookManager.notebook_dir',
|
'notebook-dir': 'BaseNotebookManager.notebook_dir',
|
||||||
'browser': 'NotebookApp.browser',
|
'browser': 'NotebookApp.browser',
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -264,7 +265,8 @@ class NotebookApp(BaseIPythonApplication):
|
|||||||
"""
|
"""
|
||||||
examples = _examples
|
examples = _examples
|
||||||
|
|
||||||
classes = IPythonConsoleApp.classes + [MappingKernelManager, NotebookManager]
|
classes = IPythonConsoleApp.classes + [MappingKernelManager, BaseNotebookManager,
|
||||||
|
FileNotebookManager]
|
||||||
flags = Dict(flags)
|
flags = Dict(flags)
|
||||||
aliases = Dict(aliases)
|
aliases = Dict(aliases)
|
||||||
|
|
||||||
@ -429,7 +431,7 @@ class NotebookApp(BaseIPythonApplication):
|
|||||||
else:
|
else:
|
||||||
self.file_to_run = f
|
self.file_to_run = f
|
||||||
nbdir = os.path.dirname(f)
|
nbdir = os.path.dirname(f)
|
||||||
self.config.NotebookManager.notebook_dir = nbdir
|
self.config.BaseNotebookManager.notebook_dir = nbdir
|
||||||
|
|
||||||
def init_configurables(self):
|
def init_configurables(self):
|
||||||
# force Session default to be secure
|
# force Session default to be secure
|
||||||
|
Loading…
Reference in New Issue
Block a user