我试着按照Jupyter笔记本文档上的说明去做。

不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?

我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。


当前回答

这个方法可能与你的问题无关,但对我来说很有用。

只需在地址栏中输入“cmd”打开命令提示符,然后输入“jupyter notebook”。

通过这种方法,你可以快速打开蟒蛇jupyter从任何路径你目前停留在Windows系统。

其他回答

打开Anaconda提示符并写入打开G盘jupyter notebook文件夹——notebook-dir“G:”没有“=”

经过多次尝试,我终于做到了。下面是我提到的最简单的步骤:

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

尝试导航到要运行jupyter笔记本文件的文件夹。 在资源管理器中单击右键,然后单击“在终端中打开” 然后键入命令jupyter notebook以从所需位置运行notebook。

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.

我刚刚把我的项目移植到wsl,运行ubuntu 20+。我也需要在Win中使用文件位置,除了notebook_dir(上面有很好的文档),还有浏览器重定向的问题,应该从默认行为中改变。这个答案与笔记本服务器无关。

配置文件的生成在前面的响应中处理;所以我就不在这里描述了。请在

浏览器重定向的默认行为需要停止,因此您应该设置c.NotebookApp。use_redirect_file = False 设置您的首选工作目录;在我的情况下,我使用挂载驱动器,所以c.NotebookApp。notebook_dir ="/mnt/<mount_point>/<目录的全路径,使用/和no: >/"

这使得笔记本可以在首选的Win目录上无缝启动。