当前位置:网站首页>更改Jupyter Notebook默认打开目录
更改Jupyter Notebook默认打开目录
2022-08-09 06:56:00 【Anakin6174】
Jupyter notebook是anaconda下面的一个交互式的编辑器,非常方便好用。
在默认情况下,打开的目录是user目录下,很多其他文件也存储在此目录下,比较混乱,我们可以自己单独设置一个目录。
在之前使用anaconda2版本的时候,直接修改配置文件即可:
C:\Users\用户名.jupyter目录下有jupyter_notebook_config.py文件,编辑此文件中的c.NotebookApp.notebook_dir 去掉前面的#(表示注释),后面写入你想指定的目录;
例如:c.NotebookApp.notebook_dir = ‘E:/PythonProjects/JupyterNotebook/’
然后保存文件,重启jupyter notebook即可。
但是在anaconda3版本下,仅仅修改这个配置文件还不起作用,还得修改jupyte的属性:
1、右键属性修改了快捷方式的起始位置,发现并不能修改默认路径。
2、后来发现“目标”中后面有个参数%USERPROFILE%,很明显这个决定了目录,于是我将这个参数删除改成了”指定目录”,然后就可以了,记得带上双引号。也就是目标和起始位置的路径是一样的,一定要把目标后面的参数%USERPROFILE%替换掉!!!
参考文章:
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
边栏推荐
- stm32定时器之简单封装
- SIGINT,SIGKILL,SIGTERM信号区别,各类信号总结
- 分布式事务的应用场景
- Silently start over, the first page is also a new page
- MVN 中配置flyway mysq
- 【nuxt】服务器部署步骤
- 日期处理,字符串日期格式转换
- 排序第二节——选择排序(选择排序+堆排序)(两个视频讲解)
- 【sqlite3】sqlite3.OperationalError: table addresses has 7 columns but 6 values were supplied
- (本章节完结)排序第五节——非比较排序(计数排序+基数排序+桶排序)(附有自己的视频讲解)
猜你喜欢
买口罩(0-1背包)
安装flask
(本章节完结)排序第五节——非比较排序(计数排序+基数排序+桶排序)(附有自己的视频讲解)
错误:为 repo ‘oracle_linux_repo‘ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.
细谈VR全景:数字营销时代的宠儿
分布式事务产生的原因
2022-08-08: Given an array arr, it represents the height of the missiles that will appear in order from morning to night.When the cannon shoots missiles, once the cannon is set to shoot at a certain h
Altium designer software commonly used the most complete package library, including schematic library, PCB library and 3D model library
高项 04 项目变更管理
Integer 线程安全的
随机推荐
The water problem of leetcode
shardingsphere数据分片配置项说明和示例
Service
多米诺骨牌
Distributed id generator implementation
虚拟机网卡报错:Bringing up interface eth0: Error: No suitable device found: no device found for connection
移远EC20 4G模块拨号相关
半导体新能源智能装备整机软件系统方案设计
The division principle summary within the collection
Altium designer软件常用最全封装库,包含原理图库、PCB库和3D模型库
The working principle of the transformer (illustration, schematic explanation, understand at a glance)
报错jinja2.exceptions.UndefinedError: ‘form‘ is undefined
Silently start over, the first page is also a new page
C language implements sequential stack and chain queue
2022年7月小结
composer 内存不足够
高项 04 项目变更管理
当酷雷曼VR直播遇上视频号,会摩擦出怎样的火花?
longest substring without repeating characters
AD的library中 库文件后缀有.intlib .schlib .pcblib 的区别