Skip to main content
Image

r/marimo_notebook


New AnyWidget tutorial on marimo YT
New AnyWidget tutorial on marimo YT

Advertisement: We hear the chatter. Here’s our response: There’s only one Ozempic®. Only Novo Nordisk manufactures FDA-approved semaglutide medicines, like Ozempic®. Discover more at Ozempic.com.
We hear the chatter. Here’s our response: There’s only one Ozempic®. Only Novo Nordisk manufactures FDA-approved semaglutide medicines, like Ozempic®. Discover more at Ozempic.com.

See the following links for Boxed Warning: Medication Guide & Safety Information

media poster


Help: Anywidget reactive Changes isn't Reflecting
Help: Anywidget reactive Changes isn't Reflecting

The problem is with wigglystuff's anywidgets. The re-activeness somehow not works.

This is the notebook link from molab

Defining the EdgeDraw widget. i wanna add new nodes through text input and input button pressing

friend = mo.ui.text(placeholder="friend name")
button = mo.ui.run_button(label="Add Friend", kind="success")
delete = mo.ui.run_button(label="Remove Friend", kind="danger")
graph = mo.ui.anywidget(wg.EdgeDraw(["appu", "dett", "eker", "hulo"]))

The appending works but the displaying graph widget not updated

if button.value and friend.value not in graph.names:
    graph.names.append(friend.value)
    print(graph.names)
if delete.value and friend.value in graph.names:
    graph.names.remove(friend.value)
    print(graph.names)

Another course that uses marimo
Another course that uses marimo