Skip to content

Conversation

tornaria
Copy link
Contributor

Since ipython 8.18 already merged ipython/ipython#14241, this workaround is no longer necessary. Moreover, the workaround gives a deprecation warning in python 3.12.

This PR uses the test sys.modules['IPython'].version_info < (8, 18, 0, '') to apply the workaround only in older ipython.

In case the IPython module is not loaded this will raise KeyErrorand correctlyreturn Falsethanks to theexcept BaseException` already there.

See: #1811 (comment)

Cc: @jonathanslenders

@jonathanslenders
Copy link
Member

Thanks!

@tornaria tornaria deleted the ipython-workaround branch December 12, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants