Translate content of jupyter notebook using gettext tools.
$ git clone https://github.com/devrt/nbtranslate.git
$ cd nbtranslate
$ sudo pip install -r requirements.txt
$ sudo ./setup.py install
or
$ pip install git+https://github.com/devrt/nbtranslate.git
Extract text to translate from the jupyter notebook:
$ nbtranslate --pot en.pot notebook_en.ipynb
Translate en.pot
using your favorite gettext translation tool
(I recommend poedit or google translator toolkit).
Save the translated result to entoja.po
and then apply the translation:
$ nbtranslate --po entoja.po notebook_en.ipynb > notebook_ja.ipynb
New-BSD
by Yosuke Matsusaka, MID Academic Promotions Inc.