Skip to content

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 http://github.com/devrt/nbtranslate.git
$ cd nbtranslate
$ sudo pip install -r requirements.txt
$ sudo ./setup.py install

or

$ pip install git+http://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

 
 
 

Contributors

Languages