Jupyter Notebook 怎么打开指定文件夹
时间: 2024-04-05 13:14:54 浏览: 373
要在 Jupyter Notebook 中打开指定文件夹,可以按照以下步骤:
1. 打开终端或命令提示符,并进入要打开的文件夹所在的目录。
2. 启动 Jupyter Notebook。
3. 在浏览器中打开 Jupyter Notebook,并在右上角点击“New”按钮。
4. 在下拉菜单中选择“Terminal”,打开一个新的终端窗口。
5. 在终端中输入命令“jupyter notebook --notebook-dir=文件夹路径”,其中“文件夹路径”为要打开的文件夹的完整路径。
6. 回车后,Jupyter Notebook 会自动打开指定的文件夹作为其工作目录。
如果你需要经常打开同一个文件夹,可以将以上步骤封装为一个脚本或者别名,这样就可以快速打开指定文件夹了。
相关问题
jupyter notebook 打开指定文件夹
在Jupyter Notebook中打开指定文件夹,可以通过以下步骤实现:
1. 首先,确保你已经安装了Jupyter Notebook并成功启动了它。
2. 打开终端或命令提示符窗口,并导航到你想要打开的文件夹所在的目录。
3. 在终端或命令提示符窗口中,输入以下命令并按下回车键:
```
jupyter notebook
```
4. 这将启动Jupyter Notebook服务器,并在默认浏览器中打开Jupyter Notebook的主页。
5. 在Jupyter Notebook主页中,你将看到文件和文件夹列表。点击你想要打开的文件夹。
6. 进入文件夹后,你可以看到其中的文件和子文件夹。点击你想要打开的文件,它将在新的Jupyter Notebook标签页中打开。
这样,你就可以在Jupyter Notebook中打开指定的文件夹和文件了。
jupyter notebook打开指定文件夹
有两种方法可以打开指定文件夹的Jupyter Notebook:
1. 直接将文件或文件夹用鼠标拖拽至Jupyter快捷键。
2. 在Windows下打开到文件的位置,然后在该位置下,按住Shift + 鼠标右键,选择在此处打开命令窗口(W),或者是win + R ⇒ cmd ⇒ cd [路径],最后输入jupyter notebook ./或jupyter notebook [文件夹路径]即可打开指定文件夹的Jupyter Notebook。
另外,如果你想了解更多关于Jupyter Notebook的使用方法,可以参考引用和引用[3]中提供的文章。
阅读全文
相关推荐
















