我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
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.
其他回答
一个不错的技巧是在Windows资源管理器中导航到你想要的开始文件夹:
点击文件 单击打开命令提示符 然后只需输入“jupyter notebook”并按enter键
很快就会弹出一个web浏览器,并显示正确的开始文件夹。
我刚刚遇到了同样的问题,并测试了上面提到的方法。经过几次尝试,我意识到他们是部分正确的,并不是完整的解决方案。我用python 3.6在Windows 10和Anaconda 4.4.0中测试了以下内容。
有两种方法,尽管它们只有很小的区别。 遵循上述marneylc建议的方法:即。
1)打开“Anaconda Prompt”,输入jupyter notebook—generate-config
2)您可以在C:\Users\username\.jupyter\jupyter_notebook_config.py中找到该文件
3)更改#c.NotebookApp的行。Notebook_dir = " c.NotebookApp。Notebook_dir = 'c:\test\your_root\'
4)打开Jupyter Notebook的快捷方式:c:\用户\用户名\ appdata \漫游\微软\ windows \开始菜单\程序\Anaconda3(64位)
5)右键单击并进入属性
6)在Target字段中,按照上面的stenlytw建议,删除%USERPROFILE%。
7)然后,在Start In的字段中,输入jupyter_notebook_config.py中c:\test\your_root\的相同目录
8)完成了!
作为更简单的方法,在步骤3之后,转到C:\Users\User_name\Anaconda3\Scripts
4-2)可以看到jupyter-notebook.exe文件,单击它。
5-2)然后,Jupyter启动你在jupyter_notebook_config.py中指定的文件夹。制作这个文件的快捷方式。
6 - 2)。
[1] cd e:
通过以下方法进行测试:
[2] pwd
以防有人还在寻找答案/其他选择。这是最适合我的。
创建一个.bat文件。 在.bat文件中。将C:\Users\usr\folders\更改为jupyter notebook默认打开的文件夹。 cd C:\Users\usr\folders jupyter笔记本 保存.bat文件并将其放置在任何您想要的位置。通常我会为我正在做的每个项目创建.bat文件。把这些.bat文件看作是快捷方式。 双击。bat文件启动jupyter笔记本在预定的路径。
同意大多数答案,除了在jupyter_notebook_config.py中,你必须把
#c.NotebookApp.notebook_dir='c:\\test\\your_root'
双\\是关键答案