When used as a context manager, upon exit, the tag displays itself.
TODO: Currently, the tag just appends its "children" to itself. This is probably too simplistic. We need to decide how this code, Shiny Express's top-level, and @display_body/@render.display go from sys.displayhook to UI, hopefully in a unified way.
Note: CI tests are failing because I intentionally left a type error in 👆 part of the code.
Ideally I'd want to use IPython.core.display but that seems like a heavy dependency to take, if we can get 95% of the way by doing something simpler in htmltools/shiny.
When used as a context manager, upon exit, the tag displays itself.
TODO: Currently, the tag just appends its "children" to itself. This is probably too simplistic. We need to decide how this code, Shiny Express's top-level, and
@display_body
/@render.display
go from sys.displayhook to UI, hopefully in a unified way.Note: CI tests are failing because I intentionally left a type error in 👆 part of the code.