当前位置:网站首页>Using jupyter (I), install jupyter under windows, open the browser, and modify the default opening address
Using jupyter (I), install jupyter under windows, open the browser, and modify the default opening address
2022-07-29 04:47:00 【__ Meursault__】
Why use jupyter
(1)jupyter It can run in branches , In the past, if you want to check the function of a function, you need to create another py file , More trouble , No need now ,nice
(2) Development trend , Or convenient
(3) Doggerel
One 、jupyter Installation
open cmd, Use pip install
pip install jupyter Generally, the installation is slow It is recommended to use image installation
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter # Tsinghua mirror , Other casual
After installation , stay cmd Or the port input of the compiler jupyter notebook
however 
Although you can copy the following link to open and enter jupyter, But it's very inconvenient .
So we need to set the default browser , Make it input each time jupyter notebook , Can automatically open the browser
Two 、 Set up jupyter browser
(1) Check the location of the browser
- 1) Browser icon —— attribute —— The starting position

- 2) If it is Google browser, you can also enter ,chrome://version/

(2) Look at the configuration file
stay cmd Input in jupyter notebook --generate-config In the input y, It will return jupyter Configuration file for , Open this file .

(3) Change the default address
Find... In the open file ,c.NotebookApp.browser
Generally ctrl+f lookup

You can see ,browser There is no content in it , This is why no one can open it directly
After the c.NotebookApp.browser=" " Enter the following code , Replace the address in the code with the browser's executive file directory found in the first step
import webbrowser
webbrowser.register('chrome',None,webbrowser.GenericBrowser(u'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'))
c.NotebookApp.browser = 'chrome'
Then save it ok 了
Generally, the default file location is opened
3、 ... and 、 Modify the default opening address
Similar to the above , This time c.NotebookApp.notebook_dir , Enter your file address in the back ok, Remember to put the front ”#“ Get rid of

Oh oh , Almost forgot , If you don't want to open it every time cmd Input jupyter notebook, You can build a txt, Input jupyter notebook , Then change the suffix to bat, Just open this file next time
Time really fast , Magical 20 End of year in the past
In the past , All is prologue
2020.12.30
边栏推荐
- spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
- Star a pathfinding in LAYA
- Unity基础(3)—— unity中的各种坐标系
- C语言之基础语法
- Use more flexible and convenient Rogowski coil
- Tower of Hanoi classic recursion problem (C language implementation)
- Opencv environment construction
- ssm整合增删改查
- post导出数据,返回
- IOS interview preparation - IOS
猜你喜欢

What are the core features of the digital transformation of state-owned construction enterprises?

After the spinning up installation is completed, use the tutorial to test whether it is successful. There are library "Glu" not found and 'from pyglet.gl import * error solutions

Make a virtual human with zego avatar | virtual anchor live broadcast solution

GCC基础知识
![学术 | [LaTex]超详细Texlive2022+Tex Studio下载安装配置](/img/4d/f8c60c0fbbd98c4da198cfac7989fa.png)
学术 | [LaTex]超详细Texlive2022+Tex Studio下载安装配置

File operation (Advanced C language)

SGuard64.exe ACE-Guard Client EXE:造成磁盘经常读写,游戏卡顿,及解决方案

How to avoid damage of oscilloscope current probe

MySQL - clustered index and secondary index

Data Lake: spark, a distributed open source processing engine
随机推荐
def fasterrcnn_ resnet50_ FPN () instance test
[c language] PTA 7-50 output Fahrenheit Celsius temperature conversion table
央企建筑企业数字化转型核心特征是什么?
使用更灵活、更方便的罗氏线圈
MySQL - clustered index and secondary index
谷歌浏览器 打开网页出现 out of memory
i++与++i详解
网络之以太网
【Express连接MySQL数据库】
Flutter 手势监听和画板实现
Build auto.js script development environment
Install the gym corresponding to mujoco in the spinning up tutorial, and the error mjpro150 is reported
Reveal安装配置调试
IOS interview preparation - IOS
File operation (Advanced C language)
Whether the modification of import and export values by ES6 and commonjs affects the original module
MySQL - 深入解析MySQL索引数据结构
Redux quick start
mpc5744p简介与OpenSDA固件更新
使用近场探头和电流探头进行EMI干扰排查