python:jupyter_notebook

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
python:jupyter_notebook [2019/08/19 07:20] ともやんpython:jupyter_notebook [2021/06/20 12:48] (現在) – [参考文献] ともやん
行 1: 行 1:
-<html> +====== Jupyter Notebook - プログラムとその実行結果を再実行可能なドキュメント形式で表現 ====== 
-  <style> +<WRAP #logo> 
-    #result pre { +{{python:jupyter-logo.svg?200|Jupyter Logo}} 
-      height: 200px; +</WRAP>
-      overflow: scroll; +
-      overflow-x: hidden; +
-    } +
-  </style> +
-</html> +
-====== Jupyter Notebook ====== +
-{{:python:jupyter-logo.svg?100|Jupyter Logo}}\\+
 本家: [[https://jupyter.org/|Project Jupyter | Home]]\\ 本家: [[https://jupyter.org/|Project Jupyter | Home]]\\
 ソースコード: [[https://github.com/jupyter/notebook|GitHub - jupyter/notebook: Jupyter Interactive Notebook]]\\ ソースコード: [[https://github.com/jupyter/notebook|GitHub - jupyter/notebook: Jupyter Interactive Notebook]]\\
 +
 +<wrap em>本家では [[python:jupyterlab|JupyterLab]] への移行を推奨している。</wrap>\\
  
 ===== インストール ===== ===== インストール =====
行 24: 行 19:
 > pip install jupyter ipykernel > pip install jupyter ipykernel
 </code> </code>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% #result_long>
 <code> <code>
 Collecting jupyter Collecting jupyter
行 191: 行 186:
  
 **%HOMEPATH%\.jupyter\jupyter_notebook_config.py** を生成する。\\ **%HOMEPATH%\.jupyter\jupyter_notebook_config.py** を生成する。\\
 +<WRAP prewrap 100%>
 <code> <code>
 (jupyter) > jupyter notebook --generate-config (jupyter) > jupyter notebook --generate-config
 Writing default config to: C:\Users\tomoyan\.jupyter\jupyter_notebook_config.py Writing default config to: C:\Users\tomoyan\.jupyter\jupyter_notebook_config.py
 </code> </code>
 +</WRAP>
  
 **%HOMEPATH%\.jupyter\jupyter_notebook_config.py** を編集する。\\ **%HOMEPATH%\.jupyter\jupyter_notebook_config.py** を編集する。\\
 +<WRAP prewrap 100%>
 <code python> <code python>
 # Configuration file for jupyter-notebook. # Configuration file for jupyter-notebook.
行 205: 行 203:
 c.EnvironmentKernelSpecManager.display_name_template = "{}" c.EnvironmentKernelSpecManager.display_name_template = "{}"
 </code> </code>
 +</WRAP>
  
 Jupyter Notebook を実行する。\\ Jupyter Notebook を実行する。\\
行 230: 行 229:
  
 Python の venv 仮想環境が選択出来るようになる。\\ Python の venv 仮想環境が選択出来るようになる。\\
-{{:python:jupyter_notebook_python_venv.png?800|Jupyter Notebook Python venv}}\\+{{python:jupyter_notebook_python_venv.png?800|Jupyter Notebook Python venv}}\\
  
 ==== Jupyter Notebook 拡張機能 ==== ==== Jupyter Notebook 拡張機能 ====
行 237: 行 236:
 (jupyter) > pip install jupyter-contrib-nbextensions jupyter-nbextensions-configurator (jupyter) > pip install jupyter-contrib-nbextensions jupyter-nbextensions-configurator
 </code> </code>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% #result_long>
 <code> <code>
 Collecting jupyter-contrib-nbextensions Collecting jupyter-contrib-nbextensions
行 308: 行 307:
 > jupyter contrib nbextension install --user > jupyter contrib nbextension install --user
 </code> </code>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% #result_long>
 <code> <code>
 [I 10:25:56 InstallContribNbextensionsApp] jupyter contrib nbextension install --user [I 10:25:56 InstallContribNbextensionsApp] jupyter contrib nbextension install --user
行 1048: 行 1047:
  
 **Nbextensions** が追加されるのでクリックする。\\ **Nbextensions** が追加されるのでクリックする。\\
-{{:python:jupyter_notebook_nbextensions_001.png?800|Jupyter Nbextensions 001}}\\+{{python:jupyter_notebook_nbextensions_001.png?800|Jupyter Nbextensions 001}}\\
  
 **[v] disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development)** のチェックを外す。\\  **[v] disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development)** のチェックを外す。\\ 
-{{:python:jupyter_notebook_nbextensions_002.png?800|Jupyter Nbextensions 002}}\\+{{python:jupyter_notebook_nbextensions_002.png?800|Jupyter Nbextensions 002}}\\
  
 === Hinterland (入力補完) を有効にする === === Hinterland (入力補完) を有効にする ===
 **[v] Hinterland** にチェックを入れる。\\ **[v] Hinterland** にチェックを入れる。\\
-{{:python:jupyter_notebook_nbextensions_003.png?800|Jupyter Nbextensions Hinterland}}\\+{{python:jupyter_notebook_nbextensions_003.png?800|Jupyter Nbextensions Hinterland}}\\
  
 Notebook を起動すると入力補完が有効になっている。\\ Notebook を起動すると入力補完が有効になっている。\\
-{{:python:jupyter_notebook_autocomplete.png?800|Jupyter Notebook Autocomplete}}\\+{{python:jupyter_notebook_autocomplete.png?800|Jupyter Notebook Autocomplete}}\\ 
 + 
 +===== トラブルシューティング ===== 
 + 
 +==== Bad config encountered during initialization エラーが発生する ==== 
 +<code> 
 +$ jupyter notebook 
 +</code> 
 +<WRAP prewrap 100% #result> 
 +<code powershell> 
 +[C 12:43:20.989 NotebookApp] Bad config encountered during initialization: The 'kernel_spec_manager_class' trait of <notebook.notebookapp.NotebookApp object at 0x000001F187312C40> instance must be a type, but 'environment_kernels.EnvironmentKernelSpecManager' could not be imported 
 +</code> 
 +</WRAP>
  
 ===== 参考文献 ===== ===== 参考文献 =====
-[[https://github.com/ipython/ipykernel|GitHub - ipython/ipykernel: IPython Kernel for Jupyter]]\\ +[[git>ipython/ipykernel|GitHub - ipython/ipykernel: IPython Kernel for Jupyter]]\\ 
-[[https://qiita.com/takuyanin/items/8bf396e7b6b051670147|【Jupyter Notebook】効果的な使い方を知ろう[Python/機械学習] - Qiita]]\\ +[[qita>takuyanin/items/8bf396e7b6b051670147|【Jupyter Notebook】効果的な使い方を知ろう[Python/機械学習] - Qiita]]\\ 
-[[https://qiita.com/simonritchie/items/d7dccb798f0b9c8b1ec5|Jupyter 知っておくと少し便利なTIPS集 - Qiita]]\\+[[qita>simonritchie/items/d7dccb798f0b9c8b1ec5|Jupyter 知っておくと少し便利なTIPS集 - Qiita]]\\
 [[http://pynote.hatenablog.com/entry/jupyter-notebook-nbextensions|Jupyter Notebook - おすすめの nbextensions まとめ - Pynote]]\\ [[http://pynote.hatenablog.com/entry/jupyter-notebook-nbextensions|Jupyter Notebook - おすすめの nbextensions まとめ - Pynote]]\\
-[[https://qiita.com/ishida330/items/53f1b0df2247fab5c6dd|Jupyter/Pythonでデータ分析する人にお勧めしたい!便利なライブラリー「PixieDust」をザクッと紹介します - Qiita]]\\+[[qita>ishida330/items/53f1b0df2247fab5c6dd|Jupyter/Pythonでデータ分析する人にお勧めしたい!便利なライブラリー「PixieDust」をザクッと紹介します - Qiita]]\\
 [[https://ohke.hateblo.jp/entry/2019/05/25/180000|Jupyter NotebookをAPI経由で操作する - け日記]]\\ [[https://ohke.hateblo.jp/entry/2019/05/25/180000|Jupyter NotebookをAPI経由で操作する - け日記]]\\
 +[[https://blog.jupyter.org/how-we-made-jupyter-notebooks-collaborative-with-yjs-b8dff6a9d8af|How we made Jupyter Notebooks collaborative with Yjs | by Kevin Jahns | Jun, 2021 | Jupyter Blog]]\\
 +[[https://ipython.readthedocs.io/en/latest/install/kernel_install.html|Installing the IPython kernel — IPython 8.0.0.dev documentation]]\\
  
  • python/jupyter_notebook.1566166825.txt.gz
  • 最終更新: 2019/08/19 07:20
  • by ともやん