我试着按照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:我确信还有其他的方法,这对我来说很有效。我甚至不确定上面提到的约束条件。只是有了这些步骤,我可以完成我的工作。

其他回答

我用的是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

我使用Anaconda2的windows 7(64位)。在开始菜单中,右键单击Jupyter Notebook ->属性。在Target字段中,将%USERPROFILE%更改为新的“D:\path”。

                         

简单的方法!

在开始菜单中输入jupyer notebook

2 -在jupyter笔记本电脑桌面上制作快捷方式(鼠标右键!)




3 -只拖放你最喜欢的文件夹在快捷方式

从所需位置打开Jupyter Notebook最简单的方法是打开Anaconda Prompt(仅当您使用Anaconda Distribution安装Python时才可能)。

在Windows文件资源管理器中打开所需位置,从Windows文件资源管理器的地址栏复制所需位置。Alt + D到地址栏,Ctrl + C复制位置。

现在打开Anaconda Prompt并输入以下命令:

cd D:\desired location

不知怎么的,蟒蛇提示符回到了原来的位置。输入“d:”,提示符将到达您想要的位置(如下图所示)。请注意,您必须输入所需位置的驱动器号(C:表示C:\ drive-主分区)。

然后,输入“jupyter notebook”,jupyter notebook就会打开。

注意,Jupyter Notebook的主页没有列出任何东西,因为文件夹是空的。

一旦创建了Python3笔记本,主页就会列出这些文件。

这样您就可以从任何位置打开Jupyter Notebook,而不必处理前往安装位置并进行必要调整的所有复杂问题。

同意大多数答案,除了在jupyter_notebook_config.py中,你必须把

#c.NotebookApp.notebook_dir='c:\\test\\your_root'

双\\是关键答案