JupyterHub -安装与配置-简介

目录

前言

安装jupyterhub 

安装需求

安装JupyterHub

配置

启动Jupyterhub


前言

详见:JupyterHub — JupyterHub 2.3.0.dev documentation

个人用户一般不需要安装JupyterHub,安装Jupyter notebook 或者JupyterLab即可,推荐Jupyter Lab。

Jupyter notebook:

Jupyter Notebook 的安装与使用_ITLiu_JH的博客-CSDN博客icon-default.png?t=M276https://blog.csdn.net/it_liujh/article/details/123954017?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164931998216780366585586%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=164931998216780366585586&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-4-123954017.142^v6^control,157^v4^control&utm_term=itliu_jh&spm=1018.2226.3001.4187

JupyterLab:

JupyterLab 的安装与使用_ITLiu_JH的博客-CSDN博客前言JupyterLab is the next-generation web-based user interface for Project Jupyter.JupyterLab enables you to work with documents and activities such asJupyter notebooks, text editors, terminals, and custom components in a flexible, integrated, and e...https://blog.csdn.net/it_liujh/article/details/123836700?spm=1001.2014.3001.5501

JupyterHub 是一个多用户的jupyter notebook。在服务器上安装jupyter Hub可以同时为多用户提供jupyter notebook服务。

  1. If you need a simple case for a small amount of users (0-100) and single server take a look at The Littlest JupyterHub distribution.

  2. If you need to allow for even more users, a dynamic amount of servers can be used on a cloud, take a look at the Zero to JupyterHub with Kubernetes .

Four subsystems make up JupyterHub:

  • Hub (tornado process) that is the heart of JupyterHub

  • configurable http proxy (node-http-proxy) that receives the requests from the client’s browser

  • multiple single-user Jupyter notebook servers (Python/IPython/tornado) that are monitored by Spawners

  • an authentication class that manages how users can access the system

Besides these central pieces, you can add optional configurations through a config.py file and manage users kernels on an admin panel. A simplification of the whole system can be seen in the figure below:

JupyterHub performs the following functions:

  • The Hub launches a proxy

  • The proxy forwards all requests to the Hub by default

  • The Hub handles user login and spawns single-user servers on demand

  • The Hub configures the proxy to forward URL prefixes to the single-user notebook servers

For convenient administration of the Hub, its users, and services, JupyterHub also provides a REST API.

The JupyterHub team and Project Jupyter value our community, and JupyterHub follows the Jupyter Community Guides.

安装jupyterhub 

安装需求

  • linux操作系统;
  • python3.4或者以上的版本,且需要安装pip或者conda;
  • 需要安装nodejs/npm;
  • jupyter notebook4或者以上版本。

安装JupyterHub


python3 -m pip install jupyterhub
npm install -g configurable-http-proxy 
python3 -m pip install notebook 

按需安装:yum install -y nodejs nodejs-npm
 

配置

  • 创建/etc/jupyterhub目录
  • 创建jupyterhub配置文件

         jupyterhub –generate-config
             在/etc/jupyterhub目录下生成一个jupyterhub_config.py文件,包含jupyterhub的默认配置  项,根据需要修改。

其他配置

  •      jupyterhub配置nbextensions

         pip install jupyter_contrib_nbextensions
         jupyter contrib nbextension install –system


启动Jupyterhub

jupyterhub -f /etc/jupyterhub/jupyterhub_config.py

待完善......

 


 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ITLiu_JH

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值