# repl: Avoid duplicate kernelspec fetches \(\#51024\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 65b80ff689022b50bc5c2e52dff94c51c8f2f79c

Requested commit: 65b80ff689022b50bc5c2e52dff94c51c8f2f79c

Commit: 65b80ff689022b50bc5c2e52dff94c51c8f2f79c

Tree: 15b6852b8207325632956443c059302571e3c29f

Author: MostlyK

Committer: GitHub

## Message

```
repl: Avoid duplicate kernelspec fetches (#51024)

Switch python_env_kernel_specifications to a buffered stream (using
buffer_unordered(4) and filter_map) to run discovery concurrently with a
bounded parallelism and skip None results.

Closes #50988

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A
```

## Parents

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

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