flagflag  
4: 2020-08-15 (Sat) 22:20:08 iseki source Cur: 2023-04-26 (Wed) 09:34:57 iseki source
Line 1: Line 1:
 +* Jupyter [#ud5a4e75]
 +- python で書かれた Webアプリケーションによる教育・開発用環境
 +- see also : [[JupyterHub]] (マルチユーザ用 Jupiter サーバ)
 +- see also : [[Python]]
 +#br
 +
** Jupyter Notebook [#d5ab1922] ** Jupyter Notebook [#d5ab1922]
 +- クライアント・サーバモデルであるが,基本的に個人(シングルユーザ)用
 +#br
 +
*** With Anaconda [#wf6eba52] *** With Anaconda [#wf6eba52]
- Python(pip) 環境で入れる方法と [[Anaconda]] 環境で入れる方法がある. - Python(pip) 環境で入れる方法と [[Anaconda]] 環境で入れる方法がある.
- 色々調べると [[Anaconda]] の方が使い易い様子.というか,Anaconda には最初からデフォルトで Jupyter Notebook が入っている! - 色々調べると [[Anaconda]] の方が使い易い様子.というか,Anaconda には最初からデフォルトで Jupyter Notebook が入っている!
-- (base) jupyter notebook --allow-root +- (base) jupyter notebook --allow-root --ip=0.0.0.0 
-- (base) jupyter lab --allow-root+- (base) jupyter lab --allow-root --ip=0.0.0.0 
 +#br 
 +- その後,「データサインティスト以外は Anaconda は使用しばい方が良い」との記事を見つける. 
 +-- Anacondaでは足りないパッケージがあって,結局 pip でそれらを追加していくと,どこかで環境が破壊される可能性があるみたい.
#br #br
-*** Jupyter NoteBook [#q6ca7076+*** Install [#nb5b4afb] 
- (base) conda install -c conda-forge notebook+**** anaconda [#b557ba40] 
 +- anaconda を入れる 
 +- anaconda 環境で conda を使ってインストールする 
 + (base) # conda install -c conda-forge notebook 
 + 
 +- C/C++ サポート 
 + (base) # conda install -c conda-forge xeus-cling 
 + (base) # pip install jupyter_c_kernel 
 + (base) # install_c_kernel --sys-prefix 
 + (base) # jupyter kernelspec list 
 +- ''xeus-cling'' は anaconda 環境 (conda init) でないとインストールできないかも 
 +- install_c_kernel で --sys-prefix を付けないと,C用のカーネルがユーザ環境に入る.削除する場合は ''jupyter kernelspec remove c''
#br #br
-*** JupyterLab [#b387f244] 
-- Jupyter Notebookの後継. 
-- WebアプリケーションによるIDE 
- (base) conda install -c conda-forge jupyterlab -y+**** pip を使用する. [#d08d0c8f] 
 + yum install nodejs 
 + yum install python3-pip 
 + pip install numpy scipy matplotlib seaborn scikit-learn pandas psycopg2 ipython-sql pymysql 
 + pip install jupyter 
 + pip install notebook 
 + pip install jupyterlab 
 + jupyter notebook --version 
 + jupyter lab --versopn
#br #br
-*** JupyterHub [#mb71944e+*** 設定 [#m0eb2396
-- Jupyterサーバー(ユーザ認証機能つき) +以下のコマンドで設定ファイル ''~/.jupyter/jupyter_notebook_config.py'​' が生成される 
-- https://horomary.hatenablog.com/entry/2019/11/09/181614+ (base) # jupyter notebook --generate-config 
 +- リモートマシンからの接続を許可するには ''c.NotebookApp.ip = '0.0.0.0' ''とする.
#br #br
-**** INSTALL [#nfb5f43c+*** 実行 [#rf0092bb
- (base) conda create -n jupyterhub python=3.8 -y + (base) # jupyter notebook --allow-root  --ip=0.0.0.0 
- (base) conda activate jupyterhub +- port: 8888 
- (jupyterhub) conda install -c conda-forge notebook -y +#br 
- (jupyterhub) conda install -c conda-forge jupyterlab -y + 
- (jupyterhub) conda install -c conda-forge jupyterhub -y +*** サブコマンド [#gaf0dfa1] 
- (jupyterhub) conda install -c conda-forge voila -y +- jupyter [subcommand] を実行することと,jupyter-[subcommand] を実行することは同じ. 
- (jupyterhub) conda install jupyter_client -y+ $ \ls jupyter-* 
 + jupyter-bundlerextension    jupyter-kernel        jupyter-labhub      jupyter-nbextensions_configurator  jupyter-serverextension 
 + jupyter-contrib              jupyter-kernelspec    jupyter-migrate      jupyter-notebook                  jupyter-troubleshoot 
 + jupyter-contrib-nbextension  jupyter-lab          jupyter-nbconvert    jupyter-run                        jupyter-trust 
 + jupyter-extension            jupyter-labextension  jupyter-nbextension  jupyter-server 
 + 
 +** JupyterLab [#b387f244] 
 +*** 設定 [#n53dd1dd] 
 +- Jupyter Notebookの後継. WebアプリケーションによるIDE 
 +- ''jupyterhub_config.py'' で ''c.Spawner.default_url = '/lab''' とする
- (jupyterhub) git clone https://github.com/jupyterhub/nativeauthenticator.git +- Install 
- (jupyterhub) pip install -e nativeauthenticator + (base) # conda install -c conda-forge jupyterlab -y 
- (jupyterhub) pip install dockerspawner+- アクセス中にクラシックノートブックにアクセスするには ''/user/{username}/tree'' にアクセス 
 +-- /lab に戻るには ''/user/{username}/lab'' にアクセス
#br #br
 +*** Command [#ucb0d3d2]
 +**** Update [#gaa53fb8]
 +- conda update -c conda-forge jupyterlab
-**** [[Docker]] が必要 [#c1353e30]+- jupyter labextension update --all 
 +-- Node.js(nodejs >=12.0.0)が必要
#br #br
-*** Trouble Shooting [#rf83821d+ 
-**** JupyterHub: PAM使用時に login して logoutし,もう一回 login するとPAMの認証エラーになる. [#cec1cefc+**** Version [#p44ac111] 
-- Resolve: jupyterhub_config.py に ''c.PAMAuthenticator.open_sessions = False'' を追加する +- jupyter lab --version 
-- see: https://github.com/jupyterhub/jupyterhub/issues/486+#br 
 + 
 +** 拡張機能 [#gc7026e3] 
 +- https://www.hinomaruc.com/jupyter-notebo​ok-five-extensions-recommendation/ 
 +#br 
 + 
 +*** nbextensions [#y4176ad9] 
 +- jupyter nbextension list 
 +#br 
 + 
 +**** nbextensions_configurator [#l00f0361] 
 +- ブラウザのタブ上で nbextensions の切り替えができる. 
 +-  --user オプションを付けると個人環境にインストールされる 
 + 
 + (jupyterhub) # pip install jupyter_nbextensions_configurator 
 + (jupyterhub) # jupyter nbextensions_configurator enable --user 
 +#br 
 + 
 +**** contrib-nbextensions [#ob2b83de] 
 +- 拡張機能 
 +-  --user オプションを付けると個人環境にインストールされる 
 + 
 + (jupyterhub) # pip install jupyter-contrib-nbextensions 
 + (jupyterhub) # jupyter contrib nbextension install --user 
 +#br 
 + 
 +**** JupyterHub でのコンテナ設定 [#a7fba7eb] 
 +- Dockerfile 
 + RUN  /opt/conda/bin/conda install -c conda-forge jupyter_contrib_nbextensions -y 
 + RUN  /opt/conda/bin/conda install -c conda-forge jupyter_nbextensions_configurator -y 
 + RUN  /opt/conda/bin/jupyter nbextension install --sys-prefix --py jupyter_nbextensions_configurator --overwrite 
 + RUN  /opt/conda/bin/jupyter nbextension enable  --sys-prefix --py jupyter_nbextensions_configurator 
 + RUN  /opt/conda/bin/jupyter serverextension enable --sys-prefix --py jupyter_nbextensions_configurator 
 +#br 
 + 
 +**** nbgrader [#s1bead70] 
 +- https://github.com/jupyter/nbgrader 
 +- Lab では動かんようだ. 
 +#br 
 + 
 +*** labextensions [#sb566b8b
 +- jupyter labextension list 
 +#br 
 +** ショートカットキー [#c2704792] 
 +- https://qiita.com/zawawahoge/items/baa2a5318df079c5f7e​5 
 +#br 
 + 
 +** Accessibility [#l661cb8c] 
 +- https://jupyter-accessibility.readthedocs.io/en/latest/index.html 
 +#br 
 + 
 +*** JupyterLab [#vb38bee0] 
 +- https://github.com/Quansight-Labs/jupyter-a11y-mgmt/issues/173 (開発中) 
 +#br 
 + 
 +*** Notebook [#nb19346f] 
 +- [[Jupyter Notebook a11y toolbar>https://github.com/uclixnjupyter​nbaccessibility/jupyter_contrib_nbextens​ions/tree/master/src/jupyter_contrib_nbe​xtensions/nbextensions/accessibility_too​lbar]] 2019年で開発停止 
 +- [[NVDA Browser Nav add-on>https://addons.nvda-project.org/a​ddons/browsernav.en.html#:~:text=Browser​Nav%20addon%20for%20NVDA,comments%20or%2​0malformed%20HTML%20tables.%E2%80%9D]] (これはNVDA用のアドオン) 
 + 
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

32 user(s) are online (6 user(s) are browsing xpwiki)

Members: 0
Guests: 32

more...

Access Counter

Today : 704704704
Yesterday : 5790579057905790
Total : 2365350023653500236535002365350023653500236535002365350023653500
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com