当前位置:网站首页>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 .
边栏推荐
- Buy health products for parents
- QT:QSS自定义QListView实例
- Mysql--索引原理+如何使用
- 有些能力,是工作中学不来的,看看这篇超过90%同行
- 带你走进云原生数据库界扛把子Amazon Aurora
- Basic theoretical knowledge of software testing -- app testing
- 《通信软件开发与应用》
- QT:QSS自定义 QProgressBar实例
- Que se passe - t - il ensuite pour ceux qui se sont concentrés sur les tests automatisés?
- QT:QSS自定义QToolBar和QToolBox实例
猜你喜欢

我对测试工作的一些认识(资深测试人员总结)

Uni app learning 1 bottom menu and parent-child components

Bidding website architecture project progress -- Network Security

T5 attempt

Multiple IO transfer - preamble

Cache routing component

DAY 7 小练习

. Net core - a queuing system for wechat official account

Software testing redis database

Hard goods | write all the codes as soon as you change the test steps? Why not try yaml to realize data-driven?
随机推荐
项目组织战略管理
Basic usage of sqlmap
Redis notes 01: Introduction
Qt:qss custom qmenu instance
现在零基础转行软件测试还OK吗?
TypeScript学习总结
Data captured
Software testing (test case) writing: vulgar, native and skillful
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 qtoolbutton instance
《通信软件开发与应用》
Day 7 small exercise
QT:QSS自定义QListView实例
面试官:Redis中列表的内部实现方式是什么?
Latest sales volume of pinduoduo
Flink -- 内置函数(ALL)
【蓝桥杯选拔赛真题44】Scratch消灭骷髅军团 少儿编程scratch蓝桥杯选拔赛真题讲解
sqlmap基本使用方法
Uni app learning 1 bottom menu and parent-child components
Que se passe - t - il ensuite pour ceux qui se sont concentrés sur les tests automatisés?