我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
jupyter初学者指南中列出了最佳和最简单的方法: [https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html] 它有Windows和Mac的解决方案,Mac的解决方案也适用于Ubuntu或任何linux发行版。
希望对大家有帮助。我试着把这个作为评论,但我们有足够的声望点。
其他回答
您可以从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
CD导入目录或父目录(与打算的目录将工作嵌套在其中)。
注意它必须是一个文件夹(E:\>—这将不起作用)
然后运行命令jupyter notebook
[1] cd e:
通过以下方法进行测试:
[2] pwd
你可以使用Lopesoft的FileMenuTools程序作为命令提示符,只需输入“jupyter notebook”。
或者,你也可以用它来创建一个专用的快捷方式,使用程序C:/windows/System32/cmd.exe和参数/k jupyter notebook——notebook-dir="%FOLDERPATH%",但这会打开父文件夹中的笔记本,所以你必须点击下。
经过多次尝试,我终于做到了。下面是我提到的最简单的步骤:
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:我确信还有其他的方法,这对我来说很有效。我甚至不确定上面提到的约束条件。只是有了这些步骤,我可以完成我的工作。