Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hotdata-marimo

[Marimo](https://marimo.io/) widgets for [Hotdata](https://hotdata.dev) — run SQL, browse your schema, and work with managed databases in reactive notebooks.
[Marimo](https://marimo.io/) widgets for [Hotdata](https://hotdata.dev) — run SQL, browse your schema, and work with instant databases in reactive notebooks.

## Install

Expand Down Expand Up @@ -73,9 +73,9 @@ return browser.ui

Use `browser.selected_table` in downstream cells to reference the chosen table.

## Managed databases
## Instant databases

View existing managed databases and load new parquet files from a single tabbed panel:
View existing instant databases and load new parquet files from a single tabbed panel:

```python
writer = hm.managed_database_writer(client)
Expand All @@ -95,7 +95,7 @@ return hm.databases_panel(client)
| SQL editor | `hm.sql_editor(client)` | `.ui` to show the editor, `.result` to read rows |
| Query result | `hm.query_result(result)` | Renders a `QueryResult` as a table |
| Table browser | `hm.table_browser(client)` | Browse connections, tables, and column metadata |
| Managed databases | `hm.databases_panel(client)` | Read-only list of managed databases |
| Instant databases | `hm.databases_panel(client)` | Read-only list of instant databases |
| Database writer | `hm.managed_database_writer(client)` | Create databases and load parquet files |
| Workspace picker | `hm.workspace_selector_from_env()` | Dropdown to switch workspaces |
| Connection picker | `hm.connection_picker(client)` | Dropdown of connections in the workspace |
Expand All @@ -112,7 +112,7 @@ All widgets are also available as `mo.ui.hotdata_*` aliases (e.g. `mo.ui.hotdata
uv run marimo edit examples/demo.py --no-token
```

The demo combines workspace selection, schema browsing, managed databases, query history, and a native SQL cell in a single tabbed interface.
The demo combines workspace selection, schema browsing, instant databases, query history, and a native SQL cell in a single tabbed interface.

## Development

Expand Down
2 changes: 1 addition & 1 deletion examples/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _(hm, workspace):
def _(mo):
mo.md(r"""
## HotData explorer
Use the tabs below to switch between workspaces, connections, managed databases,
Use the tabs below to switch between workspaces, connections, instant databases,
recent results, and run history.

On a shared or networked host, run Marimo **without** `--no-token` and open the printed URL
Expand Down
12 changes: 6 additions & 6 deletions hotdata_marimo/databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def _upload_parquet_bytes(client: HotdataClient, contents: bytes) -> str:


def databases_panel(client: HotdataClient):
"""Table of managed databases in the workspace."""
"""Table of instant databases in the workspace."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: the module docstring on line 1 still reads """Marimo UI for managed Hotdata databases (create + parquet table loads).""" — it's prose, not an identifier, so it looks like it was missed in this sweep. Same for examples/demo.py:75, where the tab is labeled "Databases" (fine as-is, just flagging in case "Instant databases" is the intended label). (not blocking)

dbs = client.list_managed_databases()
if not dbs:
return mo.vstack(
[
mo.md("### Managed databases"),
mo.md("_No managed databases yet._"),
mo.md("### Instant databases"),
mo.md("_No instant databases yet._"),
mo.md(
"Create one below, or with the CLI: "
"`hotdata databases create --name <name> --table <table>`."
Expand All @@ -55,10 +55,10 @@ def databases_panel(client: HotdataClient):
]
return mo.vstack(
[
mo.md("### Managed databases"),
mo.md("### Instant databases"),
mo.ui.table(
rows,
label="Managed databases",
label="Instant databases",
pagination=True,
page_size=min(10, len(rows)),
selection=None,
Expand All @@ -71,7 +71,7 @@ def databases_panel(client: HotdataClient):


class ManagedDatabaseWriter:
"""Create managed databases and load parquet files into declared tables.
"""Create instant databases and load parquet files into declared tables.

Instantiate in one cell and use ``.tab_ui`` in another (see package README).
"""
Expand Down
Loading