@@ -43,50 +43,53 @@ def _(hm, workspace):
4343 )
4444 recent = hm .recent_results (client , limit = 20 )
4545 history = hm .run_history (client , limit = 10 )
46- return browser , client , editor , history , recent , status , workspace
46+ return browser , client , editor , history , recent , status
4747
4848
4949@app .cell
50- def _ (browser , editor , mo , recent , status , workspace ):
51- return mo .vstack (
52- [
53- workspace .ui ,
54- status ,
55- browser .ui ,
56- editor .ui ,
57- recent .ui ,
58- ],
59- gap = 2 ,
60- )
50+ def _ (mo ):
51+ mo .md (r"""
52+ ## HotData explorer
53+ Use the tabs below to switch between available workspaces, connection status, dataset browsing, and SQL queries.
54+ """ )
55+ return
6156
6257
6358@app .cell
64- def _ (history ):
65- return history
59+ def _ (browser , editor , history , mo , recent , status , workspace ):
60+ mo .ui .tabs ({
61+ "Workspaces" : workspace ,
62+ "Connections" : status ,
63+ "Datasets" : browser ,
64+ "SQL query" : editor ,
65+ "Recent results" : recent ,
66+ "Run history" : history ,
67+ })
68+ return
6669
6770
6871@app .cell
69- def _ (editor , hm ):
72+ def _ (editor ):
7073 # Explicitly touch nested widget values so Marimo reruns this cell on clicks.
7174 _run = editor .run .value
7275 _rerun = editor .rerun .value
7376 _clear = editor .clear .value
74- return hm . query_result ( editor . result ), _clear , _rerun , _run
77+ return
7578
7679
7780@app .cell
78- def _ (hm , recent ):
81+ def _ (recent ):
7982 _selected = recent .pick .value
80- return hm . query_result ( recent . result , label = "Recent result" ), _selected
83+ return
8184
8285
8386@app .cell
8487def _ (client , mo ):
8588 _df = mo .sql (
86- """
89+ f """
8790 SELECT 1 AS example_value
8891 """ ,
89- engine = client ,
92+ engine = client
9093 )
9194 return
9295
0 commit comments