Skip to content

Activate venv from script metadata? #6

@ianhi

Description

@ianhi

I'd like to be able to access the venv of a script for LSP integration outside the context of a project. i.e. a one-off script with dependencies decalred per pep 723 (https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies). Is this possible to support?

I'm hoping the answer is yes because I think when I when I uv run a script it creates a cache somewhere of the packages so they much be available somewhere

Maybe this is some sort of lead: https://stackoverflow.com/a/79544311/835607

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions