本文介绍了Jupyter Notebook集群有什么用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您能告诉我jupyter群集的用途是什么.我创建了jupyter集群,并建立了连接.但是我还是很困惑,如何有效地使用该集群?
Can you tell me what is the use of jupyter cluster. I created jupyter cluster,and established its connection.But still I'm confused,how to use this cluster effectively?
谢谢
推荐答案
使用Jupyter Notebook群集,您可以在本地计算机上运行Notebook,并通过设置适当的端口号连接到群集上的Notebook.示例代码:
With Jupyter Notebook cluster, you can run notebook on the local machine and connect to the notebook on the cluster by setting the appropriate port number. Example code:
- 使用
ssh username@ip_address
转到服务器. - 设置运行笔记本的端口号.在远程终端上,运行
jupyter notebook --no-browser --port=7800
- 在服务器的本地终端
run ssh -N -f -L localhost:8001:localhost:7800 username@ip_address
上. - 在本地计算机上打开Web浏览器,然后转到
http://localhost:8001/
- Go to Server using
ssh username@ip_address
to server. - Set up the port number for running notebook. On remote terminal run
jupyter notebook --no-browser --port=7800
- On your local terminal
run ssh -N -f -L localhost:8001:localhost:7800 username@ip_address
of server. - Open web browser on local machine and go to
http://localhost:8001/
这篇关于Jupyter Notebook集群有什么用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!