I'm on Linux Mint 17.3. How do I change the default browser used by the Jupyter notebook? I've installed the notebook as a part of Anaconda 3, and it opens up in my default browser, which is Chrome. But for some reason, Chrome won't let me make a new ipynb. Clicking the 'new' button simply doesn't do anything.So I copied the notebook url to Firefox, and it works perfectly fine there.
我用的是Linux Mint 17.3。如何更改Jupyter笔记本使用的默认浏览器?我把笔记本安装在了Anaconda 3的一部分,它打开了我的默认浏览器,Chrome。但出于某种原因,Chrome不让我生产新的ipynb。点击“新建”按钮什么都不做。所以我把笔记本的url复制到火狐上,它在那里运行得很好。
Is there a way I can make it work with Chrome? Otherwise, how do I change the default browser? The usual answer I've come across is that I've gotta change the c.NotebookApp.browser option, but I can't find a way to do so, since trying to find ipython_notebook_config in the terminal comes up with 4 results:
有办法让它和Chrome兼容吗?否则,如何更改默认浏览器?我遇到的通常的答案是我得换一个c。notebookapp。浏览器选项,但是我找不到这样做的方法,因为试图在终端中找到ipython_notebook_config会得到4个结果:
./anaconda3/lib/python3.5/site-packages/jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py
./anaconda3/lib/python3.5/site-packages/jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.py
./anaconda3/pkgs/jupyter_core-4.0.6-py35_0/lib/python3.5/site-packages/jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py
./anaconda3/pkgs/jupyter_core-4.0.6-py35_0/lib/python3.5/site-packages/jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.py
2 个解决方案
#1
60
You can create jupyter_notebook_config.py by:
您可以创建jupyter_notebook_config。py:
jupyter notebook --generate-config
Then you go to
然后你去
~/.jupyter/jupyter_notebook_config.py
and change
和改变
# c.NotebookApp.browser = ''
to for example:
例如:
c.NotebookApp.browser = '/usr/bin/google-chrome'
You can choose which ever browser is installed. You'll find the path for example by typing which firefox Do not forget to delete the #
您可以选择安装哪个浏览器。例如,您可以输入firefox不会忘记删除#的路径
#2
-2
Chrome Browser > Settings (Scroll all the way to the bottom) > Change Default browser to Chrome > New window would pop up. Change the default browser there!
Chrome浏览器>设置(一直滚动到底部)>将默认浏览器更改为Chrome >将弹出新的窗口。在那里更改默认浏览器!
Worked for me! (Windows 10 User)
为我工作!10(Windows用户)