positron icon indicating copy to clipboard operation
positron copied to clipboard

Using uv leads to a failed ipykernel installation

Open jthomasmock opened this issue 1 year ago • 1 comments

Positron Version: 2024.05.0 (Universal) build 1160 Code - OSS Version: 1.89.0 Commit: 5024068198dcf8f5c3560dce8e6bf8affd9580cb Date: 2024-05-08T03:21:09.376Z Electron: 28.2.8 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0

Steps to reproduce the issue:

  1. Install the uv tool
  2. Create a new project/folder and navigate to it.
  3. $ uv venv to create a new virtual environment.
  4. This will prompt Positron to ask you to use the .venv as the default for the workspace. Select yes which will also attempt to install ipykernel and select Yes.
  5. Because uv doesn't include pip in the .venv, the pip install ipykernel will fail as it needs to be uv pip install ipykernel instead

What did you expect to happen?

It would be nice if Positron could work with uv to install packages.

Were there any error messages in the output or Developer Tools console?

jthomasmock avatar May 10 '24 01:05 jthomasmock