Treat Python by Elpy dissection with a pure joy
Preamble
In many cases it might be extremely convenient to pass some particular
code snippet (function, class or even entire file content) to Python
shell and Elpy allows you to do this out from the box. But python-mode
configured by default to use mixed TAB and SPACE indentation and if you're
trying send region you're got this error:
TabError: inconsistent use of tabs and spaces in indentation
Solution
Just try to customize indent-tabs-mode
and set it up to nil
It's possible by:
C-h v indent-tabs-mode
Conclusion
After that customization feel free to mark the region which you want to
dissect in the python shell and pass it there by typing C-c C-c
blog comments powered by Disqus