Skip to content

Commit 553ba03

Browse files
authored
Minor correction in fileformat.py (#5149)
marimo generates `value=say_hello()`, not `value="Hello, World!"` for "cell three" in the example. ## 📝 Summary Hi, trying out marimo for the first time today- what a gorgeous experience, props to the whole team behind this. I was following the tutorial and noticed a minor mistake in the [fileformat tutorial](https://github.com/marimo-team/marimo/blob/main/marimo/_tutorials/fileformat.py) - line 97 in the markdown cell about the file generated by marimo suggests it would contain ```python text = mo.ui.text(value="Hello, World!") ``` ## 🔍 Description of Changes However, this line should be ```python text = mo.ui.text(value=say_hello()) ``` I've updated the `fileformat.py` tutorial accordingly. This does not effect the functionality of the tutorial, only the accuracy. Cheers, Matt ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [ ] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. - [x] I have read the CLA Document and I hereby sign the CLA. ## 📜 Reviewers @akshayka OR @mscolnick
1 parent 2422d9b commit 553ba03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marimo/_tutorials/fileformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def say_hello(name="World"):
9494
9595
@app.cell
9696
def _(mo):
97-
text = mo.ui.text(value="Hello, World!")
97+
text = mo.ui.text(value=say_hello())
9898
text
9999
return (text,)
100100

0 commit comments

Comments
 (0)