我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
我试着按照Jupyter笔记本文档上的说明去做。
不幸的是,我还没弄明白。这个“开始”的领域到底在哪里?
我有一个windows 7(64位)系统,安装了Anaconda3(不在C驱动器中)。我想改变Jupyter开始文件夹的位置。
当前回答
你可以使用Lopesoft的FileMenuTools程序作为命令提示符,只需输入“jupyter notebook”。
或者,你也可以用它来创建一个专用的快捷方式,使用程序C:/windows/System32/cmd.exe和参数/k jupyter notebook——notebook-dir="%FOLDERPATH%",但这会打开父文件夹中的笔记本,所以你必须点击下。
其他回答
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.
这是我为Windows 10 Anaconda Navigator找到的解决方案。
步骤1:搜索Jupyter Notebook并导航到文件位置。大致如下
步骤2:右键单击Jupyter Notebook,选择属性。将您的目录添加到Target。我的是D:\教育\机器学习
步骤3:不要从Anaconda Navigator中启动Jupyter Notebook。请使用上面的快捷方式。
打开Anaconda提示符并写入打开G盘jupyter notebook文件夹——notebook-dir“G:”没有“=”
尝试导航到要运行jupyter笔记本文件的文件夹。 在资源管理器中单击右键,然后单击“在终端中打开” 然后键入命令jupyter notebook以从所需位置运行notebook。
这就是我在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就会亮起来,包裹就会放进去 父文件夹将可用。