我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
经过多次尝试,我终于做到了。下面是我提到的最简单的步骤:
Right click on the jupyter launcher icon from start menu or desktop or anaconda navigator Now you need to change 2 things on the screen: Add your path to both target and start in the properties window Caveats: a. Your path needs to be in the same drive as the drive in which jupyter is installed. Since mine was in C drive, I used the following path "C:/JupyterWorkLibrary" b. For target, at the end of the existing path, i.e, after sript.py", add this after a space. Some people have mentioned removing %USERPROFILE% from target. I did not come across this. Image for jupyter properties c. For start in, add the same path. I have used a path without spaces to avoid issues. I would also suggest stick to using path in double quotes anyways d.I have also used forward slashes in the path Now just launch the notebook. It should open into the right folder.
希望这能有所帮助。
PS:我确信还有其他的方法,这对我来说很有效。我甚至不确定上面提到的约束条件。只是有了这些步骤,我可以完成我的工作。
其他回答
我刚刚遇到了同样的问题,并测试了上面提到的方法。经过几次尝试,我意识到他们是部分正确的,并不是完整的解决方案。我用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)。
这个方法可能与你的问题无关,但对我来说很有用。
只需在地址栏中输入“cmd”打开命令提示符,然后输入“jupyter notebook”。
通过这种方法,你可以快速打开蟒蛇jupyter从任何路径你目前停留在Windows系统。
一个不错的技巧是在Windows资源管理器中导航到你想要的开始文件夹:
点击文件 单击打开命令提示符 然后只需输入“jupyter notebook”并按enter键
很快就会弹出一个web浏览器,并显示正确的开始文件夹。
如果你的目标是永久性地改变创业地点。您可以通过更改笔记本的快捷方式来实现这一点。假设你用的是Windows 10
按下开始并在Anaconda文件夹中找到Jupter Notebook 右键单击->更多->打开文件位置 右键点击Jupyter笔记本短可爱->属性 现在在目标中:您将在末尾看到类似于“%USERPROFILE%/”的内容。将%USERPROFILE%/的内容替换为所需的目录。如。“D: \ GoogleDrive”
祝你好运
您可以从conda命令行更改配置:
运行anaconda命令提示符 运行jupyter notebook—generate-config 你应该在家里创建一个目录。jupyter/,文件是jupyter_notebook_config.py 取消注释并编辑字段c.NotebookApp.notebook_dir
感谢克莱门特https://groups.google.com/a/continuum.io/forum/#!主题/蟒蛇/ gqRwT_SxGBw