Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: sidebar

Myles Scolnickfb32882738b1
diff --git a/marimo/_plugins/stateless/flex.py b/marimo/_plugins/stateless/flex.py
index c9a74d384c..a34c74b522 100644
--- a/marimo/_plugins/stateless/flex.py
+++ b/marimo/_plugins/stateless/flex.py
@@ -102,7 +102,12 @@ def vstack(
- `items`: A list of items.
- `align`: Align items horizontally: start, end, center, or stretch.
+ - `justify`: Justify items vertically: start, center, end,
- `gap`: Gap between items as a float in rem. 1rem is 16px by default.
+ - `heights`: "equal" to give items equal height;
+ or a list of relative heights with same length as `items`,
+ eg, [1, 2] means the second item is twice as tall
+ as the first; or `None` for a sensible default
**Returns.**
diff --git a/marimo/_plugins/stateless/sidebar.py b/marimo/_plugins/stateless/sidebar.py
index 44f15e4cd6..9c1996370b 100644
--- a/marimo/_plugins/stateless/sidebar.py
+++ b/marimo/_plugins/stateless/sidebar.py
@@ -49,6 +49,7 @@ class sidebar(Html):
**Args.**
- `item`: the content to display in the sidebar
+ - `footer`: the content to display at the bottom of the sidebar
**Returns.**
diff --git a/marimo/_smoke_tests/sidebar.py b/marimo/_smoke_tests/sidebar.py
index 7f5ae21035..8eaddf577d 100644
--- a/marimo/_smoke_tests/sidebar.py
+++ b/marimo/_smoke_tests/sidebar.py
@@ -1,7 +1,8 @@
# Copyright 2024 Marimo. All rights reserved.
+
import marimo
-__generated_with = "0.5.1"
+__generated_with = "0.5.2"
app = marimo.App()
@@ -22,6 +23,8 @@ def __(mo):
},
orientation="vertical",
),
+ ],
+ footer=[
mo.md(
"""
@@ -30,8 +33,8 @@ def __(mo):
- [Twitter](https://twitter.com/marimo_io)
- [GitHub](https://github.com/marimo-team/marimo)
"""
- ),
- ]
+ )
+ ],
)
return