juypter notebook 修改默认打开文件夹以及默认浏览器

1.修改默认打开的文件夹
在“Anaconda Prompt ”中执行jupyter notebook --generate-config命令生成一个配置文件:jupyter_notebook_config.py
这里写上自己想要默认打开的文件夹即可在这里插入图片描述
2.浏览器默认不进行跳转:
添加以下代码:使用的是edge浏览器

import webbrowser
webbrowser.register('edge', None, webbrowser.GenericBrowser(u'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe'))
c.NotebookApp.browser = 'edge'

找到自己的edge浏览器的位置,进行替换即可。
juypter notebook 修改默认打开文件夹以及默认浏览器_第1张图片
3.安装相对应的ipkernel:参考文章:
更换kernel内核

你可能感兴趣的:(jupyter,python)