# repl: Refresh Python kernelspecs on buffer language change \(\#54709\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d88afd0e90ee13539c8715edd63e2bb031e50bd9

Requested commit: d88afd0e90ee13539c8715edd63e2bb031e50bd9

Commit: d88afd0e90ee13539c8715edd63e2bb031e50bd9

Tree: 3eb31d0f190bc4c6d4bd08677232b997c70ed54e

Author: MostlyK

Committer: GitHub

## Message

```
repl: Refresh Python kernelspecs on buffer language change (#54709)

- Subscribe to buffer LanguageChanged events so language detection that
completes later (e.g. in remote projects) triggers a kernelspec refresh
and ensures the REPL UI is populated.

Self-Review Checklist:

- [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

Closes #54388

Release Notes:

- Python REPL UI stays responsive on remote connection

---------

Co-authored-by: MrSubidubi <finn@zed.dev>
```

## Parents

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

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