This should fix the problem for IPython 8.X at least.
I've created a Version class in pythonx/formatpythoncode.py that parses a version string and has convenient comparison functionality. It makes the logic more readable and functions properly for IPython versions greater than version 7.
While fixing this issue I noticed there was a line of code in repl.vim that truncates the version string. I have IPython version 8.14.0, but it was reading it as version 8.1. I'm not sure why this is done, but I've removed it and I don't think anything broke (for me at least).
This should fix the problem for IPython 8.X at least.
I've created a
Version
class inpythonx/formatpythoncode.py
that parses a version string and has convenient comparison functionality. It makes the logic more readable and functions properly for IPython versions greater than version 7.While fixing this issue I noticed there was a line of code in
repl.vim
that truncates the version string. I have IPython version 8.14.0, but it was reading it as version 8.1. I'm not sure why this is done, but I've removed it and I don't think anything broke (for me at least).