-
Notifications
You must be signed in to change notification settings - Fork 329
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
improvement: patch IPython.display.display
to call mo.output.append
#919
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
html: IPython.display.HTML, | ||
) -> tuple[KnownMimeType, str]: | ||
if html.url is not None: | ||
# TODO(akshayka): resize iframe not working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wont work for CORS - not sure if thats what you were testing, but that would be once reason.
if you do same origin, it should work. you could make marimo a proxy for URLs (but i think that could be done later)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i see. will put off for later. embedding urls is likely not a common use case
@@ -194,6 +195,7 @@ exclude = [ | |||
'marimo/_tutorials/', | |||
'marimo/_smoke_tests/', | |||
] | |||
warn_unused_ignores=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhhhh! this was the worst without this since you couldn't do a blanket ignore b/c in another test matrix it would fail. and other matrices would have different ignores..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha yea it was getting really cumbersome
This improves compatibility with code written for IPython.
Additionally, this adds a formatter for
IPython.display.HTML
-- we already somedisplay.HTML
objects by special casing_repr_html_
, but this adds support for URLs. However, iframe'd URLs are not resizing; left a TODO.Smoke test: