From d0ecb74a1bf92b9de916455b1aeac7db787ca4b2 Mon Sep 17 00:00:00 2001 From: Eric Charles Date: Mon, 20 Feb 2023 18:12:03 +0100 Subject: [PATCH] Add a banner and log to information about the migration to Notebook 7 plan (#6742) * Add a banner to inform about the migration plan to notebook 7 * remove trailing spaces --- notebook/notebookapp.py | 14 ++++++++++++++ notebook/templates/page.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index bd82f497c..070dbb9e5 100755 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -185,6 +185,20 @@ class NotebookWebApplication(web.Application): if settings['autoreload']: log.info('Autoreload enabled: the webapp will restart when any Python src file changes.') + print(""" + _ _ _ _ + | | | |_ __ __| |__ _| |_ ___ + | |_| | '_ \/ _` / _` | _/ -_) + \___/| .__/\__,_\__,_|\__\___| + |_| + +Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions. + +https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html + +Please note that updating to Notebook 7 might break some of your extensions. +""") + super().__init__(handlers, **settings) def init_settings(self, jupyter_app, kernel_manager, contents_manager, diff --git a/notebook/templates/page.html b/notebook/templates/page.html index 3617e039a..ba061f21e 100644 --- a/notebook/templates/page.html +++ b/notebook/templates/page.html @@ -135,6 +135,25 @@ dir="ltr">