Skip to content

recommend/document basic use of uv #72

@williamstein

Description

@williamstein

See https://docs.astral.sh/uv/

A section about uv should be added to https://doc.cocalc.com/howto/install-python-lib.html

It's very easy to install the latest version, make a project, install packages and create a custom kernel. This just all follows exactly the official docs with nothing at all special about CoCalc.

curl -LsSf https://astral.sh/uv/install.sh | sh
mkdir project
cd project
uv init
uv add Hypothesize 'numpy>=1.23'
uv add --dev ipykernel
uv run ipython kernel install --user --env VIRTUAL_ENV $(pwd)/.venv --name=project

uv finally gets Python packaging right, and is clearly a significant leap over everything that came before it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions