Skip to content

fix(deps): add lxml-html-clean to napari extra (+ remove old logos) - #36

Merged
lguerard merged 1 commit into
mainfrom
fix/napari-lxml
Jun 25, 2026
Merged

fix(deps): add lxml-html-clean to napari extra (+ remove old logos)#36
lguerard merged 1 commit into
mainfrom
fix/napari-lxml

Conversation

@lguerard

Copy link
Copy Markdown
Contributor

napari fix

view_in_napari() failed at napari.Viewer() with:

ImportError: lxml.html.clean module is now a separate project lxml_html_clean.

napari's notebook_display imports lxml.html.clean, which split out of lxml in 5.2; napari only catches ModuleNotFoundError, so the new ImportError leaks. Add lxml-html-clean to the napari extra so it's pulled in.

Immediate workaround for an existing env: pixi add --pypi lxml-html-clean.

Also

Removes the placeholder logo SVGs (docs/assets/) — a new logo is in progress.

🤖 Generated with Claude Code

napari's notebook_display imports lxml.html.clean, which moved to a
separate lxml-html-clean package in lxml>=5.2; without it napari.Viewer()
raises ImportError. Pull it into the napari extra so view_in_napari works
out of the box.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lguerard
lguerard merged commit 223de5a into main Jun 25, 2026
2 checks passed
@lguerard
lguerard deleted the fix/napari-lxml branch June 25, 2026 14:12
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.

1 participant