我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
其他回答
你可以像这样制作windows bat文件。
D: (your dexired drive)
cd \Your\Desired\Start\Derectory
Jupyter notebook
保存为“JupyterNB.bat”(或任何你喜欢的),并双击它。
一个不错的技巧是在Windows资源管理器中导航到你想要的开始文件夹:
点击文件 单击打开命令提示符 然后只需输入“jupyter notebook”并按enter键
很快就会弹出一个web浏览器,并显示正确的开始文件夹。
如果您正在使用jupyter lab并希望修改配置文件,则需要更新的参数为:
c.ServerApp。Root_dir = /path/to/directory/you/want
I've just installed Anaconda on Windows 10 and have been trying to configure Jupyter to open in my specified directory, including updating the Jupyter config file as suggested above. This didn't work. After viewing other threads, I stumbled on file "notebook.bat" in the .anaconda\scripts\ folder. This launches Jupyter. I took a copy of the .bat file into the folder I want to work in, ran it, and voila - Jupyter launches in that folder and I no longer see every folder on my PC, just the one I want. One desktop shortcut later and I'm a happy 'non-techy'. I hope this helps.
同意大多数答案,除了在jupyter_notebook_config.py中,你必须把
#c.NotebookApp.notebook_dir='c:\\test\\your_root'
双\\是关键答案