Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter: Broken, Schema not found #255923

Closed
lucasew opened this issue Sep 18, 2023 · 16 comments · Fixed by #268078
Closed

jupyter: Broken, Schema not found #255923

lucasew opened this issue Sep 18, 2023 · 16 comments · Fixed by #268078
Labels
0.kind: bug Something is broken 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab

Comments

@lucasew
Copy link
Contributor

lucasew commented Sep 18, 2023

Describe the bug

Jupyter is broken

Steps To Reproduce

Steps to reproduce the behavior:

  1. Bring jupyter to your environment (ex: with nix-shell)
  2. jupyter notebook
  3. Realise it's broken

Expected behavior

It nicely starts, launches my browser and shows the folder list successfully

Screenshots

[I 2023-09-18 13:18:44.699 ServerApp] Package notebook took 0.0000s to import
[I 2023-09-18 13:18:44.706 ServerApp] notebook | extension was successfully linked.
[I 2023-09-18 13:18:44.751 ServerApp] notebook | extension was successfully loaded.
[I 2023-09-18 13:18:44.751 ServerApp] The port 8888 is already in use, trying another port.
[I 2023-09-18 13:18:44.752 ServerApp] The port 8889 is already in use, trying another port.
[I 2023-09-18 13:18:44.753 ServerApp] Serving notebooks from local directory: /home/lucasew/WORKSPACE/da-folder
[I 2023-09-18 13:18:44.754 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-09-18 13:18:44.754 ServerApp] http://localhost:8890/tree?token=347792e0ff6e64e5369f25fba598166792071f4af7454b75
[I 2023-09-18 13:18:44.754 ServerApp]     http://127.0.0.1:8890/tree?token=347792e0ff6e64e5369f25fba598166792071f4af7454b75
[I 2023-09-18 13:18:44.754 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-09-18 13:18:44.926 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/lucasew/.local/share/jupyter/runtime/jpserver-1444539-open.html
    Or copy and paste one of these URLs:
        http://localhost:8890/tree?token=347792e0ff6e64e5369f25fba598166792071f4af7454b75
        http://127.0.0.1:8890/tree?token=347792e0ff6e64e5369f25fba598166792071f4af7454b75
[W 2023-09-18 13:18:49.167 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.169 JupyterNotebookApp] Settings directory does not exist at /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas
[W 2023-09-18 13:18:49.303 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.303 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1695053929296 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
[W 2023-09-18 13:18:49.303 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json)
[W 2023-09-18 13:18:49.305 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1695053929296 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 5.72ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.311 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.311 ServerApp] 404 GET /lab/api/settings/@jupyterlab/translation-extension:plugin?1695053929297 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json
[W 2023-09-18 13:18:49.311 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.311 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/translation-extension:plugin?1695053929297 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 5.50ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.312 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.312 ServerApp] 404 GET /lab/api/settings/@jupyterlab/apputils-extension:sanitizer?1695053929299 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json
[W 2023-09-18 13:18:49.313 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json)
[W 2023-09-18 13:18:49.314 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/apputils-extension:sanitizer?1695053929299 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 5.58ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.365 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.366 ServerApp] 404 GET /lab/api/settings/@jupyterlab/application-extension:top-bar?1695053929359 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json
[W 2023-09-18 13:18:49.366 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json)
[W 2023-09-18 13:18:49.368 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/application-extension:top-bar?1695053929359 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 5.89ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.374 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.374 ServerApp] 404 GET /lab/api/settings/@jupyterlab/apputils-extension:notification?1695053929360 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json
[W 2023-09-18 13:18:49.374 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json)
[W 2023-09-18 13:18:49.375 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/apputils-extension:notification?1695053929360 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 5.90ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.379 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.379 ServerApp] 404 GET /lab/api/settings/@jupyterlab/shortcuts-extension:shortcuts?1695053929361 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json
[W 2023-09-18 13:18:49.379 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json)
[W 2023-09-18 13:18:49.380 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/shortcuts-extension:shortcuts?1695053929361 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 4.58ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.384 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.385 ServerApp] 404 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1695053929373 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json
[W 2023-09-18 13:18:49.385 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json)
[W 2023-09-18 13:18:49.386 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1695053929373 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 4.96ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.397 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.397 ServerApp] 404 GET /lab/api/settings/@jupyterlab/notebook-extension:panel?1695053929375 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json
[W 2023-09-18 13:18:49.398 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json)
[W 2023-09-18 13:18:49.400 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/notebook-extension:panel?1695053929375 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 12.87ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.401 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.401 ServerApp] 404 GET /lab/api/settings/@jupyterlab/extensionmanager-extension:plugin?1695053929364 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json
[W 2023-09-18 13:18:49.401 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json)
[W 2023-09-18 13:18:49.402 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/extensionmanager-extension:plugin?1695053929364 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 13.73ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.403 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.404 ServerApp] 404 GET /lab/api/settings/@jupyterlab/codemirror-extension:plugin?1695053929367 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json
[W 2023-09-18 13:18:49.405 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json)
[W 2023-09-18 13:18:49.405 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/codemirror-extension:plugin?1695053929367 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 13.04ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.411 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.411 ServerApp] 404 GET /lab/api/settings/@jupyterlab/notebook-extension:tracker?1695053929381 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
[W 2023-09-18 13:18:49.412 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json)
[W 2023-09-18 13:18:49.417 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/notebook-extension:tracker?1695053929381 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 10.08ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.428 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.428 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/notebook-extension:scroll-output?1695053929386 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json
[W 2023-09-18 13:18:49.428 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json)
[W 2023-09-18 13:18:49.429 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/notebook-extension:scroll-output?1695053929386 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 10.85ms referer=http://localhost:8890/tree
[W 2023-09-18 13:18:49.429 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-09-18 13:18:49.430 ServerApp] 404 GET /lab/api/settings/@jupyterlab/console-extension:tracker?1695053929379 (::1): Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json
[W 2023-09-18 13:18:49.430 JupyterNotebookApp] wrote error: 'Schema not found: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json'
    Traceback (most recent call last):
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/nix/store/yd5nig04qx60pnbk1vl9fk1q2jrdz5gf-python3.10-tornado-6.2.0/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper
        return method(self, *args, **kwargs)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
      File "/nix/store/b0z81drhiiq3z1cn2wgc55snx6mncnbj-python3.10-jupyterlab_server-2.24.0/lib/python3.10/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: /nix/store/2c7sgx69p6mmp76cvmi5j6c72dj76jj8-python3-3.10.12/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json)
[W 2023-09-18 13:18:49.432 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyterlab/console-extension:tracker?1695053929379 (fd1165a633594a18ba70dd3d8ea2bb87@::1) 6.30ms referer=http://localhost:8890/tree

image

Additional context

Also tried and reproduced with nix run the latest stable and unstable.

Also tried testing it after removing everythin from ~/.local/share/jupyter (I am able to regenerate the jupyter kernel that matters to me)

As a workaround I am using the jupyter from release-22.11 branch.

Notify maintainers

@natsukium

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
@lucasew lucasew added the 0.kind: bug Something is broken label Sep 18, 2023
@fedeinthemix
Copy link
Contributor

same problem here

@AKarbas
Copy link

AKarbas commented Oct 3, 2023

Same with python311

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.5.0, macOS 13.4.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.0`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`for chan in nixos nixpkgs; do
  printf "%s: %s\n" $chan $(nix-instantiate --eval --expr "(import <$chan> {}).lib.version" 2>/dev/null);
done
nixos:
nixpkgs: "23.11pre527787.e12483116b3b"

❯ nix-env --query --installed | cat
age-1.1.1
bat-0.23.0
bazelisk-1.18.0
btop-1.2.13
direnv-2.32.3
fzf-0.42.0
go-1.20.8
htop-3.2.2
hugo-0.118.2
jq-1.6
oh-my-zsh-2023-06-26
pure-prompt-1.22.0
python3-3.11.4
python3.11-ipython-8.11.0
python3.11-jupyter-contrib-core-0.4.2
python3.11-jupyter-core-5.2.0
python3.11-jupyterlab-4.0.3
python3.11-matplotlib-3.7.2
python3.11-notebook-7.0.2
python3.11-numpy-1.25.1
python3.11-pandas-2.0.3
python3.11-pip-23.2.1
python3.11-scipy-1.11.2
python3.11-setuptools-68.0.0
restic-0.16.0
ripgrep-13.0.0
texlive-combined-full-2022-final
tree-2.1.1
wget-1.21.4
yq-3.2.3
zsh-autocomplete-23.05.24
zsh-fast-syntax-highlighting-1.55
zsh-fzf-tab-unstable-2023-06-11
zsh-you-should-use-1.7.3
zsh-z-unstable-2021-02-15

@natsukium
Copy link
Member

This is a known issue with notebook v7.
jupyter/notebook#6974

As a workaround, you can run it as a python library with the following commands.

nix-shell -p 'python3.withPackages (ps: with ps; [notebook])'
jupyter notebook

@natsukium
Copy link
Member

It took some time to figure out how to reproduce the error.
Could you please provide the smallest reproducible command or nix expression from next time?

@teto teto added the 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab label Nov 3, 2023
@defjaf
Copy link

defjaf commented Nov 15, 2023

At least in the similar macOS homebrew version of the problem, the “schema” issue is something of a red herring, I think (i.e., it’s a real problem, but it appears to be a symptom, rather than a cause). The main problem seems to be incorrect settings of Jupyter’s paths for this particular installation environment, resulting in a series of UI issues that render some commands inaccessible. The problem with just seeing a Jupyter logo (or sometimes a completely blank page) can be solved, at least in the homebrew case, by clearing the browser cache. But the other problems remain. There is some further discussion in this PR.

@fedeinthemix
Copy link
Contributor

This is a known issue with notebook v7. jupyter/notebook#6974

If this is a known porblem, should we delay adopting version 7 until things work?

As a workaround, you can run it as a python library with the following commands.

nix-shell -p 'python3.withPackages (ps: with ps; [notebook])'
jupyter notebook

With this workaround, how do you install other kernels such as the wolfram or octave ones? For the wolfram one we currently have wolfram-notebook.

@lucasew
Copy link
Contributor Author

lucasew commented Nov 16, 2023

This is a known issue with notebook v7. jupyter/notebook#6974

If this is a known porblem, should we delay adopting version 7 until things work?

As a workaround, you can run it as a python library with the following commands.

nix-shell -p 'python3.withPackages (ps: with ps; [notebook])'
jupyter notebook

With this workaround, how do you install other kernels such as the wolfram or octave ones? For the wolfram one we currently have wolfram-notebook.

It looks up for kernels in .local/share/jupyter

@fedeinthemix
Copy link
Contributor

With this workaround, how do you install other kernels such as the wolfram or octave ones? For the wolfram one we currently have wolfram-notebook.

It looks up for kernels in .local/share/jupyter

I mean in NixOS, e.g., using the kernel derivation used by wolfram-notebook.

natsukium added a commit to natsukium/nixpkgs that referenced this issue Nov 17, 2023
fixed a bug reported in NixOS#255923

it occurred because the python runtime environment did not include the
jupyter share, etc directories.
@natsukium
Copy link
Member

@defjaf
Thanks for the information.
I still don't know what is causing this problem, but it seems that some update has changed the search paths for jupyter_path and others.
Besides notebook >= 7, I also encountered the same error with nbclassic >= 1. I suspect it's a problem in the mentioned paths.py or some other core part of jupyter_core.
I fixed the problem with the nixpkgs package, but I will take another look at it when I have some time after the 23.11 release.

@natsukium
Copy link
Member

fixed in #268078

teto pushed a commit that referenced this issue Nov 21, 2023
fixed a bug reported in #255923

it occurred because the python runtime environment did not include the
jupyter share, etc directories.
github-actions bot pushed a commit that referenced this issue Nov 22, 2023
fixed a bug reported in #255923

it occurred because the python runtime environment did not include the
jupyter share, etc directories.

(cherry picked from commit 4380257)
@paulhersch
Copy link

paulhersch commented Dec 4, 2023

([at] natsukium) Could you please create a PR for the fix commit to nixos-23.11? The commit is missing from the backports that went from release-23.11 -> nixos-23.11, which makes jupyter broken in the nixos branch.

@lucasew
Copy link
Contributor Author

lucasew commented Dec 4, 2023

([at] natsukium) Could you please create a PR for the fix commit to nixos-23.11? The commit is missing from the backports that went from release-23.11 -> nixos-23.11, which makes jupyter broken in the nixos branch.

The PR is labelled property so the bot kicks in and the PR is merged.

Right now hydra may be building the next round of stuff to bump the branch

You can track the progress here: https://nixpk.gs/pr-tracker.html?pr=269087

@paulhersch
Copy link

paulhersch commented Dec 4, 2023

The PR is labelled property so the bot kicks in and the PR is merged.

i didnt know it works like this, thanks for clearing that up!

Right now hydra may be building the next round of stuff to bump the branch

good to know, thanks for the info!

@akamaus
Copy link
Contributor

akamaus commented Jan 5, 2024

I tried running jupyter nix-shell -p python3Packages.jupyter --run 'jupyter notebook' from current release-23.11, commit c1be43e. It includes the backported PR. Still I'm getting the same error, fix doesnt work fo me. @natsukium

@natsukium
Copy link
Member

Please use python3.withPackages (ps: with ps; [notebook]) or just jupyter.

@Jegp
Copy link

Jegp commented Oct 18, 2024

For future reference, this can be circumvented in python312Packages by using an environment and installing jupyter via pip, e. g.

{ pkgs ? import <nixpkgs> { } }:
let
  pypkgs = pkgs.python312Packages;
in
pkgs.mkShell {
  buildInputs = [
    pypkgs.venvShellHook
    pkgs.autoPatchelfHook
  ];
  venvDir = "./.venv";
  postVenvCreation = ''
    pip install -U jupyter
    autoPatchelf ./.venv
  '';
  postShellHook = ''
    unset SOURCE_DATE_EPOCH
    jupyter notebook
  '';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants