Win10 Jupyter Notebook修改home路径
2017-12-22 20:10
489 查看
安装Anaconda3-5.0.1后,发现自带jupyter notebook,打开发现默认目录为C:\User\用户名。试图为更改为自己的用户目录。
百度后发现很多修改方法。
尝试方法一(失败):在命令提示符中运行jupyter notebook -generate-config(由于安装时看到了安装程序中添加到系统路径 No recommend,在运行时发现找不到命令,在Anaconda Prompt运行即可,影响不大),然后修改在C:\Users\用户名\.jupyter中生成的jupyter_notebook_config.py,将#c.NotebookApp.notebook_dir
= ''修改为c.NotebookApp.notebook_dir = '自己的路径',其中路径的正斜杠/、反斜杠\、双反斜杠\\均尝试,改完后试过重启,打开后home路径仍未改变。
尝试方法二(失败):将快捷方式起始位置改为工作目录。
再行谷歌,在官方文档中发现描述
3.1.1. Change Jupyter Notebook startup folder (Windows)
Copy the Jupyter Notebook launcher from the menu to the desktop.
Right click on the new launcher and change the Target field, change %USERPROFILE% to the full path of the folder which will contain all the notebooks.
Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App, which will open in a new browser window (or tab). Note also that a secondary terminal window (used only for error logging and for shut down) will be
also opened. If only the terminal starts, try opening this address with your browser: http://localhost:8888/.
原文网址 http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html#change-jupyter-notebook-startup-folder-windows
在方法二的基础上再将快捷方式中的目标一栏最后一个%USERPROFILE%改为自己的路径,成功解决问题。
百度后发现很多修改方法。
尝试方法一(失败):在命令提示符中运行jupyter notebook -generate-config(由于安装时看到了安装程序中添加到系统路径 No recommend,在运行时发现找不到命令,在Anaconda Prompt运行即可,影响不大),然后修改在C:\Users\用户名\.jupyter中生成的jupyter_notebook_config.py,将#c.NotebookApp.notebook_dir
= ''修改为c.NotebookApp.notebook_dir = '自己的路径',其中路径的正斜杠/、反斜杠\、双反斜杠\\均尝试,改完后试过重启,打开后home路径仍未改变。
尝试方法二(失败):将快捷方式起始位置改为工作目录。
再行谷歌,在官方文档中发现描述
3.1.1. Change Jupyter Notebook startup folder (Windows)
Copy the Jupyter Notebook launcher from the menu to the desktop.
Right click on the new launcher and change the Target field, change %USERPROFILE% to the full path of the folder which will contain all the notebooks.
Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App, which will open in a new browser window (or tab). Note also that a secondary terminal window (used only for error logging and for shut down) will be
also opened. If only the terminal starts, try opening this address with your browser: http://localhost:8888/.
原文网址 http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html#change-jupyter-notebook-startup-folder-windows
在方法二的基础上再将快捷方式中的目标一栏最后一个%USERPROFILE%改为自己的路径,成功解决问题。
相关文章推荐
- 修改jupyter/ipython notebook 默认工作路径
- 修改Jupyter Notebook的默认路径
- windows下修改jupyter notebook工作路径的简单方法
- jupyter notebook 如何修改工作路径
- 修改Anaconda中的Jupyter Notebook当下工作路径
- 如何修改jupyter notebook的默认工作路径
- Windows下Anaconda修改jupyter notebook工作路径
- 总结:修改Anaconda中的Jupyter Notebook默认工作路径的三种方式
- 唯一正确的修改Jupyter Notebook的默认路径
- 修改Anaconda中的Jupyter Notebook默认工作路径
- 修改Jupyter Notebook默认工作路径
- chrom 安装 stylish 修改jupyter notebook 显示字体
- Win10下Anaconda 2与3 共存,dos 切换,jupyter notebook 切换,pycharm 切换
- 关于Anaconda中修改Jupyter Notebook默认启动目录的问题
- win10下Anaconda 2 和 3 共存安装,并切换jupyter notebook和Pycharm中的对应版本
- Anaconda jupyter notebook 修改默认主目录(windows 环境)
- jupyter notebook配置文件修改注意事项--远程访问
- jupyter notebook 工作目录修改
- 日常改BUG——修改jupyter notebook的启动目录
- 【手把手教你】如何修改jupyter notebook的主题