mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
deprecate default_secure decorator
make Session secure by default on its own I think the decorator was an artifact of very early design prototyping, and really isn't necessary.
This commit is contained in:
parent
dad4ba22b8
commit
96334d4594
@ -77,7 +77,7 @@ from IPython.core.application import (
|
|||||||
from IPython.core.profiledir import ProfileDir
|
from IPython.core.profiledir import ProfileDir
|
||||||
from IPython.kernel import KernelManager
|
from IPython.kernel import KernelManager
|
||||||
from IPython.kernel.kernelspec import KernelSpecManager
|
from IPython.kernel.kernelspec import KernelSpecManager
|
||||||
from IPython.kernel.zmq.session import default_secure, Session
|
from IPython.kernel.zmq.session import Session
|
||||||
from IPython.nbformat.sign import NotebookNotary
|
from IPython.nbformat.sign import NotebookNotary
|
||||||
from IPython.utils.importstring import import_item
|
from IPython.utils.importstring import import_item
|
||||||
from IPython.utils import submodule
|
from IPython.utils import submodule
|
||||||
@ -764,9 +764,6 @@ class NotebookApp(BaseIPythonApplication):
|
|||||||
self.ipython_kernel_argv = ["--profile-dir", self.profile_dir.location]
|
self.ipython_kernel_argv = ["--profile-dir", self.profile_dir.location]
|
||||||
|
|
||||||
def init_configurables(self):
|
def init_configurables(self):
|
||||||
# force Session default to be secure
|
|
||||||
default_secure(self.config)
|
|
||||||
|
|
||||||
self.kernel_spec_manager = self.kernel_spec_manager_class(
|
self.kernel_spec_manager = self.kernel_spec_manager_class(
|
||||||
parent=self,
|
parent=self,
|
||||||
ipython_dir=self.ipython_dir,
|
ipython_dir=self.ipython_dir,
|
||||||
|
Loading…
Reference in New Issue
Block a user