とらりもんHOME  Index  Search  Changes  Login

jupyter notebook

Ubuntu 18.04

Install

$ sudo apt -y install pandoc texlive-xetex # for jupyter notebook's PDF output
$ pip3 install jupyter

launch

$ jupyter-notebook

Ubuntu 16.04

Install

$ sudo apt-get install python3-pip
$ sudo pip3 install --upgrade jupyter

launch

$ jupyter notebook

etc

Esc m  move to mark-down mode (inserting comments)
Esc dd  delete a cell
ctrl + Enter   launch the commands
Alt + Enter    next "In" line

トラブル: Ubuntu 16.04でjupyter notebookが動かない。サーバーへ接続できない。

  • 原因: aptで入るpython3は(2020/02/10現在), v3.5.2。これは最新のipythonではサポートされていない。
  • 解決: ipythonのバージョンを下げてインストールする:
$ sudo apt purge ipython3 ipython
$ pip3 install ipython==7.9
$ pip3 install jupyter
Last modified:2021/06/16 10:25:27
Keyword(s):
References: