Skip to content

Commit a060ade

Browse files
committed
chore: polish demo and SQL editor UI
Remove debug click counters from the SQL editor, align README examples with the current demo, and document Marimo auth tokens for shared hosts.
1 parent a48fe3c commit a060ade

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,16 @@ See `examples/demo.py` for a full runnable notebook flow.
8181

8282
## Examples
8383

84-
- `examples/demo.py`end-to-end browser + editor + result rendering flow.
84+
- `examples/demo.py`tabbed explorer with workspace selection, connection health, recent results (selectable table), run history, and a native `mo.sql` cell.
8585

86-
Run:
86+
Run locally (single-user machine):
8787

8888
```bash
8989
uv run marimo edit examples/demo.py --no-token
9090
```
9191

92+
On a **shared or networked host**, omit `--no-token` and use the access token printed in the terminal URL. Without it, anyone who can reach the Marimo port can run queries against your Hotdata workspace.
93+
9294
## Layout
9395

9496
This repo is intentionally thin: **API client, env helpers, and result models** live in **hotdata-runtime**; **hotdata-marimo** only adds Marimo widgets (`sql_editor`, `table_browser`, `display` for tables/status/history, `workspace_selector`). Import `HotdataClient` / `QueryResult` / `from_env` from **`hotdata_marimo`** or directly from **`hotdata_runtime`**.

examples/demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def _(mo):
4646
mo.md(r"""
4747
## HotData explorer
4848
Use the tabs below to switch between workspaces, connection status, recent results, and run history.
49+
50+
On a shared or networked host, run Marimo **without** `--no-token` and open the printed URL
51+
with its access token so only you can use this notebook.
4952
""")
5053
return
5154

@@ -70,7 +73,7 @@ def _(history, mo, recent_tab, status, workspace):
7073
@app.cell
7174
def _(client, mo):
7275
_df = mo.sql(
73-
f"""
76+
"""
7477
SELECT 1 AS example_value
7578
""",
7679
engine=client

hotdata_marimo/sql_editor.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ def ui(self):
5656
return mo.vstack(
5757
[
5858
self.sql,
59-
mo.md(
60-
f"_Run clicks: {self.run.value} · "
61-
f"Rerun clicks: {self.rerun.value} · "
62-
f"Clear clicks: {self.clear.value}_"
63-
),
6459
mo.hstack(
6560
[
6661
self.run,

0 commit comments

Comments
 (0)