(d2l) lht@mu01:~/d2l-zh/pytorch$ jupyter notebook
Traceback (most recent call last):
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/notebook/traittypes.py", line 232, in _resolve_classes
klass = self._resolve_string(klass)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/traitlets.py", line 2015, in _resolve_string
return import_item(string)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/utils/importstring.py", line 33, in import_item
module = __import__(package, fromlist=[obj])
ModuleNotFoundError: No module named 'jupyter_server.contents'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-notebook", line 7, in <module>
sys.exit(main())
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter_core/application.py", line 284, in launch_instance
super().launch_instance(argv=argv, **kwargs)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/config/application.py", line 1073, in launch_instance
app = cls.instance(**kwargs)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/config/configurable.py", line 583, in instance
inst = cls(*args, **kwargs)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/traitlets.py", line 1292, in __new__
inst.setup_instance(*args, **kwargs)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/traitlets.py", line 1335, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/traitlets/traitlets.py", line 1311, in setup_instance
init(self)
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/notebook/traittypes.py", line 223, in instance_init
self._resolve_classes()
File "/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/notebook/traittypes.py", line 235, in _resolve_classes
warn(f"{klass} is not importable. Is it installed?", ImportWarning)
TypeError: warn() missing 1 required keyword-only argument: 'stacklevel'
(d2l) lht@mu01:~/d2l-zh/pytorch$ pip uninstall jupyter notebook jupyter_client jupyter_core
pip install notebook
Found existing installation: jupyter 1.0.0
Uninstalling jupyter-1.0.0:
Would remove:
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter-1.0.0.dist-info/*
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter.py
Proceed (Y/n)?
Successfully uninstalled jupyter-1.0.0
Found existing installation: notebook 6.4.0
Uninstalling notebook-6.4.0:
Would remove:
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-bundlerextension
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-nbextension
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-notebook
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-serverextension
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/notebook-6.4.0.dist-info/*
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/notebook/*
/data5/home/lht/miniconda3/envs/d2l/share/applications/jupyter-notebook.desktop
/data5/home/lht/miniconda3/envs/d2l/share/icons/hicolor/scalable/apps/notebook.svg
Proceed (Y/n)? Successfully uninstalled notebook-6.4.0
Found existing installation: jupyter_client 8.6.3
Uninstalling jupyter_client-8.6.3:
Would remove:
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-kernel
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-kernelspec
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-run
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter_client-8.6.3.dist-info/*
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter_client/*
Proceed (Y/n)?
Successfully uninstalled jupyter_client-8.6.3
Found existing installation: jupyter_core 5.8.1
Uninstalling jupyter_core-5.8.1:
Would remove:
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-migrate
/data5/home/lht/miniconda3/envs/d2l/bin/jupyter-troubleshoot
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter_core-5.8.1.dist-info/*
/data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyter_core/*
Proceed (Y/n)?
Successfully uninstalled jupyter_core-5.8.1
Collecting notebook
Using cached notebook-7.4.5-py3-none-any.whl.metadata (10 kB)
Collecting jupyter-server<3,>=2.4.0 (from notebook)
Using cached jupyter_server-2.17.0-py3-none-any.whl.metadata (8.5 kB)
Requirement already satisfied: jupyterlab-server<3,>=2.27.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from notebook) (2.27.3)
Requirement already satisfied: jupyterlab<4.5,>=4.4.5 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from notebook) (4.4.7)
Requirement already satisfied: notebook-shim<0.3,>=0.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from notebook) (0.2.4)
Requirement already satisfied: tornado>=6.2.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from notebook) (6.5.2)
Requirement already satisfied: anyio>=3.1.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (4.10.0)
Requirement already satisfied: argon2-cffi>=21.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (25.1.0)
Requirement already satisfied: jinja2>=3.0.3 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (3.1.6)
Collecting jupyter-client>=7.4.4 (from jupyter-server<3,>=2.4.0->notebook)
Using cached jupyter_client-8.6.3-py3-none-any.whl.metadata (8.3 kB)
Collecting jupyter-core!=5.0.*,>=4.12 (from jupyter-server<3,>=2.4.0->notebook)
Using cached jupyter_core-5.8.1-py3-none-any.whl.metadata (1.6 kB)
Requirement already satisfied: jupyter-events>=0.11.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (0.12.0)
Requirement already satisfied: jupyter-server-terminals>=0.4.4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (0.5.3)
Requirement already satisfied: nbconvert>=6.4.4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (7.16.6)
Requirement already satisfied: nbformat>=5.3.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (5.10.4)
Requirement already satisfied: overrides>=5.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (7.7.0)
Requirement already satisfied: packaging>=22.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (25.0)
Requirement already satisfied: prometheus-client>=0.9 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (0.22.1)
Requirement already satisfied: pyzmq>=24 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (27.1.0)
Requirement already satisfied: send2trash>=1.8.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (1.8.3)
Requirement already satisfied: terminado>=0.8.3 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (0.18.1)
Requirement already satisfied: traitlets>=5.6.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (5.14.3)
Requirement already satisfied: websocket-client>=1.7 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-server<3,>=2.4.0->notebook) (1.8.0)
Requirement already satisfied: async-lru>=1.0.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (2.0.5)
Requirement already satisfied: httpx<1,>=0.25.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (0.28.1)
Requirement already satisfied: importlib-metadata>=4.8.3 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (8.7.0)
Requirement already satisfied: ipykernel!=6.30.0,>=6.5.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (6.30.1)
Requirement already satisfied: jupyter-lsp>=2.0.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (2.3.0)
Requirement already satisfied: setuptools>=41.1.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (78.1.1)
Requirement already satisfied: tomli>=1.2.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab<4.5,>=4.4.5->notebook) (2.2.1)
Requirement already satisfied: certifi in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from httpx<1,>=0.25.0->jupyterlab<4.5,>=4.4.5->notebook) (2025.8.3)
Requirement already satisfied: httpcore==1.* in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from httpx<1,>=0.25.0->jupyterlab<4.5,>=4.4.5->notebook) (1.0.9)
Requirement already satisfied: idna in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from httpx<1,>=0.25.0->jupyterlab<4.5,>=4.4.5->notebook) (2.10)
Requirement already satisfied: h11>=0.16 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from httpcore==1.*->httpx<1,>=0.25.0->jupyterlab<4.5,>=4.4.5->notebook) (0.16.0)
Requirement already satisfied: babel>=2.10 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab-server<3,>=2.27.1->notebook) (2.17.0)
Requirement already satisfied: json5>=0.9.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab-server<3,>=2.27.1->notebook) (0.12.1)
Requirement already satisfied: jsonschema>=4.18.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab-server<3,>=2.27.1->notebook) (4.25.1)
Requirement already satisfied: requests>=2.31 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyterlab-server<3,>=2.27.1->notebook) (2.32.5)
Requirement already satisfied: exceptiongroup>=1.0.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook) (1.3.0)
Requirement already satisfied: sniffio>=1.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook) (1.3.1)
Requirement already satisfied: typing_extensions>=4.5 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook) (4.15.0)
Requirement already satisfied: argon2-cffi-bindings in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from argon2-cffi>=21.1->jupyter-server<3,>=2.4.0->notebook) (25.1.0)
Requirement already satisfied: zipp>=3.20 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from importlib-metadata>=4.8.3->jupyterlab<4.5,>=4.4.5->notebook) (3.23.0)
Requirement already satisfied: comm>=0.1.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.2.3)
Requirement already satisfied: debugpy>=1.6.5 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (1.8.16)
Requirement already satisfied: ipython>=7.23.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (8.18.1)
Requirement already satisfied: matplotlib-inline>=0.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.1.7)
Requirement already satisfied: nest-asyncio>=1.4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (1.6.0)
Requirement already satisfied: psutil>=5.7 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (7.0.0)
Requirement already satisfied: decorator in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (5.2.1)
Requirement already satisfied: jedi>=0.16 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.19.2)
Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (3.0.52)
Requirement already satisfied: pygments>=2.4.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (2.19.2)
Requirement already satisfied: stack-data in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.6.3)
Requirement already satisfied: pexpect>4.3 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (4.9.0)
Requirement already satisfied: wcwidth in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.2.13)
Requirement already satisfied: parso<0.9.0,>=0.8.4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.8.5)
Requirement already satisfied: MarkupSafe>=2.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jinja2>=3.0.3->jupyter-server<3,>=2.4.0->notebook) (3.0.2)
Requirement already satisfied: attrs>=22.2.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook) (25.3.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook) (2025.9.1)
Requirement already satisfied: referencing>=0.28.4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook) (0.36.2)
Requirement already satisfied: rpds-py>=0.7.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook) (0.27.1)
Requirement already satisfied: python-dateutil>=2.8.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-client>=7.4.4->jupyter-server<3,>=2.4.0->notebook) (2.9.0.post0)
Requirement already satisfied: platformdirs>=2.5 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-core!=5.0.*,>=4.12->jupyter-server<3,>=2.4.0->notebook) (4.4.0)
Requirement already satisfied: python-json-logger>=2.0.4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (3.3.0)
Requirement already satisfied: pyyaml>=5.3 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (6.0.2)
Requirement already satisfied: rfc3339-validator in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (0.1.4)
Requirement already satisfied: rfc3986-validator>=0.1.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (0.1.1)
Requirement already satisfied: fqdn in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (1.5.1)
Requirement already satisfied: isoduration in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (20.11.0)
Requirement already satisfied: jsonpointer>1.13 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (3.0.0)
Requirement already satisfied: rfc3987-syntax>=1.1.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (1.1.0)
Requirement already satisfied: uri-template in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (1.3.0)
Requirement already satisfied: webcolors>=24.6.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (24.11.1)
Requirement already satisfied: beautifulsoup4 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (4.13.5)
Requirement already satisfied: bleach!=5.0.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from bleach[css]!=5.0.0->nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (6.2.0)
Requirement already satisfied: defusedxml in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (0.7.1)
Requirement already satisfied: jupyterlab-pygments in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (0.3.0)
Requirement already satisfied: mistune<4,>=2.0.3 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (3.1.4)
Requirement already satisfied: nbclient>=0.5.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (0.10.2)
Requirement already satisfied: pandocfilters>=1.4.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (1.5.1)
Requirement already satisfied: webencodings in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from bleach!=5.0.0->bleach[css]!=5.0.0->nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (0.5.1)
Requirement already satisfied: tinycss2<1.5,>=1.1.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from bleach[css]!=5.0.0->nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (1.4.0)
Requirement already satisfied: fastjsonschema>=2.15 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from nbformat>=5.3.0->jupyter-server<3,>=2.4.0->notebook) (2.21.2)
Requirement already satisfied: ptyprocess>=0.5 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from pexpect>4.3->ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.7.0)
Requirement already satisfied: six>=1.5 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from python-dateutil>=2.8.2->jupyter-client>=7.4.4->jupyter-server<3,>=2.4.0->notebook) (1.17.0)
Requirement already satisfied: charset_normalizer<4,>=2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from requests>=2.31->jupyterlab-server<3,>=2.27.1->notebook) (3.4.3)
Requirement already satisfied: urllib3<3,>=1.21.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from requests>=2.31->jupyterlab-server<3,>=2.27.1->notebook) (1.26.20)
Requirement already satisfied: lark>=1.2.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from rfc3987-syntax>=1.1.0->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (1.2.2)
Requirement already satisfied: cffi>=1.0.1 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from argon2-cffi-bindings->argon2-cffi>=21.1->jupyter-server<3,>=2.4.0->notebook) (2.0.0)
Requirement already satisfied: pycparser in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi>=21.1->jupyter-server<3,>=2.4.0->notebook) (2.23)
Requirement already satisfied: soupsieve>1.2 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from beautifulsoup4->nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->notebook) (2.8)
Requirement already satisfied: arrow>=0.15.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (1.3.0)
Requirement already satisfied: types-python-dateutil>=2.8.10 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server<3,>=2.4.0->notebook) (2.9.0.20250822)
Requirement already satisfied: executing>=1.2.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from stack-data->ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (2.2.1)
Requirement already satisfied: asttokens>=2.1.0 in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from stack-data->ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (3.0.0)
Requirement already satisfied: pure-eval in /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages (from stack-data->ipython>=7.23.1->ipykernel!=6.30.0,>=6.5.0->jupyterlab<4.5,>=4.4.5->notebook) (0.2.3)
Using cached notebook-7.4.5-py3-none-any.whl (14.3 MB)
Using cached jupyter_server-2.17.0-py3-none-any.whl (388 kB)
Using cached jupyter_client-8.6.3-py3-none-any.whl (106 kB)
Using cached jupyter_core-5.8.1-py3-none-any.whl (28 kB)
Installing collected packages: jupyter-core, jupyter-client, jupyter-server, notebook
Attempting uninstall: jupyter-server
Found existing installation: jupyter-server 1.4.1
Uninstalling jupyter-server-1.4.1:
Successfully uninstalled jupyter-server-1.4.1
Successfully installed jupyter-client-8.6.3 jupyter-core-5.8.1 jupyter-server-2.17.0 notebook-7.4.5
(d2l) lht@mu01:~/d2l-zh/pytorch$ jupyter notebook
[W 2025-09-17 15:52:18.743 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 2025-09-17 15:52:18.744 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-09-17 15:52:18.750 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-09-17 15:52:18.757 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-09-17 15:52:18.762 ServerApp] nbclassic | extension was successfully linked.
[I 2025-09-17 15:52:18.768 ServerApp] notebook | extension was successfully linked.
[I 2025-09-17 15:52:19.116 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-09-17 15:52:19.146 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-09-17 15:52:19.150 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2025-09-17 15:52:19.152 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-09-17 15:52:19.155 LabApp] JupyterLab extension loaded from /data5/home/lht/miniconda3/envs/d2l/lib/python3.9/site-packages/jupyterlab
[I 2025-09-17 15:52:19.155 LabApp] JupyterLab application directory is /data5/home/lht/miniconda3/envs/d2l/share/jupyter/lab
[I 2025-09-17 15:52:19.156 LabApp] Extension Manager is 'pypi'.
[I 2025-09-17 15:52:19.243 ServerApp] jupyterlab | 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 2025-09-17 15:52:19.248 ServerApp] nbclassic | extension was successfully loaded.
[I 2025-09-17 15:52:19.254 ServerApp] notebook | extension was successfully loaded.
[I 2025-09-17 15:52:19.255 ServerApp] Serving notebooks from local directory: /data5/home/lht/d2l-zh/pytorch
[I 2025-09-17 15:52:19.255 ServerApp] Jupyter Server 2.17.0 is running at:
[I 2025-09-17 15:52:19.255 ServerApp] http://localhost:8888/tree?token=7f5410e9a1697d4b78a5d4eb59acfd204364eccbff3be3fc
[I 2025-09-17 15:52:19.255 ServerApp] http://127.0.0.1:8888/tree?token=7f5410e9a1697d4b78a5d4eb59acfd204364eccbff3be3fc
[I 2025-09-17 15:52:19.255 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-09-17 15:52:35.010 ServerApp]
To access the server, open this file in a browser:
file:///data5/home/lht/.local/share/jupyter/runtime/jpserver-1037849-open.html
Or copy and paste one of these URLs:
http://localhost:8888/tree?token=7f5410e9a1697d4b78a5d4eb59acfd204364eccbff3be3fc
http://127.0.0.1:8888/tree?token=7f5410e9a1697d4b78a5d4eb59acfd204364eccbff3be3fc
[I 2025-09-17 15:52:35.047 ServerApp] Skipped non-installed server(s): basedpyright, bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyrefly, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
最新发布