Improper indenting for IPython version 8
shawsa opened this issue · comments
After upgrading IPython (among other things) the plugin was not indenting correctly from time to time.
The issue is in line 230 of the formatpythoncode.py file:
if self.version[0] == "7" and self.version != "7.0":
I believe this line is intended to check if the IPython version is above 7.0, but it evaluates to false for IPython 8.X.
For me (Python 3.11.4, IPython 8.14.0), using
let g:repl_ipython_version = '7.1'
fixed the issue.