当前位置:网站首页>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 .
边栏推荐
- QT:QSS自定义 QProgressBar实例
- Bid -- service commitment -- self summary
- 8年测试总监的行业思考,看完后测试思维认知更深刻
- Unity learning notes: personal learning project "crazy genius Edgar" error correction document
- Qt:qss custom QSlider instance
- Qt:qss custom qheaderview instance
- sqlmap基本使用方法
- Iterator iterator enhances for loop
- TypeScript学习总结
- 帶你走進雲原生數據庫界扛把子Amazon Aurora
猜你喜欢
MySql 怎么查出符合条件的最新的数据行?
How to monitor the incoming and outgoing traffic of the server host?
What kind of living condition is a tester with a monthly salary of more than 10000?
17K薪资要什么水平?来看看95后测试工程师的面试全过程…
Unity learning notes: personal learning project "crazy genius Edgar" error correction document
Data captured
独家分析 | 关于简历和面试的真 相
Comment réaliser des tests automatisés pour les tests logiciels embarqués?
测试理论概述
8年测试总监的行业思考,看完后测试思维认知更深刻
随机推荐
使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
What are the strengths of "testers"?
那些一门心思研究自动化测试的人,后来怎样了?
MySQL -- index principle + how to use
TypeScript学习总结
《通信软件开发与应用》
Do you really need automated testing?
Qt:qss custom qheaderview instance
【蓝桥杯选拔赛真题44】Scratch消灭骷髅军团 少儿编程scratch蓝桥杯选拔赛真题讲解
那些一門心思研究自動化測試的人,後來怎樣了?
After 8 years of industry thinking, the test director has a deeper understanding of test thinking
QT:QSS自定义QLineEdit实例
Snownlp emotion analysis
T5 的尝试
Strategic management of project organization
独家分析 | 关于简历和面试的真 相
Software testing redis database
QT: QSS custom qtoolbutton instance
QT:QSS自定义QHeaderView实例
ByteDance layoffs, test engineers were almost destroyed: how terrible is the routine behind the recruitment of large factories?