13: 2021-07-20 (火) 00:39:30 iseki |
現: 2023-04-26 (水) 09:34:57 iseki |
| - 色々調べると [[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 |
| | | |
| *** Install [#nb5b4afb] | | *** Install [#nb5b4afb] |
| + | **** anaconda [#b557ba40] |
| - anaconda を入れる | | - anaconda を入れる |
| - anaconda 環境で conda を使ってインストールする | | - anaconda 環境で conda を使ってインストールする |
| (base) # conda install -c conda-forge notebook | | (base) # conda install -c conda-forge notebook |
- | #br | |
| | | |
- | **** C/C++ サポート [#o92991fb] | + | - C/C++ サポート |
| (base) # conda install -c conda-forge xeus-cling | | (base) # conda install -c conda-forge xeus-cling |
- | (base) # pip install jupyter-c-kernel | + | (base) # pip install jupyter_c_kernel |
| (base) # install_c_kernel --sys-prefix | | (base) # install_c_kernel --sys-prefix |
| (base) # jupyter kernelspec list | | (base) # jupyter kernelspec list |
| - ''xeus-cling'' は anaconda 環境 (conda init) でないとインストールできないかも | | - ''xeus-cling'' は anaconda 環境 (conda init) でないとインストールできないかも |
| - install_c_kernel で --sys-prefix を付けないと,C用のカーネルがユーザ環境に入る.削除する場合は ''jupyter kernelspec remove c'' | | - install_c_kernel で --sys-prefix を付けないと,C用のカーネルがユーザ環境に入る.削除する場合は ''jupyter kernelspec remove c'' |
| + | #br |
| + | |
| + | **** 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 |
| | | |
| | | |
| *** 実行 [#rf0092bb] | | *** 実行 [#rf0092bb] |
- | (base) # jupyter notebook --allow-root | + | (base) # jupyter notebook --allow-root --ip=0.0.0.0 |
| - port: 8888 | | - port: 8888 |
| #br | | #br |
| | | |
| ** 拡張機能 [#gc7026e3] | | ** 拡張機能 [#gc7026e3] |
| + | - https://www.hinomaruc.com/jupyter-notebook-five-extensions-recommendation/ |
| + | #br |
| + | |
| *** nbextensions [#y4176ad9] | | *** nbextensions [#y4176ad9] |
| - jupyter nbextension list | | - jupyter nbextension list |
| (jupyterhub) # pip install jupyter-contrib-nbextensions | | (jupyterhub) # pip install jupyter-contrib-nbextensions |
| (jupyterhub) # jupyter contrib nbextension install --user | | (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 | | #br |
| | | |
| - jupyter labextension list | | - jupyter labextension list |
| #br | | #br |
| + | ** ショートカットキー [#c2704792] |
| + | - https://qiita.com/zawawahoge/items/baa2a5318df079c5f7e5 |
| + | #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/uclixnjupyternbaccessibility/jupyter_contrib_nbextensions/tree/master/src/jupyter_contrib_nbextensions/nbextensions/accessibility_toolbar]] 2019年で開発停止 |
| + | - [[NVDA Browser Nav add-on>https://addons.nvda-project.org/addons/browsernav.en.html#:~:text=BrowserNav%20addon%20for%20NVDA,comments%20or%20malformed%20HTML%20tables.%E2%80%9D]] (これはNVDA用のアドオン) |
| + | |
| | | |
- | ** Trouble Shooting [#rf83821d] | |
| #br | | #br |