22
33import marimo
44
5- __generated_with = "0.15.5 "
5+ __generated_with = "0.16.2 "
66app = marimo .App ()
77
88
@@ -24,14 +24,14 @@ def _(mo):
2424def _ (mo , slider ):
2525 mo .md (
2626 f"""
27- marimo is a **reactive** Python notebook.
27+ marimo is a **reactive** Python notebook.
2828
29- This means that unlike traditional notebooks, marimo notebooks **run
30- automatically** when you modify them or
31- interact with UI elements, like this slider: { slider } .
29+ This means that unlike traditional notebooks, marimo notebooks **run
30+ automatically** when you modify them or
31+ interact with UI elements, like this slider: { slider } .
3232
33- { "##" + "🍃" * slider .value }
34- """
33+ { "##" + "🍃" * slider .value }
34+ """
3535 )
3636 return
3737
@@ -73,19 +73,19 @@ def _(mo):
7373def _ (mo ):
7474 mo .md (
7575 """
76- ## 1. Reactive execution
76+ ## 1. Reactive execution
7777
78- A marimo notebook is made up of small blocks of Python code called
79- cells.
78+ A marimo notebook is made up of small blocks of Python code called
79+ cells.
8080
81- marimo reads your cells and models the dependencies among them: whenever
82- a cell that defines a global variable is run, marimo
83- **automatically runs** all cells that reference that variable.
81+ marimo reads your cells and models the dependencies among them: whenever
82+ a cell that defines a global variable is run, marimo
83+ **automatically runs** all cells that reference that variable.
8484
85- Reactivity keeps your program state and outputs in sync with your code,
86- making for a dynamic programming environment that prevents bugs before they
87- happen.
88- """
85+ Reactivity keeps your program state and outputs in sync with your code,
86+ making for a dynamic programming environment that prevents bugs before they
87+ happen.
88+ """
8989 )
9090 return
9191
@@ -145,10 +145,10 @@ def _(mo):
145145def _ (mo ):
146146 mo .md (
147147 """
148- **Global names must be unique.** To enable reactivity, marimo imposes a
149- constraint on how names appear in cells: no two cells may define the same
150- variable.
151- """
148+ **Global names must be unique.** To enable reactivity, marimo imposes a
149+ constraint on how names appear in cells: no two cells may define the same
150+ variable.
151+ """
152152 )
153153 return
154154
@@ -187,16 +187,16 @@ def _(mo):
187187def _ (mo ):
188188 mo .md (
189189 """
190- ## 2. UI elements
190+ ## 2. UI elements
191191
192- Cells can output interactive UI elements. Interacting with a UI
193- element **automatically triggers notebook execution**: when
194- you interact with a UI element, its value is sent back to Python, and
195- every cell that references that element is re-run.
192+ Cells can output interactive UI elements. Interacting with a UI
193+ element **automatically triggers notebook execution**: when
194+ you interact with a UI element, its value is sent back to Python, and
195+ every cell that references that element is re-run.
196196
197- marimo provides a library of UI elements to choose from under
198- `marimo.ui`.
199- """
197+ marimo provides a library of UI elements to choose from under
198+ `marimo.ui`.
199+ """
200200 )
201201 return
202202
@@ -235,21 +235,21 @@ def _(icon, mo, repetitions):
235235def _ (mo ):
236236 mo .md (
237237 """
238- ## 3. marimo is just Python
238+ ## 3. marimo is just Python
239239
240- marimo cells parse Python (and only Python), and marimo notebooks are
241- stored as pure Python files — outputs are _not_ included. There's no
242- magical syntax.
240+ marimo cells parse Python (and only Python), and marimo notebooks are
241+ stored as pure Python files — outputs are _not_ included. There's no
242+ magical syntax.
243243
244- The Python files generated by marimo are:
244+ The Python files generated by marimo are:
245245
246- - easily versioned with git, yielding minimal diffs
247- - legible for both humans and machines
248- - formattable using your tool of choice,
249- - usable as Python scripts, with UI elements taking their default
250- values, and
251- - importable by other modules (more on that in the future).
252- """
246+ - easily versioned with git, yielding minimal diffs
247+ - legible for both humans and machines
248+ - formattable using your tool of choice,
249+ - usable as Python scripts, with UI elements taking their default
250+ values, and
251+ - importable by other modules (more on that in the future).
252+ """
253253 )
254254 return
255255
@@ -258,15 +258,15 @@ def _(mo):
258258def _ (mo ):
259259 mo .md (
260260 """
261- ## 4. Running notebooks as apps
261+ ## 4. Running notebooks as apps
262262
263- marimo notebooks can double as apps. Click the app window icon in the
264- bottom-right to see this notebook in "app view."
263+ marimo notebooks can double as apps. Click the app window icon in the
264+ bottom-right to see this notebook in "app view."
265265
266- Serve a notebook as an app with `marimo run` at the command-line.
267- Of course, you can use marimo just to level-up your
268- notebooking, without ever making apps.
269- """
266+ Serve a notebook as an app with `marimo run` at the command-line.
267+ Of course, you can use marimo just to level-up your
268+ notebooking, without ever making apps.
269+ """
270270 )
271271 return
272272
@@ -275,56 +275,56 @@ def _(mo):
275275def _ (mo ):
276276 mo .md (
277277 """
278- ## 5. The `marimo` command-line tool
278+ ## 5. The `marimo` command-line tool
279279
280- **Creating and editing notebooks.** Use
280+ **Creating and editing notebooks.** Use
281281
282- ```
283- marimo edit
284- ```
282+ ```
283+ marimo edit
284+ ```
285285
286- in a terminal to start the marimo notebook server. From here
287- you can create a new notebook or edit existing ones.
286+ in a terminal to start the marimo notebook server. From here
287+ you can create a new notebook or edit existing ones.
288288
289289
290- **Running as apps.** Use
290+ **Running as apps.** Use
291291
292- ```
293- marimo run notebook.py
294- ```
292+ ```
293+ marimo run notebook.py
294+ ```
295295
296- to start a webserver that serves your notebook as an app in read-only mode,
297- with code cells hidden.
296+ to start a webserver that serves your notebook as an app in read-only mode,
297+ with code cells hidden.
298298
299- **Convert a Jupyter notebook.** Convert a Jupyter notebook to a marimo
300- notebook using `marimo convert`:
299+ **Convert a Jupyter notebook.** Convert a Jupyter notebook to a marimo
300+ notebook using `marimo convert`:
301301
302- ```
303- marimo convert your_notebook.ipynb > your_app.py
304- ```
302+ ```
303+ marimo convert your_notebook.ipynb > your_app.py
304+ ```
305305
306- **Tutorials.** marimo comes packaged with tutorials:
306+ **Tutorials.** marimo comes packaged with tutorials:
307307
308- - `dataflow`: more on marimo's automatic execution
309- - `ui`: how to use UI elements
310- - `markdown`: how to write markdown, with interpolated values and
311- LaTeX
312- - `plots`: how plotting works in marimo
313- - `sql`: how to use SQL
314- - `layout`: layout elements in marimo
315- - `fileformat`: how marimo's file format works
316- - `markdown-format`: for using `.md` files in marimo
317- - `for-jupyter-users`: if you are coming from Jupyter
308+ - `dataflow`: more on marimo's automatic execution
309+ - `ui`: how to use UI elements
310+ - `markdown`: how to write markdown, with interpolated values and
311+ LaTeX
312+ - `plots`: how plotting works in marimo
313+ - `sql`: how to use SQL
314+ - `layout`: layout elements in marimo
315+ - `fileformat`: how marimo's file format works
316+ - `markdown-format`: for using `.md` files in marimo
317+ - `for-jupyter-users`: if you are coming from Jupyter
318318
319- Start a tutorial with `marimo tutorial`; for example,
319+ Start a tutorial with `marimo tutorial`; for example,
320320
321- ```
322- marimo tutorial dataflow
323- ```
321+ ```
322+ marimo tutorial dataflow
323+ ```
324324
325- In addition to tutorials, we have examples in our
326- [our GitHub repo](https://www.github.com/marimo-team/marimo/tree/main/examples).
327- """
325+ In addition to tutorials, we have examples in our
326+ [our GitHub repo](https://www.github.com/marimo-team/marimo/tree/main/examples).
327+ """
328328 )
329329 return
330330
@@ -333,10 +333,10 @@ def _(mo):
333333def _ (mo ):
334334 mo .md (
335335 """
336- ## 6. The marimo editor
336+ ## 6. The marimo editor
337337
338- Here are some tips to help you get started with the marimo editor.
339- """
338+ Here are some tips to help you get started with the marimo editor.
339+ """
340340 )
341341 return
342342
@@ -357,11 +357,11 @@ def _(mo):
357357def _ (mo ):
358358 mo .md (
359359 """
360- The name "marimo" is a reference to a type of algae that, under
361- the right conditions, clumps together to form a small sphere
362- called a "marimo moss ball". Made of just strands of algae, these
363- beloved assemblages are greater than the sum of their parts.
364- """
360+ The name "marimo" is a reference to a type of algae that, under
361+ the right conditions, clumps together to form a small sphere
362+ called a "marimo moss ball". Made of just strands of algae, these
363+ beloved assemblages are greater than the sum of their parts.
364+ """
365365 )
366366 return
367367
0 commit comments