当前位置:网站首页>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 .
边栏推荐
- Iterator iterator enhances for loop
- Qt:qss custom qheaderview instance
- Redis notes 01: Introduction
- 软件测试(测试用例)编写之俗手、本手、妙手
- snownlp情感分析
- Flink <-->JDBC的使用介绍+with参数
- Programming examples of stm32f1 and stm32subeide -tm1637 drives 4-bit 7-segment nixie tubes
- 分组函数之rollup、cube函数、grouping sets函数
- The normal one inch is 25.4 cm, and the image field is 16 cm
- Is it OK to test the zero basis software?
猜你喜欢
正常一英寸25.4厘米,在影像领域是16厘米

Uni app learning 1 bottom menu and parent-child components

Some abilities can't be learned from work. Look at this article, more than 90% of peers

STM32F1与STM32CubeIDE编程实例-TM1637驱动4位7段数码管

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

软件测试——Redis数据库

QT:QSS自定义 QScrollBar实例

What kind of living condition is a tester with a monthly salary of more than 10000?

Exclusive analysis | truth about resume and interview

Take you into the cloud native database industry, Amazon Aurora
随机推荐
多路IO转接——前导
QT: QSS custom qsplitter instance
Qt:qss custom qradiobutton instance
Qt:qss custom qheaderview instance
测试Leader应该做哪些事
嵌入式软件测试怎么实现自动化测试?
文件上传下载测试点
STM32F1与STM32CubeIDE编程实例-TM1637驱动4位7段数码管
Strategic management of project organization
snownlp情感分析
Communication software development and Application
The normal one inch is 25.4 cm, and the image field is 16 cm
QT:QSS自定义 QMenuBar实例
QT:QSS自定义QHeaderView实例
Multiple IO transfer - preamble
sqlmap基本使用方法
那些一门心思研究自动化测试的人,后来怎样了?
软件测试必学基本理论知识——APP测试
QT:QSS自定义 QTabWidget 和 QTabBar实例
带你走进云原生数据库界扛把子Amazon Aurora