2018-10-24
閱讀量:
1339
jupyter notebook無法打開Chrome瀏覽器
首先打開Anoconda Prompt,輸入命令 jupyter notebook --generate-config,系統(tǒng)會自動產生一個名為jupyter_notebook_config.py的文件,
并且Anoconda Prompt窗口中會給出文件的路徑。
此處選y:

然后找到C:\Users\Administrator\.jupyter路徑下的文件jupyter_notebook_config.py,例如想用chrome瀏覽器打開的話就在文件末尾添加以下代碼:

# c.NotebookApp.browser = ''
import webbrowser
webbrowser.register('chrome',None,webbrowser.GenericBrowser(u'C:\ProgramFiles(x86)\Google\Chrome\Application\chrome.exe'))
c.NotebookApp.browser = 'chrome'
其中C:\Program Files (x86)\Google\Chrome\Application\chrome.exe,此路徑可通過右鍵點擊瀏覽器快捷方式查看屬性得到,修改完成后,再次打開Jupyter Notebook,則自動打開瀏覽器編輯窗口。






評論(0)


暫無數據
推薦帖子
0條評論
0條評論
0條評論