for ipython notebooks