我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
其他回答
同意大多数答案,除了在jupyter_notebook_config.py中,你必须把
#c.NotebookApp.notebook_dir='c:\\test\\your_root'
双\\是关键答案
经过多次尝试,我终于做到了。下面是我提到的最简单的步骤:
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:我确信还有其他的方法,这对我来说很有效。我甚至不确定上面提到的约束条件。只是有了这些步骤,我可以完成我的工作。
这是我为Windows 10 Anaconda Navigator找到的解决方案。
步骤1:搜索Jupyter Notebook并导航到文件位置。大致如下
步骤2:右键单击Jupyter Notebook,选择属性。将您的目录添加到Target。我的是D:\教育\机器学习
步骤3:不要从Anaconda Navigator中启动Jupyter Notebook。请使用上面的快捷方式。
如果您正在使用jupyter lab并希望修改配置文件,则需要更新的参数为:
c.ServerApp。Root_dir = /path/to/directory/you/want
我用的是Windows 10,不过是同一个版本的Anaconda。
Click on the Start Menu, then All Programs (just Programs for Win10) Click on the Anaconda3 folder; mine is Anaconda3 (64-bit) In there you should see Jupyter Notebook. If you have a virtual environment installed, it will be followed by the environment name like this: Jupyter Notebook (env) Right-click Jupyter Notebook entry and navigate to More => Open File Location Right-click the correct Jupyter Notebook entry, then click on Properties Enter a path in the Start in: box; if the path has spaces in it, you must enclose it in double quotes Delete "%USERPROFILE%" at the end of the executable path