如何在 Windows 上的 chrome 中打开 Jupyter 笔记本 [英] how to open Jupyter notebook in chrome on windows
问题描述
在我的 Windows PC 上,我安装了 anaconda,当我打开 jupyter 笔记本时,它会在 Internet Explorer 中打开,但我想改用 Chrome.有谁知道如何实现这一目标?
On my Windows PC, i have anaconda installed and when I open a jupyter notebook, it opens up in internet explorer, but I would like to use Chrome instead. Does anyone know how to achieve this?
推荐答案
如果您还没有,请通过运行创建笔记本配置文件
If you haven't already, create a notebook config file by running
jupyter notebook --generate-config
然后,编辑在您的主目录的 .jupyter
文件夹中找到的文件 jupyter_notebook_config.py
.
Then, edit the file jupyter_notebook_config.py
found in the .jupyter
folder of your home directory.
您需要将行 # c.NotebookApp.browser = ''
更改为 c.NotebookApp.browser = 'C:/path/to/your/chrome.exe %s'
You need to change the line # c.NotebookApp.browser = ''
to c.NotebookApp.browser = 'C:/path/to/your/chrome.exe %s'
在 Windows 10 上,Chrome 应位于 C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
但请检查您的系统以确保.
On windows 10, Chrome should be located C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
but check on your system to be sure.
这篇关于如何在 Windows 上的 chrome 中打开 Jupyter 笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!