在远程服务器上运行jupyter
jupyter-remote的Python项目详细描述
Jupyter-Remote 是在远程服务器上自动运行jupyter的命令行工具。 它来自Jupyter-O2。
jupyter remote旨在简化远程jupyter在一系列远程配置中的使用, 从简单的服务器到需要将请求转发到计算节点的slurm集群。
安装
在远程服务器上设置jupyter。
接下来,安装jupyter remote。
pip install jupyter-remote
然后,生成配置文件。
jupyter-remote --generate-config
按照打印的路径jupyter-remote.cfg并进行编辑以满足您的需要。
有关设置jupyter和排除jupyter远程故障的更多信息,请参阅jupyter-remote tips。
用法
jupyter-remote [profile] [subcommand]
两个参数都是可选的。
如果jupyter安装在您的计算机上,则jupyter remote可以作为jupyter子命令运行:
jupyter remote o2 lab
一定要试试JupyterLab!
有关jupyter远程命令行选项的更多信息,请使用jupyter-remote--help。
配置文件
复制jupyter-remote.cfg并将其命名为jupyter-remote-[profilename].cfg。 见example_cfgs/jupyter-remote-o2.cfg。
注意:profile和子命令选项都是可选的。 如果只提供一个,jupyter remote将首先查找具有该名称的配置文件, 如果没有找到,它将对给定的子命令使用默认配置文件。
要求和兼容性
- python 2.7或3.6
- pexpect.pxsh
- posix:jupyter remote已经在macos和linux上进行了测试,而在windows上它将 需要cygwin和cygwin的python版本。
- Pinentry(建议)