innovationOUtside / jupyter_anywidget_pglite

Jupyter anywidget and magic for working with pglite (single use postgres wasm build)
MIT License
0 stars 0 forks source link

Add simple line magic that just expects the widget variable and then a query #11

Closed psychemedia closed 2 months ago

psychemedia commented 2 months ago

Currently we need to submit a query via a cell block magic. It might also be convenient to allow simple queries to be entered on a single line using a line magic.

If we are to return a response, we may also need to block on awaiting the response, eg Blocking waits on the Python side for updates from Jupyter anywidget Javascript UI Code [UPDATE - the jupyter_ui_poll doesn't work in pyodide kernel]

psychemedia commented 2 months ago

I implemented this to mirror the cell magic arguments.