远程连接GPU服务器上的jupyter notebook
序言
——————
近期由于要跑一些cv方向的代码,自己的电脑GPU太垃圾,根本跑不动。正好实验室有GPU服务器,配了2块Nvidia Geforce RTX 2080 Ti。然后就涉及到需要在自己的笔记本上远程连接服务器上的jupyter notebook来使用GPU服务器上的算力。以下分为单用户和多用户的解决方案。
单用户就是1个账号上运行1个jupyter notebook服务,只需要分配一个端口;多用户就是你一个账号要开n个jupyter notebook服务,需要分配多个端口。
单用户连接jupyter notebook解决方案
以下操作均在GPU服务器上进行。
安装jupyter notebook
-
安装Anaconda3
bash Anaconda3-2019.10-Linux-x86_64.sh(需要去官网下载)
-
创建虚拟环境
conda create -n xxx python=3.7
-
激活虚拟环境
conda actiavte xxx
-
安装jupyter notebook
conda install jupyter notebook