Thank you for your answer but next
Thank you for your answer, but next question, why display(button) from widget on solara component doesn' t appear on my codes:
import solara
import ipywidgets as widgets
github_url = solara.util.github_url(file)
some app state that outlives a single page
app_state = solara.reactive(0)
clicks = 0
def on_click(button):
global clicks
clicks += 1
button.description = f"Clicked {clicks} times"
button = widgets.Button(description="Clicked 0 times")
button.on_click(on_click)
@solara.component
def Page():
with solara.Sidebar():
solara.Button(label="Juristech", attributes={"href": "https://www.google.com/", "target": "_blank"}, text=True, outlined=True)
solara.Markdown("")
solara.Button(label="Surveyour Optimization", attributes={"href": "https://www.google.com/", "target": "_blank"}, text=True, outlined=True)
with solara.Card("Project Juristech"):
solara.Markdown("Grafik Juristech:")
display(button)
@solara.component def Layout(children): return solara.AppLayout(children=children)
@solara.component def Layout(children): return solara.AppLayout(children=children)
MaartenBreddels•225d ago
You need to create a new widget for each browser page, so if you put it in the Page component, it will work
446Members
View on DiscordWant results from more Discord servers?
More PostsBlender with Solarawould be very happy to be a guinnea pigwould be very happy to be a guinnea pig 😄Which version of lab running pip installWhich version of lab? running !pip install will install it in the kernel environment, if the lab serThanks how could I programatically setThanks ! how could I programatically set theme from Python side ?it seems to be functional not sure Iit seems to be functional. not sure I understand the downside of my current approach. but fixing any3 what s the best way to implement `push3. what's the best way to implement `push notification` ? is it something like this ? and is it run