Sage と jupyter notebook の関係はどうなるのだろうか?

目次へ

Sage の中に ipython が組み込まれているので、ipython notebook をインストールして使うことができた。

 Sage 6.7   ipython-3.1 
 Sage 6.9   ipython-4.0 

一方、IPython のバージョンが上がり、ipython-4.0 になったところで jupyter notebook と sage kernel との分離はどうなるのであろうか?

sage + jupyter notebook で検索すると次の質問が見つかった。

IPython/Jupyter kernels のリスト

SageMath

  • sage shell で ipython notebook をインストールする方法で問題ないのであろうか?

まとめ

  • 現在のSage の状況は切り替えの過度期にあるように思われる。開発状況を見ながらバージョンアップを待つことにしようと思う。
  • 現在は sage -ipython notebook や sage -n ipython で起動できる。
  • 近いうちに Sage kernel をインストールした後に jupyter notebook を起動し sage kernel を選択して使う形になるのだろうか?

その後

次を入力して興味のある結果が表示された。ノートブックの標準は sagenb であるが ipython も選択できるようになっている。

$ sage --version
SageMath Version 6.7, Release Date: 2015-05-17

$ sage -n jupyter
CRITICAL:root:unknown notebook: jupyter
Error, notebook must be one of default, ipython, sagenb but got jupyter
  • sage 6.7 には標準で ipython notebook が組み込まれていると理解できる。 Sage 本体に手を加える必要がないのかもしれない。
  • 次のバージョンでは jupyter が使えるようになっているのではないだろうか。

目次へ