Utilities to integrate Chainer with IPython.
Currently it consists two trainer extensions:
pip install chaineripy
You need to enable the widgets extension.
Those extensions provide the same API as Chainer's builtin counterparts, so all you need to do is replace
from chainer.training.extensions import PrintReport, ProgressBar
from ipychainer.extensions import PrintReport, ProgressBar
when you run Chainer on a IPython notebook.
The example notebook demonstrates the usage.
ProgressBar classes also export the following functions and properties.
PringReport.update(self, log) @property PringReport.widget(self) ProgressBar.update(self, iteration, epoch_detail) @property ProgressBar.widget(self)
For detailed usages, please see the source codes.
Using these functionalities, you can show the widgets provided
even if you don't use
Contributions are highly welcomed, including but not limited to: new widgets or features, bug fixes, documents improvements, and aesthetic improvements.
Adding codes that work on plain terminal or other IPython consoles are welcomed, but I won't support dynamic detection of the type of console you are working on. If you can't write console neutral code, please create modules supporting the same API for different consoles, and let user choose the appropriate module.