Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete does not find suggestions in polars namespaces #3302

Open
kjgoodrick opened this issue Dec 27, 2024 · 3 comments
Open

Autocomplete does not find suggestions in polars namespaces #3302

kjgoodrick opened this issue Dec 27, 2024 · 3 comments
Labels
bug Something isn't working upstream

Comments

@kjgoodrick
Copy link
Contributor

Describe the bug

When using polars the marimo autocomplete is unable to find any suggestions for names that are within namespaces. For example, here is what the autocomplete shows for the dt namespace.

Image

Here is what VS Code shows:
Image

Environment

{
"marimo": "0.10.7",
"OS": "Darwin",
"OS Version": "24.2.0",
"Processor": "arm",
"Python Version": "3.13.1",
"Binaries": {
"Browser": "--",
"Node": "v23.5.0"
},
"Dependencies": {
"click": "8.1.3",
"docutils": "0.21.2",
"itsdangerous": "2.2.0",
"jedi": "0.19.2",
"markdown": "3.7",
"narwhals": "1.19.1",
"packaging": "24.2",
"psutil": "6.1.1",
"pygments": "2.18.0",
"pymdown-extensions": "10.13",
"pyyaml": "6.0.2",
"ruff": "0.6.9",
"starlette": "0.42.0",
"tomlkit": "0.13.2",
"typing-extensions": "4.12.2",
"uvicorn": "0.34.0",
"websockets": "14.1"
},
"Optional Dependencies": {
"altair": "5.5.0",
"duckdb": "1.1.3",
"pandas": "2.2.3",
"polars": "1.17.1",
"pyarrow": "18.1.0"
}
}

Code to reproduce

import polars as pl

pl.col("col_name").dt
@akshayka
Copy link
Contributor

Thanks for reporting!

I did some digging. I've opened an issue in the Polars repository, as they've been helpful in resolving similar issues in the past: pola-rs/polars#20496

IPython has the same issue:

Image

As does jedi (which marimo uses for completion).

Image

@akshayka
Copy link
Contributor

The issue I created is a duplicate of pola-rs/polars#16933. I consider this blocked on upstream (Polars), short of us switching to a different technology to power completions.

@MarcoGorelli
Copy link
Contributor

Have you considered using PyRight to do autocompletions? Using that at least this example ends autocompleting correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

3 participants