Added an ipython example for the constant library.