markdown 远程服务器Jupyter实验室

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 远程服务器Jupyter实验室相关的知识,希望对你有一定的参考价值。

# Credit: http://benjlindsay.com/blog/running-jupyter-lab-remotely/

# Log in to remote server
ssh username@hostname

# Now on remote server via ssh
jupyter lab --no-browser --port=8888

# On local computer:
ssh -Y -N -L localhost:888X:localhost:8888 username@hostname

# Notes!
# 1. Change username@hostname appropriately
# 2. The remote localhost is 8888, make sure these match like the example above
# 3. The "local" localhost is 888x (an be any number between 8880 - 8890)
# Python programming setup
- Desc: This is my current workflow for setting up my Python programming interface
with Jupyter lab on a remote server. I will be setting up Jupyter lab on the 
remote server to be constantly running. After this has been completed once, only
step 5-6 are needed to connect my local computer to the running Jupyter lab.

- Benefits: 
  - Now I get to develope locally using the Jupyter Lab interface but run
  calculations on remotely on the servers :)

- Credit: http://benjlindsay.com/blog/running-jupyter-lab-remotely/

## Steps:

1. Start computer
2. Turn on VPN for MPI servers
3. open two terminals (A, B)
4. Terminal A: 

```
# connect to server
ssh username@hostname

# go to home directory repos
# example:
cd /bioinf/home/mschecht/post_msc

# Now on remote server via ssh
jupyter lab --no-browser --port=8888
```
5. Terminal B:

```
# On local computer:
ssh -Y -N -L localhost:888X:localhost:8888 username@hostname
```
6. Copy link in stdout of step 4 and paste into web browser

以上是关于markdown 远程服务器Jupyter实验室的主要内容,如果未能解决你的问题,请参考以下文章

Linux下配置jupyter notebook远程访问实战:配置Jupyter的连接密码启动jupyter服务远程访问jupyter(关闭防火墙)

markdown 构建多用户隔离的Jupyter Lab单服务器原生环境

[ 隧道技术 ] 利用 Cpolar 远程 Jupyter Notebook(公网远程访问内网 Jupyter 服务器)

Centos7 搭建jupyter远程服务器

远程访问 WSL2 Jupyter notebook

本地远程连接服务器上的Jupyter Notebook设置方法