# repl: Use uv to install ipykernel for uv-managed venv \(\#51897\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/733857b74692522798c88e5d45537cdcac7247b5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 733857b74692522798c88e5d45537cdcac7247b5

Requested commit: 733857b74692522798c88e5d45537cdcac7247b5

Commit: 733857b74692522798c88e5d45537cdcac7247b5

Tree: 054259ac6265cb5e0fa2d79b45cd836e2bf66e1f

Author: Finn Eitreim

Committer: GitHub

## Message

```
repl: Use uv to install ipykernel for uv-managed venv (#51897)

## Context

Closes #51874

the repl is able to recognize that the venv is managed by uv, but still
runs `python -m pip install ipykernel`, despite this not working. this
PR fixes that behavior and uses uv to install ipkernel.

## How to Review

Added a path that uses uv to install ipykernel in repl_editor.rs
Added a function to repl_store.rs that allows updating the venv as
having ipykernel installed after installing it.


## Videos

Old Behavior:


https://github.com/user-attachments/assets/9de81cc9-cd78-4570-ad57-550f5ecabffa

New Behavior:


https://github.com/user-attachments/assets/391f54c7-ae67-4d85-8f4f-9d87ddc8db63


## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- repl: Fixed installing ipykernel with uv managed environements
```

## Parents

- [7e271711749cad0e1092c125d5f16bd22738bec6](https://git.cafe/gitcafe/zed/commit/7e271711749cad0e1092c125d5f16bd22738bec6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/733857b74692522798c88e5d45537cdcac7247b5?format=markdown)
