Skip to content

Conversation

1480c1
Copy link

@1480c1 1480c1 commented Mar 4, 2025

Description

With IPython 9.0.1, they removed the IPython.core.display shim that displacy.render() relied on. This was apparently deprecated in IPython 8.0.0.

This fixes it by trying the newer import path if possible, falling back to the older one.

Types of change

Bug fix

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

I am unable to install the packages in requirements.txt due to thinc<8.4.0,>=8.3.4 being unsatisfied since there's only nearby version 8 package is 8.3.2 and then it skips to 9.0.0.dev0. However, editing this line locally fixed the import issue.

@otakutyrant
Copy link

otakutyrant commented May 16, 2025

You may close this PR since the same fix #13787 is progressing.

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