指定位置打开 jupyter notebook

我们在学习当中经常使用 jupyter notebook 练习 Python 代码,但是直接通过双击 jupyter notebook 软件时,是通过默认位置打开的,但是大多数情况下我们想在指定位置打开 jupyter notebook 软件,具体操作如下所示。

  1. 首先通过 win + S 打开搜索框,然后输入 Anaconda Prompt 并选择该 Anacoda 命令行,然后回车。具体操作如下所示。
    在这里插入图片描述

  2. 输入jupyter notebook 文件夹绝对路径。
    例如这里我们在 D 盘下打开 jupyter notebook。具体操作如下所示。


(base) C:\Users\KIOXIA>jupyter notebook D:\
[W 2025-10-21 21:00:24.305 LabApp] 'notebook_dir' 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-10-21 21:00:24.306 LabApp] 'notebook_dir' 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-10-21 21:00:24.326 LabApp] JupyterLab extension loaded from D:\Anaconda3\lib\site-packages\jupyterlab
[I 2025-10-21 21:00:24.326 LabApp] JupyterLab application directory is D:\Anaconda3\share\jupyter\lab
[I 21:00:24.335 NotebookApp] Serving notebooks from local directory: D:\
[I 21:00:24.335 NotebookApp] Jupyter Notebook 6.4.5 is running at:
[I 21:00:24.335 NotebookApp] http://localhost:8888/?token=a5bb1663d676ed1c5d8d5b89095c8732352dc8196857347b
[I 21:00:24.336 NotebookApp]  or http://127.0.0.1:8888/?token=a5bb1663d676ed1c5d8d5b89095c8732352dc8196857347b
[I 21:00:24.336 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:00:24.568 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/KIOXIA/AppData/Roaming/jupyter/runtime/nbserver-2748-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=a5bb1663d676ed1c5d8d5b89095c8732352dc8196857347b
     or http://127.0.0.1:8888/?token=a5bb1663d676ed1c5d8d5b89095c8732352dc8196857347b

在这里插入图片描述

在这里插入图片描述

安装 Anacoda3 的具体操作请参考网址:https://blog.csdn.net/2301_77987130/article/details/153276491?spm=1011.2415.3001.5331

Logo

中国智能体开发者社区,聚焦智能体与大模型开发,提供前沿资讯、实用工具链、开源项目及行业案例。通过技术沙龙、开发者大赛等活动,促进经验交流与协作,助力开发者快速构建创新智能应用。

更多推荐