Skip to content

displacy: fix import path for ipython 9.0.1 #13762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
@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