Before deleting text from ipython notebook and leaving only the code