You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi maintainers — I ran into an issue where colab exec prints <IPython.core.display.HTML object> instead of the actual content when a notebook cell produces rich HTML output.
Root cause: When a kernel sends display_data with both text/html (the real content) and text/plain (the Python repr), all three display_output paths only look for text/plain and print the useless repr.
Fix in PR #58: Adds a text/html branch before the text/plain fallback, using html.parser.HTMLParser to strip tags for terminal display. The result isn't a full HTML renderer, but it surfaces the actual text content — a clear improvement over the current behavior.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi maintainers — I ran into an issue where colab exec prints <IPython.core.display.HTML object> instead of the actual content when a notebook cell produces rich HTML output.
Root cause: When a kernel sends display_data with both text/html (the real content) and text/plain (the Python repr), all three display_output paths only look for text/plain and print the useless repr.
Fix in PR #58: Adds a text/html branch before the text/plain fallback, using html.parser.HTMLParser to strip tags for terminal display. The result isn't a full HTML renderer, but it surfaces the actual text content — a clear improvement over the current behavior.
PR: #58
I'm aware that you "aren't accepting external contributions at this time.". Adding it just for the benefit of others.
Beta Was this translation helpful? Give feedback.
All reactions