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

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

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


当前回答

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

其他回答

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

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

双\\是关键答案

简单的方法!

在开始菜单中输入jupyer notebook

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




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

这就是我在Windows上为Jupyter/Anaconda所做的。这个方法 还传递给jupyter一个python配置脚本。我用它来添加一个路径到我的项目父文件夹:

在某个地方创建jnote.bat:

@echo off
call activate %1
call jupyter notebook "%CD%" %2 %3
pause

在同一个文件夹中创建一个windows快捷方式jupyter-notebook

        TARGET: D:\util\jnote.bat py3-jupyter --config=jupyter_notebook_config.py
        START IN: %CD%

将jupyter图标添加到快捷方式。

在jupyter projects文件夹中执行以下操作:

创建jupyter_notebook_config.py,把你喜欢的东西放在这里:

import os
import sys
import inspect

# Add parent folder to sys path

currentdir = os.path.dirname(os.path.abspath(
    inspect.getfile(inspect.currentframe())))

parentdir = os.path.dirname(currentdir)

os.environ['PYTHONPATH'] = parentdir

然后粘贴jupyte -notebook快捷方式。双击 快捷键和你的jupyter就会亮起来,包裹就会放进去 父文件夹将可用。

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

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

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

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