当前位置:网站首页>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 .
边栏推荐
- Nuget add reference error while installing packages
- QT: QSS custom qtableview instance
- QT:QSS自定义 QRadioButton实例
- UI自动化测试如何走出困境?价值又如何体现?
- 有些能力,是工作中学不来的,看看这篇超过90%同行
- 公司里只有一个测试是什么体验?听听他们怎么说吧
- QT:QSS自定义 QTabWidget 和 QTabBar实例
- Redis notes 01: Introduction
- The solution that prompts "system group policy prohibits the installation of this device" under win10 system (home version has no group policy)
- Qt:qss custom qlineedit instance
猜你喜欢

.Net Core-做一个微信公众号的排队系统

After 8 years of industry thinking, the test director has a deeper understanding of test thinking

我,大厂测试员,降薪50%去国企,后悔了...

那些一門心思研究自動化測試的人,後來怎樣了?

What is the salary level of 17k? Let's take a look at the whole interview process of post-95 Test Engineers
Redis 笔记 01:入门篇

Uni app learning 1 bottom menu and parent-child components

Multiple IO transfer - preamble

最高月薪18K 拥有好的“心态和选择”, 成功就差“认真和坚持”~

“测试人”,有哪些厉害之处?
随机推荐
STM32F1与STM32CubeIDE编程实例-TM1637驱动4位7段数码管
值得关注的15种软件测试趋势
嵌入式软件测试怎么实现自动化测试?
Qt:qss custom qgroupbox instance
可以写进简历的软件测试电商项目,不进来get一下?
. Net core - a queuing system for wechat official account
软件测试(测试用例)编写之俗手、本手、妙手
那些一门心思研究自动化测试的人,后来怎样了?
Redis notes 01: Introduction
UI自动化测试如何走出困境?价值又如何体现?
Hard goods | write all the codes as soon as you change the test steps? Why not try yaml to realize data-driven?
UI interface design related knowledge (I)
Flink -- built in function (all)
.Net Core-做一个微信公众号的排队系统
QT:QSS自定义QToolBar和QToolBox实例
Nuget add reference error while installing packages
Day 7 small exercise
带你走进云原生数据库界扛把子Amazon Aurora
Take you into the cloud native database industry, Amazon Aurora
Set ArrayList nested map set loop traversal