Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Configure jedi completion for snippet support (#4489)

Michał Krassowskif92634911c3f
diff --git a/frontend/src/core/codemirror/language/python.ts b/frontend/src/core/codemirror/language/python.ts
index 3efb56bdfa..f8442f11b3 100644
--- a/frontend/src/core/codemirror/language/python.ts
+++ b/frontend/src/core/codemirror/language/python.ts
@@ -80,6 +80,12 @@ const lspClient = once((lspConfig: LSPConfig) => {
jedi: {
auto_import_modules: ["marimo", "numpy"],
},
+ jedi_completion: {
+ // Ensure that parameters are included for completion snippets.
+ include_params: true,
+ // Include snippets and signatures it at most 50 suggestions.
+ resolve_at_most: 50,
+ },
flake8: {
enabled: config?.enable_flake8,
extendIgnore: ignoredFlakeRules,