interrupt functionality for ipython