Jupyter Notebook 上で autopep8 のフォーマッタを実行できる nbextension を公開しました

Jupyter autopep8

github.com

これは何

Jupyter Notebook の Cell 内で使えるコードフォーマッタです。コード編集中に Ctrl+L を押すと autopep8 を使ってコードが整形されます。

インストール方法

pip install autopep8
jupyter nbextension install https://github.com/kenkoooo/jupyter-autopep8/archive/master.zip --user
jupyter nbextension enable jupyter-autopep8-master/jupyter-autopep8