I am a relatively new to emacs/spacemacs and my knowledge is quite basic, I have spacemacs set up with the python layer and have the indentation settings as follows:

python-indent-offset is set to 4
indent-tabs-mode is set to nil
tab-width is set to 4

when opening a .py file everything works fine, but when running ipython shell and indent with 4 spaces, the following error pops up: python error

in ipython shell when i indent with tab, python never seems to enter the statement block: python example

  • Might be related to the ipython 6.x problems (see Bug#32042), if you can use ipthon 5.x it might avoid the problem for now. – npostavs Jul 23 '18 at 13:12

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.