大道至简,知易行难
广阔天地,大有作为

JupyterHub安装

官网:https://tljh.jupyter.org/en/latest/

官方安装文档:https://tljh.jupyter.org/en/latest/install/custom-server.html

我们选择使用

The Littlest JupyterHub, a recent and evolving distribution designed for smaller deployments, is a lightweight method to install JupyterHub on a single virtual machine. The Littlest JupyterHub (also known as TLJH), provides a guide with information on creating a VM on several cloud providers, as well as installing and customizing JupyterHub so that users may access it at a public URL.

其适用范围是:

A simple JupyterHub distribution for a small (0-100) number of users on a single server. We recommend reading When to use The Littlest JupyterHub to determine if this is the right tool for you.

原理:

Jupiter Hub原理

Jupyter Hub原理

由于需要从GitHub下载代码,因此一键安装脚本必须使用代理:

Jupiter Hub

Jupyter Hub

安装完成后,JupyterHub内部创建的用户会在/home下被创建出对应的用户、用户组及目录,并以此实现权限隔离:

Jupiter Hub

Jupyter Hub

可以看到JupyterHub会自动创建一个单独的env:

Jupiter Hub

Jupyter Hub

JupyterHub利用操作系统用户、操作系统组、操作系统目录做权限隔离,notebook通过Spawner来拉起,Spawner有几种,我们现在用的默认的本地进程,还可以支持Docker以及K8S等:

Jupiter Hub

Jupyter Hub

参考文档:

1、https://tljh.jupyter.org/en/latest/

转载时请保留出处,违法转载追究到底:进城务工人员小梅 » JupyterHub安装

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址