#author("2025-11-26T06:21:29+00:00","default:iseki","iseki")
** Install for 旧システム
*** Rocky Linux 8 [#g6e6c1d1]
- [[Detail Log>./RockyLinux8_install]]
#author("2025-11-26T06:23:44+00:00","default:iseki","iseki")


*** pip [#ecfe7cfb]

*** conda [#n0e2837f]
- conda update -c conda-forge jupyterhub -y


*** for CentOS 8.5 with pip [#l08667b3]
 # yum install python3
 # pip3 install --upgrade pip
 # yum install npm
 # npm install -g configurable-http-proxy
 # pip install setuptools_rust
 # pip install jupyterhub
 # pip install dockerspawner
 # pip install --upgrade notebook
 # pip install --upgrade jupyterlab
 # jupyterhub --version
 # jupyter --version
 # jupyter notebook --version
 # jupyter lab --version


*** 2.0.0 with conda [#e269f8c5]

**** Change Log [#qacdfa95]
- https://jupyterhub.readthedocs.io/en/stable/changelog.html

**** Install [#j385e508]
 (base) # conda install -c conda-forge conda==4.11.0 -y
 (base) # conda activate jupyterhub
 (jupyterhub) # conda update -c conda-forge jupyterhub -y

 (jupyterhub) # jupyterhub --upgrade-db
 (jupyterhub) # jupyterhub -f .....


**** podmanspawner.PodmanSpawner [#nefeece2]
- おおっ class のサンプルに Podman がある!
-- と思ったら niklas netter 氏の [[podmanspawner>https://github.com/gatoniel/podmanspawner]] じゃん


**** websocket モジュールが無いとのことで起動しなくなった. [#x698e062]
 ModuleNotFoundError: No module named 'websocket'
- conda 環境で websocket をインストール

 # conda install -c conda-forge websocket-client

- pip なら pip install websockets 


**** データベースのスキーマが合わないとのことで,起動しなくなった. [#o77e88b0]
- jupyterhub upgrade-db してもだめなので,/var/lib/jupyterhub 以下を削除


*** 1.4.2 [#i2818e12]

**** conda を使用 [#z4c989ab]
 (base) # conda create -n jupyterhub python=3.8 -y 
 (base) # conda activate jupyterhub
 (jupyterhub) # conda install -c conda-forge notebook -y
 (jupyterhub) # conda install -c conda-forge jupyterlab -y
 (jupyterhub) # conda install -c conda-forge jupyterhub==1.4.2  -y
 (jupyterhub) # conda install -c conda-forge voila -y
 (jupyterhub) # conda install jupyter_client -y
 
 (jupyterhub) # git clone https://github.com/jupyterhub/nativeauthenticator.git 
 (jupyterhub) # pip install -e nativeauthenticator   (認証モジュール:オプション)
 (jupyterhub) # pip install dockerspawner

- ディレクトリのパーミッションの設定を忘れずに!

- nodejs: CentOS7 の場合は nodejs はバージョンが古くて,configurable-http-proxy でエラーが出るので,nodejs をバージョンアップする.
 curl -sL https://rpm.nodesource.com/setup_14.x | bash -
 yum remove nodejs npm -y
 yum install nodejs -y
 node -v
--  nodejs のバージョンがアップしない場合は,/var/tmp/yum-root-* を消す
-- https://rpm.nodesource.com/setup_##.x は非推奨となった.(2023/12/4)
--- see https://github.com/nodesource/distributions

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


*** Notebook の Docker イメージ [#s9b5f83a]
 # docker pull jupyter/datascience-notebook
 # docker pull jupyter/tensorflow-notebook


*** Version Up 1.0.0 -> 1.4.1 [#f7719705]
  # conda install -c conda-forge jupyterhub
  # conda install notebook
**** バージョンの確認 [#m3c5a1bd]
- (jupyterhub) # jupyterhub --version


*** [[LTI Authenticator>LTI]] [#g284e3bf]
- Moodle と連携する為の 認証モジュール(Moodleの外部サービスを使用)
- 先に authlib を入れておく.
-- conda install oauthlib  or pip  install oauthlib

- v1.2.0 release (2021 9/2)
-- https://pypi.org/project/jupyterhub-ltiauthenticator/1.2.0/
-- Moodle に対して Patch 不要

 (jupyterhub)# pip install --upgrade jupyterhub-ltiauthenticator


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS