-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
I'd like to capture stdout within my solara app and make it available to the frontend. In voila, I could do this using ipywidgets.Output.capture
and add a traitlet for the mount_id
. However in solara, with something similar, the page displays "Loading widget ...". Should this be turned into a reactive parameter?
import ipywidgets as widgets
import solara
output = widgets.Output()
def do_something():
print('doing something')
@solara.component
@output.capture(clear_output=True)
def Page():
print('this is a test page')
with solara.Column():
do_something()
solara.Markdown("Test page")
solara.display(output)
Page()
Metadata
Metadata
Assignees
Labels
No labels