当前位置:网站首页>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 torch
among ,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
边栏推荐
- 006_ redis_ Jedis quick start
- [nk]牛客月赛48 D
- A domestic image segmentation project is heavy and open source!
- Applet reads files
- 都是做全屋智能的,Aqara和HomeKit到底有什么不同?
- Is the sinking coffee industry a false prosperity or the eve of a broken situation?
- 从0开始开发一个chrome插件(2)
- Consider defining a bean of type 'com netflix. discovery. AbstractDiscoveryClientOptionalArgs‘
- 89 régression logistique prédiction de la réponse de l'utilisateur à l'image de l'utilisateur
- LeetCode 283. Move zero (simple, array) Day12
猜你喜欢
下载正版Origin Pro 2022 教程 及 如何 激 活
After idea is successfully connected to H2 database, there are no sub files
使用Go语言构建Web服务器
Chinese scientists reveal a new mechanism for breaking through the bottleneck of rice yield
每日一题(2022-04-22)——旋转函数
Common formatting problems after word writing
001_redis设置存活时间
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
Open3d point cloud processing
How to call out services in idea and display the startup class in services
随机推荐
VMware virtual machine installation openwrt as side route single arm route img image to vmdk
想体验HomeKit智能家居?不如来看看这款智能生态
Usage of vector common interface
[nk]牛客月赛48 D
Multithreading technology core
Synchronized锁及其膨胀
程序设计天梯赛 L1-49 天梯赛分配座位(模拟),布响丸辣
006_ redis_ Sortedset type
[NK] Niuke monthly race 48 D
Explain JS prototype and prototype chain in detail
JSP page nesting
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
openstack 服务的启动
go语言打怪通关之 ⌈互斥锁和状态协程⌋
解决 注册谷歌邮箱 gmail 手机号无法用于验证
Hyperscan -- 2 compilation
IAR嵌入式开发STM32f103c8t6之点亮LED灯
Talk about current limiting
006_ redis_ Jedis quick start
Dynamic batch processing and static batch processing of unity