-
As shown below, I have two questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@hopezh , you have to assign UI elements to global variables and output the global variable. Your displayed button doesn't have an associated variable so it doesn't work. You also need to end the cell with Try this instead: https://github.com/marimo-team/marimo/blob/main/examples/ui/file.py Tip: You can run this notebook with
at the command line. For many more examples, see: https://github.com/marimo-team/marimo/tree/main/examples For a tutorial on using UI widgets please run: |
Beta Was this translation helpful? Give feedback.
@hopezh , you have to assign UI elements to global variables and output the global variable. Your displayed button doesn't have an associated variable so it doesn't work.
You also need to end the cell with
f
in order to display the button.Try this instead: https://github.com/marimo-team/marimo/blob/main/examples/ui/file.py
Tip: You can run this notebook with
at the command line.
For many more examples, see: https://github.com/marimo-team/marimo/tree/main/examples
For a tutorial on using UI widgets please run:
marimo tutorial ui
at the command-line.