You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is most useful for using Code Editor cells in marimo run (app) mode. Alternative could be making SQL cells available outside marimo edit.
sql_editor = mo.ui.code_editor(
language="sql",
value=placeholder,
# min_height=5, <- 1. this does not do anything
# debounce=True, <- 2. new feature requested
# tab_moves_focus=True <- 3. new feature requested
)
sql_editor = sql_editor.form(label="### SQL Editor") # <- 4. on hitting submit (Ctrl+Enter), new line should not be created in editor
height option doesn't seem to have an effect
debounce requested, like in mo.ui.text
currently Tab changes indentation; with this option, Tab would move focus out of the editor; when debounce=True this would effectively run a query
If using code editor in a form, Submit can be activated by Ctrl+Enter, but it also creates a new line in the editor.
The text was updated successfully, but these errors were encountered:
This is most useful for using Code Editor cells in
marimo run
(app) mode. Alternative could be making SQL cells available outsidemarimo edit
.mo.ui.text
debounce=True
this would effectively run a queryThe text was updated successfully, but these errors were encountered: