当前位置:首页 > 今天的世界杯

anaconda安装jupyter notebook 点击lunch无法跳转

admin 2025-05-25 08:32:48 5397

anaconda安装jupyter notebook 点击lunch无法跳转

1.打开anaconda prompt终端,输入以下命令:

jupyter notebook --generate-config

2. 找到jupyter_notebook_config.py,打开,找到# c.NotebookApp.browser = 这行,插入以下代码,其中C:\Program Files (x86)\Google\Chrome\Application\chrome.exe为chrome.exe所在路径:

import webbrowser

webbrowser.register('chrome',None, webbrowser.GenericBrowser(u'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'))

c.NotebookApp.browser ='chrome'

更改jupyter notebook 工作目录

打开jupyter_notebook_config.py,找到# c.NotebookApp.notebook_dir = ''这行,插入下面代码,指定文件存放路径:

c.NotebookApp.notebook_dir = 'F:\jupyter'