I want to copy already indented Python code / whole functions and classes into IPython. Everytime I try the indentation is screwed up and I get following error message:
For ubuntu users who are on Python 3.
The python-tk is for Python 2.
python-tk
To make %paste work on Python 3, install the python3-tk package:
%paste
python3-tk
sudo apt-get install python3-tk