Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbclassic for 
openSUSE:Factory checked in at 2021-07-27 14:32:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbclassic (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbclassic.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbclassic"

Tue Jul 27 14:32:16 2021 rev:2 rq:908538 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbclassic/python-nbclassic.changes        
2021-02-10 21:30:11.758267865 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-nbclassic.new.1899/python-nbclassic.changes  
    2021-07-27 14:32:38.799449368 +0200
@@ -1,0 +2,24 @@
+Fri Jul 23 08:15:54 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to version 0.3.1
+  * bump jupyter_server dependency to 1.8 #58 (@Zsailer)
+- Release 0.3.0
+  * Support creating terminal with a given name. #52 (@cailiang9)
+  * BUG fix: correct redirection to {base_url}/edit/*. #55
+    (@cailiang9)
+  * patch server's sorted_extensions to prioritize nbclassic #56
+    (@Zsailer)
+- Release 0.2.8
+ * Remove forced sorting of extensions #49 (@minrk)
+ * Add Changelog #48 (@blink1073)
+- Release 0.2.7
+  * Fix deprecation warning when importing
+    jupyter_server.transutils._ #47 (@martinRenou)
+  * Add a redirect handler to open non-notebook files from the cli
+    #45 (@jtpio)
+  * Add default_url trait to NotebookApp #42 (@afshin)
+  * Fix GitHub Actions badge #40 (@jtpio)
+  * Run jupyter nbclassic -h on CI #29 (@jtpio)
+- Skip python2 and python36 (no ipykernel 6 on python36)
+
+-------------------------------------------------------------------

Old:
----
  nbclassic-0.2.6-gh.tar.gz

New:
----
  nbclassic-0.3.1-gh.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nbclassic.spec ++++++
--- /var/tmp/diff_new_pack.zyKOXY/_old  2021-07-27 14:32:39.395448779 +0200
+++ /var/tmp/diff_new_pack.zyKOXY/_new  2021-07-27 14:32:39.399448774 +0200
@@ -16,22 +16,24 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
+%define skip_python2 1
+%define skip_python36 1
 Name:           python-nbclassic
-Version:        0.2.6
+Version:        0.3.1
 Release:        0
 Summary:        Jupyter Notebook as a Jupyter Server Extension
 License:        BSD-3-Clause
 URL:            https://github.com/jupyterlab/nbclassic
 # The github archive has the tests
 Source:         
https://github.com/jupyterlab/nbclassic/archive/%{version}.tar.gz#/nbclassic-%{version}-gh.tar.gz
-BuildRequires:  %{python_module jupyter_server >= 1.1}
+BuildRequires:  %{python_module jupyter_server >= 1.8}
 BuildRequires:  %{python_module notebook}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       jupyter-nbclassic = %{version}
-Requires:       python-jupyter_server >= 1.1
+Requires:       python-jupyter_server >= 1.8
 Requires:       python-notebook
 # SECTION test requirements
 BuildRequires:  %{python_module pytest-console-scripts}

++++++ nbclassic-0.2.6-gh.tar.gz -> nbclassic-0.3.1-gh.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/.github/workflows/pythonpackage.yml 
new/nbclassic-0.3.1/.github/workflows/pythonpackage.yml
--- old/nbclassic-0.2.6/.github/workflows/pythonpackage.yml     2021-01-08 
20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/.github/workflows/pythonpackage.yml     2021-05-21 
18:37:06.000000000 +0200
@@ -53,6 +53,9 @@
     #     cd jupyter_server
     #     pip install -e .
     #     cd ../nbclassic
+    - name: Run the help command
+      run: |
+        jupyter nbclassic -h
     - name: Test with pytest
       run: |
         pytest -vv --cov nbclassic --cov-report term-missing:skip-covered
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/CHANGELOG.md 
new/nbclassic-0.3.1/CHANGELOG.md
--- old/nbclassic-0.2.6/CHANGELOG.md    1970-01-01 01:00:00.000000000 +0100
+++ new/nbclassic-0.3.1/CHANGELOG.md    2021-05-21 18:37:06.000000000 +0200
@@ -0,0 +1,154 @@
+# Changelog
+
+## 0.3.1
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/0.3.0...f1b8540eb6e7ee33c3b923454366e34adbcaad1a))
+
+### Maintenance and upkeep improvements
+
+- bump jupyter_server dependency to 1.8 
[#58](https://github.com/jupyterlab/nbclassic/pull/58) 
([@Zsailer](https://github.com/Zsailer))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2021-05-20&to=2021-05-21&type=c))
+
+[@Zsailer](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3AZsailer+updated%3A2021-05-20..2021-05-21&type=Issues)
+
+## 0.3.0
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/0.2.8...0df2d3341205609c1a1b4e2c8fc6e8959c7e828a))
+
+### Enhancements made
+
+- Support creating terminal with a given name. 
[#52](https://github.com/jupyterlab/nbclassic/pull/52) 
([@cailiang9](https://github.com/cailiang9))
+
+### Bugs fixed
+
+- BUG fix: correct redirection to {base_url}/edit/*. 
[#55](https://github.com/jupyterlab/nbclassic/pull/55) 
([@cailiang9](https://github.com/cailiang9))
+
+### Maintenance and upkeep improvements
+
+- patch server's sorted_extensions to prioritize nbclassic 
[#56](https://github.com/jupyterlab/nbclassic/pull/56) 
([@Zsailer](https://github.com/Zsailer))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2021-05-11&to=2021-05-20&type=c))
+
+[@cailiang9](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Acailiang9+updated%3A2021-05-11..2021-05-20&type=Issues)
 | 
[@welcome](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Awelcome+updated%3A2021-05-11..2021-05-20&type=Issues)
 | 
[@Zsailer](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3AZsailer+updated%3A2021-05-11..2021-05-20&type=Issues)
+
+## 0.2.8
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/0.2.7...eabc8408210a8b4e76efec2c57b5b4f9778b1c2a))
+
+### Merged PRs
+
+- Remove forced sorting of extensions 
[#49](https://github.com/jupyterlab/nbclassic/pull/49) 
([@minrk](https://github.com/minrk))
+- Add Changelog [#48](https://github.com/jupyterlab/nbclassic/pull/48) 
([@blink1073](https://github.com/blink1073))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2021-04-08&to=2021-05-11&type=c))
+
+[@blink1073](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Ablink1073+updated%3A2021-04-08..2021-05-11&type=Issues)
 | 
[@minrk](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Aminrk+updated%3A2021-04-08..2021-05-11&type=Issues)
 | 
[@welcome](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Awelcome+updated%3A2021-04-08..2021-05-11&type=Issues)
+
+## 0.2.7
+
+## Merged PRs
+
+* Fix deprecation warning when importing jupyter_server.transutils._ 
[#47](https://github.com/jupyterlab/nbclassic/pull/47) 
([@martinRenou](https://github.com/martinRenou))
+* Add a redirect handler to open non-notebook files from the cli 
[#45](https://github.com/jupyterlab/nbclassic/pull/45) 
([@jtpio](https://github.com/jtpio))
+* Add default_url trait to NotebookApp 
[#42](https://github.com/jupyterlab/nbclassic/pull/42) 
([@afshin](https://github.com/afshin))
+* Fix GitHub Actions badge 
[#40](https://github.com/jupyterlab/nbclassic/pull/40) 
([@jtpio](https://github.com/jtpio))
+* Run jupyter nbclassic -h on CI 
[#29](https://github.com/jupyterlab/nbclassic/pull/29) 
([@jtpio](https://github.com/jtpio))
+
+## Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2021-01-08&to=2021-04-08&type=c))
+
+[@afshin](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Aafshin+updated%3A2021-01-08..2021-04-08&type=Issues)
 | 
[@blink1073](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Ablink1073+updated%3A2021-01-08..2021-04-08&type=Issues)
 | 
[@jtpio](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Ajtpio+updated%3A2021-01-08..2021-04-08&type=Issues)
 | 
[@martinRenou](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3AmartinRenou+updated%3A2021-01-08..2021-04-08&type=Issues)
 | 
[@welcome](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Awelcome+updated%3A2021-01-08..2021-04-08&type=Issues)
 | 
[@Zsailer](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3AZsailer+updated%3A2021-01-08..2021-04-08&type=Issues)
+
+## 0.2.6
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/47ff8cb...917c9f7))
+
+### Merged PRs
+
+* Ignore some traits in shim layer 
[#38](https://github.com/jupyterlab/nbclassic/pull/38) 
([@afshin](https://github.com/afshin))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2020-12-15&to=2021-01-08&type=c))
+
+[@afshin](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Aafshin+updated%3A2020-12-15..2021-01-08&type=Issues)
+
+## 0.2.5
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/cf3790c...47ff8cb))
+
+### Merged PRs
+
+* Update jupyter_server version, update to use prefixed fixtures 
[#37](https://github.com/jupyterlab/nbclassic/pull/37) 
([@afshin](https://github.com/afshin))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2020-12-08&to=2020-12-15&type=c))
+
+[@afshin](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Aafshin+updated%3A2020-12-08..2020-12-15&type=Issues)
+
+## 0.2.4
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/46bb6d5...cf3790c))
+
+### Merged PRs
+
+* Exclude tests from dist 
[#36](https://github.com/jupyterlab/nbclassic/pull/36) 
([@bollwyvl](https://github.com/bollwyvl))
+* Update release instructions 
[#34](https://github.com/jupyterlab/nbclassic/pull/34) 
([@jasongrout](https://github.com/jasongrout))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2020-09-29&to=2020-12-08&type=c))
+
+[@bollwyvl](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Abollwyvl+updated%3A2020-09-29..2020-12-08&type=Issues)
 | 
[@jasongrout](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Ajasongrout+updated%3A2020-09-29..2020-12-08&type=Issues)
 | 
[@Zsailer](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3AZsailer+updated%3A2020-09-29..2020-12-08&type=Issues)
+
+## 0.2.3
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/61ea2a7...46bb6d5))
+
+### Merged PRs
+
+* Moves terminal websocket handling back to Jupyter Server 
[#33](https://github.com/jupyterlab/nbclassic/pull/33) 
([@jasongrout](https://github.com/jasongrout))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2020-09-29&to=2020-09-29&type=c))
+
+[@jasongrout](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Ajasongrout+updated%3A2020-09-29..2020-09-29&type=Issues)
+
+## 0.2.2
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/cff037e...61ea2a7))
+
+### Merged PRs
+
+* Add terminal and editor handlers 
[#31](https://github.com/jupyterlab/nbclassic/pull/31) 
([@afshin](https://github.com/afshin))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2020-09-25&to=2020-09-29&type=c))
+
+[@afshin](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Aafshin+updated%3A2020-09-25..2020-09-29&type=Issues)
+
+## 0.2.1
+
+([Full 
Changelog](https://github.com/jupyterlab/nbclassic/compare/09c8756...cff037e))
+
+### Merged PRs
+
+* Add setupbase.py to MANIFEST.in 
[#28](https://github.com/jupyterlab/nbclassic/pull/28) 
([@jtpio](https://github.com/jtpio))
+* Add LICENSE [#27](https://github.com/jupyterlab/nbclassic/pull/27) 
([@jtpio](https://github.com/jtpio))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/nbclassic/graphs/contributors?from=2020-09-18&to=2020-09-25&type=c))
+
+[@jtpio](https://github.com/search?q=repo%3Ajupyterlab%2Fnbclassic+involves%3Ajtpio+updated%3A2020-09-18..2020-09-25&type=Issues)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/README.md 
new/nbclassic-0.3.1/README.md
--- old/nbclassic-0.2.6/README.md       2021-01-08 20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/README.md       2021-05-21 18:37:06.000000000 +0200
@@ -1,6 +1,6 @@
 # Jupyter Notebook as a Jupyter Server Extension
 
-![Testing 
nbclassic](https://github.com/Zsailer/nbclassic/workflows/Testing%20nbclassic/badge.svg)
+![Testing 
nbclassic](https://github.com/jupyterlab/nbclassic/workflows/Testing%20nbclassic/badge.svg)
 
 
 NBClassic runs the [Jupyter Notebook]((github.com/jupyter/notebook)) frontend 
on the Jupyter Server backend.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/__version__.py 
new/nbclassic-0.3.1/nbclassic/__version__.py
--- old/nbclassic-0.2.6/nbclassic/__version__.py        2021-01-08 
20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/nbclassic/__version__.py        2021-05-21 
18:37:06.000000000 +0200
@@ -1 +1 @@
-__version__ = "0.2.6"
+__version__ = "0.3.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/nbserver.py 
new/nbclassic-0.3.1/nbclassic/nbserver.py
--- old/nbclassic-0.2.6/nbclassic/nbserver.py   2021-01-08 20:00:28.000000000 
+0100
+++ new/nbclassic-0.3.1/nbclassic/nbserver.py   2021-05-21 18:37:06.000000000 
+0200
@@ -71,21 +71,17 @@
     # to incorporate a dependency injection system in the
     # Extension manager that allows extensions to list
     # their dependency tree and sort that way.
-    def extensions(self):
+    def sorted_extensions(self):
         """Dictionary with extension package names as keys
         and an ExtensionPackage objects as values.
         """
-        # Pop out the nbclassic extension to prepend
-        # this extension at the front of the sorted server extensions.
-        nb = self._extensions.get("nbclassic")
-        # Sort all other extensions alphabetically.
-        other_extensions = dict(sorted(self._extensions.items()))
-        # Build a new extensions dictionary, sorted with nbclassic first.
-        sorted_extensions = {"nbclassic": nb}
-        sorted_extensions.update(**other_extensions)
-        return sorted_extensions
+        # Sort the keys and
+        keys = sorted(self.extensions.keys())
+        keys.remove("nbclassic")
+        keys = ["nbclassic"] + keys
+        return {key: self.extensions[key] for key in keys}
 
-    manager.__class__.extensions = property(extensions)
+    manager.__class__.sorted_extensions = property(sorted_extensions)
 
     # Look to see if nbclassic is enabled. if so,
     # link the nbclassic extension here to load
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/notebook/handlers.py 
new/nbclassic-0.3.1/nbclassic/notebook/handlers.py
--- old/nbclassic-0.2.6/nbclassic/notebook/handlers.py  2021-01-08 
20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/nbclassic/notebook/handlers.py  2021-05-21 
18:37:06.000000000 +0200
@@ -22,7 +22,7 @@
     url_escape,
     ensure_async
 )
-from jupyter_server.transutils import _
+from jupyter_server.transutils import _i18n
 
 
 def get_frontend_exporters():
@@ -52,7 +52,7 @@
 
         # Ensure export_from_notebook is explicitly defined & not inherited
         if ux_name is not None and ux_name != super_uxname:
-            display = _('{} ({})'.format(ux_name,
+            display = _i18n('{} ({})'.format(ux_name,
                                          exporter_instance.file_extension))
             frontend_exporters.append(ExporterInfo(name, display))
 
@@ -117,4 +117,3 @@
 default_handlers = [
     (r"/notebooks%s" % path_regex, NotebookHandler),
 ]
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/notebookapp.py 
new/nbclassic-0.3.1/nbclassic/notebookapp.py
--- old/nbclassic-0.2.6/nbclassic/notebookapp.py        2021-01-08 
20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/nbclassic/notebookapp.py        2021-05-21 
18:37:06.000000000 +0200
@@ -14,6 +14,7 @@
 import gettext
 
 from jinja2 import Environment, FileSystemLoader
+from tornado.web import RedirectHandler
 
 import notebook
 from notebook import (
@@ -41,7 +42,7 @@
 )
 
 from jupyter_server.log import log_request
-from jupyter_server.transutils import _
+from jupyter_server.transutils import _i18n
 from jupyter_server.serverapp import (
     ServerApp,
     random_ports,
@@ -70,7 +71,7 @@
 aliases = {}
 flags['no-browser']=(
     {'ServerApp' : {'open_browser' : False}},
-    _("Don't open the notebook in a browser after startup.")
+    _i18n("Don't open the notebook in a browser after startup.")
 )
 flags['no-mathjax']=(
     {'NotebookApp' : {'enable_mathjax' : False}},
@@ -86,7 +87,7 @@
 
 flags['allow-root']=(
     {'ServerApp' : {'allow_root' : True}},
-    _("Allow the notebook to be run from root user.")
+    _i18n("Allow the notebook to be run from root user.")
 )
 
 aliases.update({
@@ -119,13 +120,16 @@
 
     name = 'notebook'
     version = __version__
-    description = _("""The Jupyter HTML Notebook.
+    description = _i18n("""The Jupyter HTML Notebook.
 
     This launches a Tornado based HTML Notebook Server that serves up an 
HTML5/Javascript Notebook client.""")
 
     aliases = aliases
     flags = flags
     extension_url = "/tree"
+    subcommands = {}
+
+    default_url = Unicode("/tree").tag(config=True)
 
     # Override the default open_Browser trait in ExtensionApp,
     # setting it to True.
@@ -140,7 +144,7 @@
     ).tag(config=True)
 
     static_custom_path = List(Unicode(),
-        help=_("""Path to search for custom.js, css""")
+        help=_i18n("""Path to search for custom.js, css""")
     )
 
     @default('static_custom_path')
@@ -152,7 +156,7 @@
         ]
 
     extra_nbextensions_path = List(Unicode(), config=True,
-        help=_("""extra paths to look for Javascript notebook extensions""")
+        help=_i18n("""extra paths to look for Javascript notebook 
extensions""")
     )
 
     @property
@@ -190,9 +194,9 @@
     def initialize_settings(self):
         """Add settings to the tornado app."""
         if self.ignore_minified_js:
-            self.log.warning(_("""The `ignore_minified_js` flag is deprecated 
and no longer works."""))
-            self.log.warning(_("""Alternatively use `%s` when working on the 
notebook's Javascript and LESS""") % 'npm run build:watch')
-            warnings.warn(_("The `ignore_minified_js` flag is deprecated and 
will be removed in Notebook 6.0"), DeprecationWarning)
+            self.log.warning(_i18n("""The `ignore_minified_js` flag is 
deprecated and no longer works."""))
+            self.log.warning(_i18n("""Alternatively use `%s` when working on 
the notebook's Javascript and LESS""") % 'npm run build:watch')
+            warnings.warn(_i18n("The `ignore_minified_js` flag is deprecated 
and will be removed in Notebook 6.0"), DeprecationWarning)
 
         settings = dict(
             static_custom_path=self.static_custom_path,
@@ -218,6 +222,17 @@
         """Load the (URL pattern, handler) tuples for each component."""
         # Order matters. The first handler to match the URL will handle the 
request.
         handlers = []
+
+        # Add a redirect from /notebooks to /edit
+        # for opening non-ipynb files in edit mode.
+        handlers.append(
+            (
+                rf"/{self.file_url_prefix}/((?!.*\.ipynb($|\?)).*)",
+                RedirectHandler,
+                {"url": self.serverapp.base_url+"edit/{0}"}
+            )
+        )
+
         # load extra services specified by users before default handlers
         for service in self.settings['extra_services']:
             handlers.extend(load_handlers(service))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/shim.py 
new/nbclassic-0.3.1/nbclassic/shim.py
--- old/nbclassic-0.2.6/nbclassic/shim.py       2021-01-08 20:00:28.000000000 
+0100
+++ new/nbclassic-0.3.1/nbclassic/shim.py       2021-05-21 18:37:06.000000000 
+0200
@@ -99,7 +99,7 @@
 
 # A tuple of traits that shouldn't be shimmed or throw any
 # warnings of any kind.
-IGNORED_TRAITS = ("open_browser", "log_level", "log_format")
+IGNORED_TRAITS = ("open_browser", "log_level", "log_format", "default_url")
 
 
 class NBClassicConfigShimMixin:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/terminal/handlers.py 
new/nbclassic-0.3.1/nbclassic/terminal/handlers.py
--- old/nbclassic-0.2.6/nbclassic/terminal/handlers.py  2021-01-08 
20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/nbclassic/terminal/handlers.py  2021-05-21 
18:37:06.000000000 +0200
@@ -15,5 +15,7 @@
     """Render the terminal interface."""
     @web.authenticated
     def get(self, term_name):
+        if term_name not in self.terminal_manager.terminals:
+            self.terminal_manager.create(name=term_name)
         self.write(self.render_template('terminal.html',
                    ws_path="terminals/websocket/%s" % term_name))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/nbclassic/traits.py 
new/nbclassic-0.3.1/nbclassic/traits.py
--- old/nbclassic-0.2.6/nbclassic/traits.py     2021-01-08 20:00:28.000000000 
+0100
+++ new/nbclassic-0.3.1/nbclassic/traits.py     2021-05-21 18:37:06.000000000 
+0200
@@ -9,7 +9,7 @@
     __version__,
 )
 from jupyter_core.paths import jupyter_path
-from jupyter_server.transutils import _
+from jupyter_server.transutils import _i18n
 from jupyter_server.utils import url_path_join
 
 
@@ -17,16 +17,16 @@
 
     ignore_minified_js = Bool(False,
             config=True,
-            help=_('Deprecated: Use minified JS file or not, mainly use during 
dev to avoid JS recompilation'),
+            help=_i18n('Deprecated: Use minified JS file or not, mainly use 
during dev to avoid JS recompilation'),
             )
 
 
     jinja_environment_options = Dict(config=True,
-            help=_("Supply extra arguments that will be passed to Jinja 
environment."))
+            help=_i18n("Supply extra arguments that will be passed to Jinja 
environment."))
 
     jinja_template_vars = Dict(
         config=True,
-        help=_("Extra variables to supply to jinja templates when rendering."),
+        help=_i18n("Extra variables to supply to jinja templates when 
rendering."),
     )
 
     enable_mathjax = Bool(True, config=True,
@@ -59,7 +59,7 @@
         return self.extra_static_paths + [DEFAULT_STATIC_FILES_PATH]
 
     static_custom_path = List(Unicode(),
-        help=_("""Path to search for custom.js, css""")
+        help=_i18n("""Path to search for custom.js, css""")
     )
 
     @default('static_custom_path')
@@ -71,7 +71,7 @@
         ]
 
     extra_template_paths = List(Unicode(), config=True,
-        help=_("""Extra paths to search for serving jinja templates.
+        help=_i18n("""Extra paths to search for serving jinja templates.
 
         Can be used to override templates from notebook.templates.""")
     )
@@ -82,7 +82,7 @@
         return self.extra_template_paths + DEFAULT_TEMPLATE_PATH_LIST
 
     extra_nbextensions_path = List(Unicode(), config=True,
-        help=_("""extra paths to look for Javascript notebook extensions""")
+        help=_i18n("""extra paths to look for Javascript notebook 
extensions""")
     )
 
     @property
@@ -124,15 +124,15 @@
             # enable_mathjax=False overrides mathjax_url
             self.mathjax_url = u''
         else:
-            self.log.info(_("Using MathJax: %s"), new)
+            self.log.info(_i18n("Using MathJax: %s"), new)
 
     mathjax_config = Unicode("TeX-AMS-MML_HTMLorMML-full,Safe", config=True,
-        help=_("""The MathJax.js configuration file that is to be used.""")
+        help=_i18n("""The MathJax.js configuration file that is to be used.""")
     )
 
     @observe('mathjax_config')
     def _update_mathjax_config(self, change):
-        self.log.info(_("Using MathJax configuration file: %s"), change['new'])
+        self.log.info(_i18n("Using MathJax configuration file: %s"), 
change['new'])
 
     quit_button = Bool(True, config=True,
         help="""If True, display a button in the dashboard to quit
@@ -140,8 +140,8 @@
     )
 
     nbserver_extensions = Dict({}, config=True,
-        help=(_("Dict of Python modules to load as notebook server extensions."
+        help=(_i18n("Dict of Python modules to load as notebook server 
extensions."
               "Entry values can be used to enable and disable the loading of"
               "the extensions. The extensions will be loaded in alphabetical "
               "order."))
-    )
\ No newline at end of file
+    )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbclassic-0.2.6/setup.py new/nbclassic-0.3.1/setup.py
--- old/nbclassic-0.2.6/setup.py        2021-01-08 20:00:28.000000000 +0100
+++ new/nbclassic-0.3.1/setup.py        2021-05-21 18:37:06.000000000 +0200
@@ -55,7 +55,7 @@
     python_requires='>=3.6',
     include_package_data=True,
     install_requires = [
-        'jupyter_server~=1.1',
+        'jupyter_server~=1.8',
         'notebook<7',
     ],
     entry_points = {

Reply via email to