jupyter labの設定
jupyter labの設定にあたり
jupyterlabは多くの設定を上のメニューバーより行うことができる。 「Setting」→「Advanced Settings Editor」でアクセスできる。
terminalの設定
設定概要
まとめると以下の設定になる。
{ "fontFamily": "Ubuntu Mono derivative Powerline", "theme": "dark" }
フォントを設定する
fc-list
で利用可能なfontの一覧を取得可能。 私は以下のものを使用しているので、それに設定。
テーマを設定する
全体のテーマではなく、terminal独自に設定を行う。 Draculaが良いが、インストールがめんどくさいので、darkでお茶を濁す。
vimの拡張機能を追加
jupyter labextension install jupyterlab_vim
で追加する。Node.jsが必要。 正直、使い勝手はそんなに良くない。 現在の選択状況により同じショートカットキーでもjupyter labのものかvimのショートカットがに分かれるので、使うのに頭を使う必要がある。
Colaboratory plugin
pip install jupyter_http_over_ws
Colaboratoryをlocalマシンで動かすために必要。 この機能を使用するには起動時にも以下のオプションが必要。 セキュリティ上、必要な時だけこれをつけて起動するべきだと思う。
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com'
latex plugin
node.js が必要
pip install jupyterlab_latex jupyter serverextension enable --sys-prefix jupyterlab_latex jupyter labextension install @jupyterlab/latex
widget plugin
pip install ipywidgets