Skip to content

Translate content of jupyter notebook using gettext tools

License

Notifications You must be signed in to change notification settings

devrt/nbtranslate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nbtranslate

Translate content of jupyter notebook using gettext tools.

Install

$ 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

Usage

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

License

New-BSD

by Yosuke Matsusaka, MID Academic Promotions Inc.

About

Translate content of jupyter notebook using gettext tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages