Skip to content

Opening the packages tab in the sidebar crashes in large virtual environment #6687

@BenCradock

Description

@BenCradock

Describe the bug

I work with some very large repositories with lots of dependencies. In the best case scenario, opening the Packages tab hangs Marimo for a while until the list gets populated. In the worst case, the list doesn't get populated at all and I have to keyboard interrupt Marimo.

Will you submit a PR?

  • Yes

Environment

{                                                                                                                                                                                                                                   
  "marimo": "0.16.5",
  "editable": false,
  "location": "<redacted>/.venv/Lib/site-packages/marimo",
  "OS": "Windows",
  "OS Version": "11",
  "Processor": "<redacted>",
  "Python Version": "3.12.8",
  "Locale": "<redacted>",
  "Binaries": {
    "Browser": "--",
    "Node": "--"
  },
  "Dependencies": {
    "click": "8.1.8",
    "docutils": "0.20.1",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.8.2",
    "narwhals": "2.5.0",
    "packaging": "25.0",
    "psutil": "7.0.0",
    "pygments": "2.19.2",
    "pymdown-extensions": "10.16.1",
    "pyyaml": "6.0.2",
    "starlette": "0.46.2",
    "tomlkit": "0.13.3",
    "typing-extensions": "4.14.1",
    "uvicorn": "0.35.0",
    "websockets": "15.0.1"
  },
  "Optional Dependencies": {
    "duckdb": "1.4.0",
    "pandas": "2.3.2",
    "polars": "1.31.0",
    "pyarrow": "20.0.0",
    "loro": "1.8.1",
    "pytest": "8.4.1",
    "ruff": "0.12.9",
    "sqlglot": "27.19.0"
  },
  "Experimental Flags": {}
}

Code to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions