Error Messages from Notebook 7.0.2 on Apple Silicon,Mac OS 13.5

Running jupyter notebook (v 7.0.2) gives error messages and results in fonts and appearance very different from notebook version 6.5.4.

upyter notebook
[I 2023-08-06 21:01:13.958 ServerApp] Package notebook took 0.0000s to import
[I 2023-08-06 21:01:13.961 ServerApp] Package jupyter_server_terminals took 0.0033s to import
[I 2023-08-06 21:01:13.963 ServerApp] Package nbclassic took 0.0016s to import
[W 2023-08-06 21:01:13.964 ServerApp] A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-08-06 21:01:13.964 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-08-06 21:01:13.964 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-08-06 21:01:13.966 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-08-06 21:01:13.967 ServerApp] nbclassic | extension was successfully linked.
[I 2023-08-06 21:01:13.968 ServerApp] notebook | extension was successfully linked.
[I 2023-08-06 21:01:14.085 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-08-06 21:01:14.117 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-08-06 21:01:14.118 ServerApp] jupyter_server_terminals | extension was successfully loaded.

  _   _          _      _
 | | | |_ __  __| |__ _| |_ ___
 | |_| | '_ \/ _` / _` |  _/ -_)
  \___/| .__/\__,_\__,_|\__\___|
       |_|
                                                                           
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.

[I 2023-08-06 21:01:14.120 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-08-06 21:01:14.121 ServerApp] notebook | extension was successfully loaded.
[I 2023-08-06 21:01:14.122 ServerApp] Serving notebooks from local directory: /Users/sunilshah/Library/Mobile Documents/com~apple~CloudDocs/invest
[I 2023-08-06 21:01:14.122 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-08-06 21:01:14.122 ServerApp] http://localhost:8888/tree?token=168bc26cbf6df97ab4e72d3f1d39ef912e0e344ae78a877d
[I 2023-08-06 21:01:14.122 ServerApp]     http://127.0.0.1:8888/tree?token=168bc26cbf6df97ab4e72d3f1d39ef912e0e344ae78a877d
[I 2023-08-06 21:01:14.122 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-08-06 21:01:14.127 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///Users/sunilshah/Library/Jupyter/runtime/jpserver-11776-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/tree?token=168bc26cbf6df97ab4e72d3f1d39ef912e0e344ae78a877d
        http://127.0.0.1:8888/tree?token=168bc26cbf6df97ab4e72d3f1d39ef912e0e344ae78a877d
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[W 2023-08-06 21:01:16.637 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1691380876626 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
[W 2023-08-06 21:01:16.637 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json)
[W 2023-08-06 21:01:16.643 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1691380876626 (926009edf6e24a419c6a1ebd14d83a56@::1) 10.91ms referer=http://localhost:8888/tree
[W 2023-08-06 21:01:16.689 ServerApp] 404 GET /lsp/status?1691380876673 (926009edf6e24a419c6a1ebd14d83a56@::1) 13.90ms referer=http://localhost:8888/tree
[W 2023-08-06 21:01:16.781 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/tree-extension:widget?1691380876774 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json
[W 2023-08-06 21:01:16.781 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json)
[W 2023-08-06 21:01:16.782 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/tree-extension:widget?1691380876774 (926009edf6e24a419c6a1ebd14d83a56@::1) 4.21ms referer=http://localhost:8888/tree
[W 2023-08-06 21:01:16.783 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:top?1691380876773 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json
[W 2023-08-06 21:01:16.783 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json)
[W 2023-08-06 21:01:16.784 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:top?1691380876773 (926009edf6e24a419c6a1ebd14d83a56@::1) 6.27ms referer=http://localhost:8888/tree
[W 2023-08-06 21:01:16.789 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/notebook-extension:scroll-output?1691380876774 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json
[W 2023-08-06 21:01:16.789 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json)
[W 2023-08-06 21:01:16.790 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/notebook-extension:scroll-output?1691380876774 (926009edf6e24a419c6a1ebd14d83a56@::1) 4.26ms referer=http://localhost:8888/tree
[W 2023-08-06 21:01:24.971 ServerApp] 404 GET /apple-touch-icon-precomposed.png (@::1) 1.35ms referer=None
[W 2023-08-06 21:01:24.972 ServerApp] 404 GET /apple-touch-icon.png (@::1) 0.82ms referer=None
[I 2023-08-06 21:03:14.875 ServerApp] Creating new notebook in 
[W 2023-08-06 21:03:23.739 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1691381003730 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
[W 2023-08-06 21:03:23.740 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json)
[W 2023-08-06 21:03:23.741 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1691381003730 (926009edf6e24a419c6a1ebd14d83a56@::1) 6.92ms referer=http://localhost:8888/notebooks/Untitled4.ipynb
[W 2023-08-06 21:03:23.773 ServerApp] 404 GET /lsp/status?1691381003770 (926009edf6e24a419c6a1ebd14d83a56@::1) 1.39ms referer=http://localhost:8888/notebooks/Untitled4.ipynb
[W 2023-08-06 21:03:23.955 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:top?1691381003951 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json
[W 2023-08-06 21:03:23.955 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json)
[W 2023-08-06 21:03:23.955 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:top?1691381003951 (926009edf6e24a419c6a1ebd14d83a56@::1) 2.77ms referer=http://localhost:8888/notebooks/Untitled4.ipynb
[W 2023-08-06 21:03:23.968 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/notebook-extension:scroll-output?1691381003951 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json
[W 2023-08-06 21:03:23.968 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json)
[W 2023-08-06 21:03:23.968 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/notebook-extension:scroll-output?1691381003951 (926009edf6e24a419c6a1ebd14d83a56@::1) 10.43ms referer=http://localhost:8888/notebooks/Untitled4.ipynb
[I 2023-08-06 21:03:30.752 ServerApp] Kernel started: 7d538a20-cdca-42b9-b425-99fb6a6829f7
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2023-08-06 21:03:31.233 ServerApp] Connecting to kernel 7d538a20-cdca-42b9-b425-99fb6a6829f7.


The look is very different from that in v 6.5.4.

1 Like

Hi,

The error messages have been reported before here on discourse and on GitHub.

It seems to be a bug related to an interaction between homebrew and jupyter. You can probably ameliorate them by setting environment variables before running jupyter:

JUPYTER_PATH=/opt/homebrew/share/jupyter JUPYTER_CONFIG_PATH=/opt/homebrew/etc/jupyter jupyter notebook

The changed appearance is a feature of notebook 7. If you prefer the old appearance, use nbclassic instead of notebook.

1 Like

Thanks @defjaf.

I did try setting the environment variables per your post. It did not help with the error messages.

jupyter nbclassic does restore the old look. It also gets rid of the error messages.

Yes, I wasn’t clear: setting the environment variables does appear to fix various UI bugs but the error messages about schema still appear. It is not clear what effect this has.

1 Like