Skip to content

Fix display of DataOp in google colab - #1590

Merged
GaelVaroquaux merged 5 commits into
skrub-data:mainfrom
jeromedockes:fix-google-colab-dataop-display
Sep 9, 2025
Merged

GaelVaroquaux merged 5 commits into
skrub-data:mainfrom
jeromedockes:fix-google-colab-dataop-display

Conversation

@jeromedockes

@jeromedockes jeromedockes commented Sep 6, 2025 •

Copy link
Copy Markdown
Member

fixes #1589

Graphviz generates SVG <a> elements to display tooltips, and does not set the target attribute. This results in an exception being raised by a script in google colab (I guess this is a security measure). A quick fix is to manually add the attribute in the SVG output.

As a side note, as xlink:title is deprecated we could edit the SVG to rely on an <title> element instead but probably not worth the effort.

@jeromedockes jeromedockes changed the title add target attribute to <a> elems in google colab Fix display of DataOp in google colab Sep 6, 2025

@rcap107 rcap107 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks a lot @jeromedockes

@GaelVaroquaux GaelVaroquaux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!!

@GaelVaroquaux
GaelVaroquaux merged commit f926efb into skrub-data:main Sep 9, 2025
26 checks passed
rcap107 pushed a commit to rcap107/skrub that referenced this pull request Sep 25, 2025
rcap107 pushed a commit that referenced this pull request Sep 25, 2025
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.

skrub var repr in google colab not appearing as expected

3 participants