当前位置:网站首页>Change Jupyter Notebook default open directory
Change Jupyter Notebook default open directory
2022-08-09 07:04:00 【Anakin6174】
Jupyter notebook is an interactive editor under anaconda, which is very convenient and easy to use.
By default, the opened directory is the user directory, and many other files are also stored in this directory, which is confusing. We can set a separate directory by ourselves.
When using the anaconda2 version before, you can directly modify the configuration file:
There is a jupyter_notebook_config.py file in the C:\Users\username.jupyter directory, edit the c.NotebookApp.notebook_dir in this file and remove the frontThe # (represents a comment), followed by the directory you want to specify;
For example: c.NotebookApp.notebook_dir = 'E:/PythonProjects/JupyterNotebook/'
Then save the file and restart jupyter notebook.
But in the anaconda3 version, just modifying this configuration file does not work, and you have to modify the properties of jupyte:
1. The right-click properties modify the starting position of the shortcut, and it is found that the default path cannot be modified.
2. Later, I found that there is a parameter %USERPROFILE% behind the "target", which obviously determines the directory, so I deleted this parameter and changed it to "specified directory", and then it's ok, remember to bring double quotation marks.That is, the path of the target and the starting position is the same, and the parameter %USERPROFILE% after the target must be replaced!!!
Reference articles:
1 https://blog.csdn.net/yukinoai/article/details/83087221
2 https://blog.csdn.net/yukinoai/article/details/83087221
3 https://www.cnblogs.com/zwt20120701/p/11253297.html
边栏推荐
猜你喜欢
makefile记录
【nuxt】服务器部署步骤
虚拟机网卡报错:Bringing up interface eth0: Error: No suitable device found: no device found for connection
细谈VR全景:数字营销时代的宠儿
jmeter concurrency and some limitations of the press
Integer 线程安全的
Built-in macros in C language (define log macros)
分布式事务产生的原因
排序第四节——归并排序(附有自己的视频讲解)
DSP+ARM+FPGA高速PCIE/千兆网口信号仿真介绍
随机推荐
【ROS2原理8】节点到参与者的重映射
单例 DCL(double check lock) 饱汉模式和饿汉模式
2017.10.26模拟 b energy
Lottie系列四:使用建议
The water problem of leetcode
我入职阿里后,才知道原来简历这么写
Example of using the cut command
mysql 总结
【MySQL】update mysql.user set authentication_string=password(“123456“) where User=‘root‘; 报错
Distributed id generator implementation
mysql summary
es6 基础知识详解 变量 字符串 解构赋值 函数 对象 从入门到精通
当酷雷曼VR直播遇上视频号,会摩擦出怎样的火花?
P6 ali machine test of 2020 Fibonacci number
unity第一课
HDU - 3183 A Magic Lamp 线段树
差分约束-图论
The AD in the library of library file suffix. Intlib. Schlib. Pcblib difference
2019南昌网络赛 C题,Hello 2019
Explain the wait() function and waitpid() function in C language in detail