finish ipython