linux浏览器默认网站更改,如何更改Linux中ipython/jupyter笔记本使用的默认浏览器?...

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用户)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值