差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
python:jupyter_notebook [2019/08/19 07:20] – ともやん | python:jupyter_notebook [2020/09/11 16:57] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | < | ||
- | < | ||
- | #result pre { | ||
- | height: 200px; | ||
- | overflow: scroll; | ||
- | overflow-x: hidden; | ||
- | } | ||
- | </ | ||
- | </ | ||
====== Jupyter Notebook ====== | ====== Jupyter Notebook ====== | ||
- | {{:python: | + | <WRAP #logo> |
+ | {{python: | ||
+ | </ | ||
本家: [[https:// | 本家: [[https:// | ||
ソースコード: | ソースコード: | ||
行 24: | 行 17: | ||
> pip install jupyter ipykernel | > pip install jupyter ipykernel | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% #result_long> |
< | < | ||
Collecting jupyter | Collecting jupyter | ||
行 191: | 行 184: | ||
**%HOMEPATH%\.jupyter\jupyter_notebook_config.py** を生成する。\\ | **%HOMEPATH%\.jupyter\jupyter_notebook_config.py** を生成する。\\ | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
(jupyter) > jupyter notebook --generate-config | (jupyter) > jupyter notebook --generate-config | ||
Writing default config to: C: | Writing default config to: C: | ||
</ | </ | ||
+ | </ | ||
**%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: | 行 201: | ||
c.EnvironmentKernelSpecManager.display_name_template = " | c.EnvironmentKernelSpecManager.display_name_template = " | ||
</ | </ | ||
+ | </ | ||
Jupyter Notebook を実行する。\\ | Jupyter Notebook を実行する。\\ | ||
行 230: | 行 227: | ||
Python の venv 仮想環境が選択出来るようになる。\\ | Python の venv 仮想環境が選択出来るようになる。\\ | ||
- | {{:python: | + | {{python: |
==== Jupyter Notebook 拡張機能 ==== | ==== Jupyter Notebook 拡張機能 ==== | ||
行 237: | 行 234: | ||
(jupyter) > pip install jupyter-contrib-nbextensions jupyter-nbextensions-configurator | (jupyter) > pip install jupyter-contrib-nbextensions jupyter-nbextensions-configurator | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% #result_long> |
< | < | ||
Collecting jupyter-contrib-nbextensions | Collecting jupyter-contrib-nbextensions | ||
行 308: | 行 305: | ||
> jupyter contrib nbextension install --user | > jupyter contrib nbextension install --user | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% #result_long> |
< | < | ||
[I 10:25:56 InstallContribNbextensionsApp] jupyter contrib nbextension install --user | [I 10:25:56 InstallContribNbextensionsApp] jupyter contrib nbextension install --user | ||
行 1048: | 行 1045: | ||
**Nbextensions** が追加されるのでクリックする。\\ | **Nbextensions** が追加されるのでクリックする。\\ | ||
- | {{:python: | + | {{python: |
**[v] disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, | **[v] disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, | ||
- | {{:python: | + | {{python: |
=== Hinterland (入力補完) を有効にする === | === Hinterland (入力補完) を有効にする === | ||
**[v] Hinterland** にチェックを入れる。\\ | **[v] Hinterland** にチェックを入れる。\\ | ||
- | {{:python: | + | {{python: |
Notebook を起動すると入力補完が有効になっている。\\ | Notebook を起動すると入力補完が有効になっている。\\ | ||
- | {{:python: | + | {{python: |
===== 参考文献 ===== | ===== 参考文献 ===== |