diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index e656f72802..5c00d18f80 100755 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -1408,7 +1408,7 @@ def _update_mathjax_config(self, change): # and allow jupyter_server contents managers to pass # through. If jupyter_server is not installed, this class # will be ignored. - 'jupyter_server.contents.services.managers.ContentsManager' + "jupyter_server.services.contents.managers.ContentsManager", ], config=True, help=_('The notebook manager class to use.') diff --git a/notebook/traittypes.py b/notebook/traittypes.py index 53bb125369..dcced117b1 100644 --- a/notebook/traittypes.py +++ b/notebook/traittypes.py @@ -1,5 +1,6 @@ import inspect -from traitlets import ClassBasedTraitType, Undefined, warn +from warnings import warn +from traitlets import ClassBasedTraitType, Undefined # Traitlet's 5.x includes a set of utilities for building # description strings for objects. Traitlets 5.x does not