当前位置:网站首页>Jupyter for local and remote access to ECS
Jupyter for local and remote access to ECS
2022-04-23 02:29:00 【Weiyaner】
List of articles
1 Server installation jupyter
1.1 pip install
pip install jupyter
1.2 The configuration file
View the configuration file .jupyter/jupyter_notebook_config.py, If not found, generate the configuration file
jupyter notebook --generate-config
1.3 Create login password
Method 1 : First create a password , This password is used to log in locally to a remote server jupyter notebook.
Open... On the server Python Environmental Science , Enter the following code
from notebook.auth import passwd
passwd()
Enter password: # Input password , This password is used for remote login jupyter notebook
Verify password: # Verify the password again , enter , The following ciphertext will be generated
'sha1:7***********************87d21'
Open the upyter_notebook_config.py file , Set access notebook Information about
c.NotebookApp.ip='*' # * Express all IP, Set up here ip Accessible for all
c.NotebookApp.password = u'sha1:7***********************87d21'
c.NotebookApp.open_browser = False # prohibit notebook Automatically open browser at startup ( stay linux Servers are generally ssh Command line access , There's no graphical interface . therefore , It's no use starting )
c.NotebookApp.port =9000 # Specify the port to access , The default is 8888
start-up jupyter notebook, Access... From your local browser :serve_ip:9000, appear notebook The login page , Enter the password to use .
Method 2 : Directly enter the following command on the server command line , This will be done in and jupyter_notebook_config.py Create... Under the same directory jupyter_notebook_config.conf file , There is a ciphertext for entering the password , It can also be used to log in jupyter notebook.
jupyter notebook password
Enter password: ****
Verify passsword: ****
2 SSH Mapping server ip To local
The main idea : have access to ssh Command to do a port mapping
Let's first learn how to map remote ports to local commands , as follows :
ssh -L 8080:localhost:9000 [email protected]
If we remote server jupyter notebook Open ports are 9000, Through the above command, we can send the remote 9000 Port mapping to local 8080 port , among user Is the user name of the remote server ,xxx.xxx.xxx It's a remote server ip, The following figure shows the successful interface .

ps: I failed. , I haven't got this interface yet , It's always a mistake , The above is from Other bloggers
ssh: connect to host localhost port 22: Connection refused
3 About jupyter Other questions
3.1 Boot kernel cannot find virtual environment (tf,torch wait )
There are generally two solutions , Recommended approach 2, Solve the problem at one time .
-
Find... In the virtual environment directory jupyter lab And start the , Generally in
/envs/pytorch/bin, type :jupyter lab -
stay base Environment , Type the following command :
python -m ipykernel install --name pytorch --display-name torchamong ,pytorch Is the name of your virtual environment , The back is kernel Interface display name .
3.2
版权声明
本文为[Weiyaner]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230228265142.html
边栏推荐
- PTA: 点赞狂魔
- 【2019-CVPR-3D人体姿态估计】Fast and Robust Multi-Person 3D Pose Estimation from Multiple Views
- Dynamic batch processing and static batch processing of unity
- How to recognize products from the perspective of Dialectics
- PTA: 浪漫倒影 [二叉树重建] [深度优先遍历]
- 使用Go语言构建Web服务器
- WordPress calls the specified page content. 2 get_ children()
- PTA: Romantic reflection [binary tree reconstruction] [depth first traversal]
- [XJTU计算机网络安全与管理]第二讲 密码技术
- Heap overflow of kernel PWN basic tutorial
猜你喜欢

Open3d point cloud processing

Leetcode40 - total number of combinations II

002_Redis_String类型常见的操作命令

How to call out services in idea and display the startup class in services

都是做全屋智能的,Aqara和HomeKit到底有什么不同?

Campus transfer second-hand market source code

Arduino esp8266 network upgrade OTA
![[XJTU计算机网络安全与管理]第二讲 密码技术](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[XJTU计算机网络安全与管理]第二讲 密码技术

How to prevent leakage of operation and maintenance data

New book recommendation - IPv6 technology and application (Ruijie version)
随机推荐
C # import details
002_ Redis_ Common operation commands of string type
Understanding process (multithreading primary)
R language advanced | generalized vector and attribute analysis
LeetCode 447. Number of boomerangs (permutation and combination problem)
[NK] Niuke monthly race 48 D
Realize linear regression with tensorflow (including problems and solutions in the process)
009_Redis_RedisTemplate入门
SQL server2019 cannot download the required files, which may indicate that the version of the installer is no longer supported. What should I do
16、 Anomaly detection
LeetCode 349. Intersection of two arrays (simple, array) Day12
A domestic image segmentation project is heavy and open source!
Dynamic memory management
[assembly language] understand "stack" from the lowest point of view
Daily question (April 22, 2022) - rotation function
[chrome extender] content_ Cross domain problem of script
双亲委派模型【理解】
Hyperscan -- 2 compilation
How to call out services in idea and display the startup class in services
tp6阿裏雲短信 window 報 cURL error 60: SSL certificate problem: unable to get local issuer certificate