Working on ipython notebooks.
 Preliminary support for automatic restart