ipython for calculation