我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
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.
其他回答
这个方法可能与你的问题无关,但对我来说很有用。
只需在地址栏中输入“cmd”打开命令提示符,然后输入“jupyter notebook”。
通过这种方法,你可以快速打开蟒蛇jupyter从任何路径你目前停留在Windows系统。
您可以从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
Windows 10:
寻找木星笔记本快捷方式(在开始菜单>Anaconda)。 右键单击“属性”。 如截图所示,添加你想要的路径(但使用/ not \ for path):
从所需位置打开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,而不必处理前往安装位置并进行必要调整的所有复杂问题。