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


Just try to customize indent-tabs-mode and set it up to nil It's possible by: C-h v indent-tabs-mode


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


13 October 2016


python emacs Elpy shell