当前位置:网站首页>Solution: jupyter notebook does not pop up the default browser
Solution: jupyter notebook does not pop up the default browser
2022-07-03 10:59:00 【33-Hope】
Write to yourself
1. First , Make sure your problem is :Jupyter-notebook It works , But do not pop up the default browser , Such as below ( Only the following figure , The browser is dead !):

Solution :
- There are multiple browsers on the computer , And no default browser is set , Please select a browser set as the default .( Method by https://zhuanlan.zhihu.com/p/33266087 The author provides , But it doesn't work for me )
- modify Jupyter-notebook Configuration file for
First, the location of the file is :C:\Users\ user name .jupyter ( Be careful , The user name is set by yourself , such as Zhang , This depends on your c The specific name of the disk ), Open mode selection Notepad Just fine , Of course, other applications are optional

Search for
#c.NotebookApp.browser = '', The following situation will pop up (Ctrl + H Search for )
Next, modify , After the sentence searched above , add to :
import webbrowser
webbrowser.register(
"Firefox", # Custom name , Please delete this comment when copying
None,
webbrowser.GenericBrowser(u"D:\\Program Files\\Firefox\\firefox.exe"))
c.NotebookApp.browser = "Firefox"
( Code from : Adding a link description must be successful !!!Jupyter-notebook Modify the default browser and default opening location )
- The results are as follows :

Here are some things to pay attention to :
webbrowser.GenericBrowser(u"D:\\Program Files\\Firefox\\firefox.exe"))# Specify the location of the program
The location of the program in this code , Write according to the location of your own program , Don't copy my . If you don't know the browser is installed inside , Icons can be found on the desktop , Right click , attribute :
- Notice after checking , Modify according to the code given above , namely \ It needs to be changed into two “\”
webbrowser.GenericBrowser(u"E:\\Software\\Firefox\\firefox.exe")) - Any browser can , I use Firefox . But ask for : The installation directory of the browser should not have Chinese ,( My Google has Chinese , All Firefox's ) As for how to solve Chinese , Please Baidu I'm tired , Don't want Baidu .
边栏推荐
- Set ArrayList nested map set loop traversal
- MySQL checks for automatic updates at 0:00 every day
- MAUI Developer Day in GCR
- If you always feel that you need to persist in learning English
- STM32F1与STM32CubeIDE编程实例-TM1637驱动4位7段数码管
- Interviewer: what is the internal implementation of the list in redis?
- 带你走进云原生数据库界扛把子Amazon Aurora
- 文件上传下载测试点
- Bid -- service commitment -- self summary
- 缓存路由组件
猜你喜欢
随机推荐
Flink <-->Redis的使用介绍+with参数
Hard goods | write all the codes as soon as you change the test steps? Why not try yaml to realize data-driven?
QT: QSS custom qtreeview instance
字节跳动大裁员,测试工程师差点遭团灭:大厂招人背后的套路,有多可怕?
[true question of the Blue Bridge Cup trials 44] scratch eliminate the skeleton Legion children programming explanation of the true question of the Blue Bridge Cup trials
Take you into the cloud native database industry, Amazon Aurora
面试官:Redis中列表的内部实现方式是什么?
What are the strengths of "testers"?
QT:QSS自定义QToolButton实例
值得关注的15种软件测试趋势
最高月薪18K 拥有好的“心态和选择”, 成功就差“认真和坚持”~
T5 的尝试
公司测试部门来了个00后卷王之王,老油条感叹真干不过,但是...
带你走进云原生数据库界扛把子Amazon Aurora
If you always feel that you need to persist in learning English
Praise syllogism
Snownlp emotion analysis
Flink--Chain的条件源码分析
Wechat applet training notes 1
缓存路由组件









