Interactive console to execute SQL against your ResinKit-managed Flink SQL Gateway with live, streaming results.
Prerequisites
- ResinKit API reachable (default
http://localhost:8602) - JupyterLab/Notebook with Panel installed
- Optional: personal access token or session cookie
Launch the UI
- Module helper
- Explicit instance
Features
- Automatic session: creates an initial Flink session on load and maintains it via periodic heartbeats
- SQL editor: code editor with history dropdown and adjustable height
- Max time: limit execution duration; set 0 for unlimited
- Streaming results: each query opens a new tab with a live-updating table and query info
- Cancel/Close: cancel running query; open/close sessions on demand
Workflow
Tips
- History menu reflects statements executed in the current session
- Use the Max Time control to bound streaming jobs
- Each streaming tab keeps up to 1000 visible rows by default
Programmatic notes
The UI is built onFlinkSQLManager and FlinkSQLResults:
FlinkSQLManager.create_session(session_name)opens a sessionFlinkSQLManager.execute_sql_streaming(session_id, sql)yields server-sent JSON framesFlinkSQLResults.add_query_result(query_id, result)stores frames for later inspection
create_dataframe(data, columns).
Troubleshooting
- If the kernel already has an event loop, Panel handles scheduling. Ensure you called
pn.extension(...) - Session timeouts are handled via heartbeats; if expired, create a new session from the header controls
- Auth or connectivity errors surface in the status bar
Related
- Variables UI: Variables
- Data Sources UI: Sources
- Mintlify llms.txt: Optimize for AI indexing

