JupyterLab快捷键(updating)

JupyterNotebook快捷键大全
本文详细介绍了JupyterNotebook中的两种键盘输入模式:编辑模式与命令模式,并提供了每种模式下的常用快捷键说明,方便用户高效地进行代码编写与运行。

Jupyter Notebook 有两种键盘输入模式。编辑模式,允许你往单元中键入代码或文本;这时的单元框线是绿色的。命令模式,键盘输入运行程序命令;这时的单元框线是灰色。

命令模式 (按键 Esc 开启)

快捷键描述
Enter转入编辑模式
Shift-Enter运行本单元,选中下个单元
Ctrl-Enter运行本单元
Alt-Enter运行本单元,在其下插入新单元
Y单元转入代码状态
M单元转入markdown状态
R单元转入raw状态
1设定 1 级标题
2设定 2 级标题
3设定 3 级标题
4设定 4 级标题
5设定 5 级标题
6设定 6 级标题
Up选中上方单元
K选中上方单元
Down选中下方单元
J选中下方单元
Shift-K扩大选中上方单元
Shift-J扩大选中下方单元
A在上方插入新单元
B在下方插入新单元
X剪切选中的单元
C复制选中的单元
Shift-V粘贴到上方单元
V粘贴到下方单元
Z恢复删除的最后一个单元
D,D删除选中的单元
Shift-M合并选中的单元
Ctrl-S文件存盘
S文件存盘
L转换行号
O转换输出
Shift-O转换输出滚动
Esc关闭页面
Q关闭页面
H显示快捷键帮助
I,I中断Notebook内核
0,0重启Notebook内核
Shift忽略
Shift-Space向上滚动
Space向下滚动

编辑模式 ( Enter 键启动)

快捷键描述
Tab代码补全或缩进
Shift-Tab提示
Ctrl-]缩进
Ctrl-[解除缩进
Ctrl-A全选
Ctrl-Z复原
Ctrl-Shift-Z再做
Ctrl-Y再做
Ctrl-Home跳到单元开头
Ctrl-Up跳到单元开头
Ctrl-End跳到单元末尾
Ctrl-Down跳到单元末尾
Ctrl-Left跳到左边一个字首
Ctrl-Right跳到右边一个字首
Ctrl-Backspace删除前面一个字
Ctrl-Delete删除后面一个字
Esc进入命令模式
Ctrl-M进入命令模式
Shift-Enter运行本单元,选中下一单元
Ctrl-Enter运行本单元
Alt-Enter运行本单元,在下面插入一单元
Ctrl-Shift–分割单元
Ctrl-Shift-Subtract分割单元
Ctrl-S文件存盘
Shift忽略
Up光标上移或转入上一单元
Down光标下移或转入下一单元

ref:https://blog.youkuaiyun.com/h_hei/article/details/82756207

(pyspark) root@f450802fb22d:/mnt# jupyter lab --allow-root [I 2025-06-19 12:13:38.469 ServerApp] jupyterlab | extension was successfully linked. [W 2025-06-19 12:13:38.474 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. [W 2025-06-19 12:13:38.509 NotebookApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. [I 2025-06-19 12:13:38.511 ServerApp] nbclassic | extension was successfully linked. [I 2025-06-19 12:13:38.746 ServerApp] notebook_shim | extension was successfully linked. [I 2025-06-19 12:13:38.762 ServerApp] notebook_shim | extension was successfully loaded. [I 2025-06-19 12:13:38.763 LabApp] JupyterLab extension loaded from /root/anaconda3/envs/pyspark/lib/python3.7/site-packages/jupyterlab [I 2025-06-19 12:13:38.763 LabApp] JupyterLab application directory is /root/anaconda3/envs/pyspark/share/jupyter/lab [I 2025-06-19 12:13:38.767 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-06-19 12:13:38.770 ServerApp] nbclassic | extension was successfully loaded. [I 2025-06-19 12:13:38.771 ServerApp] Serving notebooks from local directory: /mnt [I 2025-06-19 12:13:38.771 ServerApp] Jupyter Server 1.23.4 is running at: [I 2025-06-19 12:13:38.771 ServerApp] http://f450802fb22d:9871/lab?token=dcb2f1916bf086ee5c05ce342e9be91befa7f3555fb6d057 [I 2025-06-19 12:13:38.772 ServerApp] or http://127.0.0.1:9871/lab?token=dcb2f1916bf086ee5c05ce342e9be91befa7f3555fb6d057 [I 2025-06-19 12:13:38.772 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 2025-06-19 12:13:38.777 ServerApp] To access the server, open this file in a browser: file:///root/.local/share/jupyter/runtime/jpserver-1296-open.html Or copy and paste one of these URLs: http://f450802fb22d:9871/lab?token=dcb2f1916bf086ee5c05ce342e9be91befa7f3555fb6d057 or http://127.0.0.1:9871/lab?token=dcb2f1916bf086ee5c05ce342e9be91befa7f3555fb6d057 ^C[I 2025-06-19 12:14:24.802 ServerApp] interrupted Serving notebooks from local directory: /mnt 0 active kernels Jupyter Server 1.23.4 is running at: http://f450802fb22d:9871/lab?token=dcb2f1916bf086ee5c05ce342e9be91befa7f3555fb6d057 or http://127.0.0.1:9871/lab?token=dcb2f1916bf086ee5c05ce342e9be91befa7f3555fb6d057 Shutdown this Jupyter server (y/[n])? y [C 2025-06-19 12:14:26.524 ServerApp] Shutdown confirmed [I 2025-06-19 12:14:26.526 ServerApp] Shutting down 3 extensions [I 2025-06-19 12:14:26.527 ServerApp] Shutting down 0 terminals我启动jupyter想使用9870端口但是为什么无法使用这个端口,用lsof -i :9870查看也没有输出
06-20
(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
最新发布
09-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大怀特

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值