tuning for ipython notebook.