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.

Remove cursor tooltip (#418)

Akshay Agrawale6e2e4c74247
diff --git a/frontend/src/core/codemirror/completion/hints.ts b/frontend/src/core/codemirror/completion/hints.ts
index d5e177754e..263d5f98e3 100644
--- a/frontend/src/core/codemirror/completion/hints.ts
+++ b/frontend/src/core/codemirror/completion/hints.ts
@@ -50,7 +50,6 @@ export function hintTooltip() {
hideOnChange: true,
}
),
- cursorTooltipField,
Prec.highest(
keymap.of([
{
diff --git a/marimo/_runtime/complete.py b/marimo/_runtime/complete.py
index db2189c31e..fa2894a989 100644
--- a/marimo/_runtime/complete.py
+++ b/marimo/_runtime/complete.py
@@ -218,29 +218,6 @@ def complete(
# Don't complete ...
completions = []
- # Get docstring in function context. A bit of a hack, since
- # this isn't actually a completion, just a tooltip.
- #
- # If no completions, we might be getting a signature ...
- # for example, if the document is "mo.ui.slider(start=1,
- signatures = script.get_signatures()
- if signatures:
- _write_completion_result(
- stream=stream,
- completion_id=request.completion_id,
- prefix_length=0,
- options=[
- CompletionOption(
- name=signatures[0].name,
- type="tooltip",
- completion_info=_get_completion_info(
- signatures[0]
- ),
- )
- ],
- )
- continue
-
if not completions:
# If there are still no completions, then bail.
_write_no_completions(stream, request.completion_id)