diff --git a/nbclassic/notebookapp.py b/nbclassic/notebookapp.py index d12831da2..37c8e5b79 100644 --- a/nbclassic/notebookapp.py +++ b/nbclassic/notebookapp.py @@ -274,6 +274,16 @@ def initialize_handlers(self): {"url": self.serverapp.base_url+"files/{0}"} ) ) + # Add a redirect from /nbclassic to /nbclassic/tree + # if both notebook>=7 and nbclassic are installed. + if len(nbclassic_path()) > 0: + handlers.append( + ( + rf"/nbclassic", + RedirectHandler, + {"url": self.serverapp.base_url+"nbclassic/tree"} + ) + ) # load extra services specified by users before default handlers for service in self.settings['extra_services']: diff --git a/nbclassic/static/base/js/namespace.js b/nbclassic/static/base/js/namespace.js index 3c9bee44c..7ee899278 100644 --- a/nbclassic/static/base/js/namespace.js +++ b/nbclassic/static/base/js/namespace.js @@ -73,7 +73,7 @@ define(function(){ // tree jglobal('SessionList','tree/js/sessionlist'); - Jupyter.version = "0.4.6"; + Jupyter.version = "0.5.0.dev0"; Jupyter._target = '_blank'; return Jupyter;