IssueRaiser

Make the Python experience wonderful

### Check for existing issues - [X] Completed ### Describe the feature - [x] Automatically discover virtual environments and have UI in place for selecting them: - https://github.com/zed-industries/zed/issues/7646 - We should detect both venvs that exist in the project itself, looking for conventional folder names (`venv`, `.venv`, `virtual_envinronment`) and venvs installed in the global space. - A button in the status bar that opens up a modal. Should the button only be available when in python files? - This venv should be the one we automatically activate when opening new terminals, if the `detect_venv` setting is on. - It could also be used to automatically generate a `pyrightconfig.json` file, in the short term, while we still use pyright. It can be used in the future code runner, as well. What should we do with the current logic that tries to automatically detect venvs? Maybe it just gets deprecated. - We could potentially just lean on [uv](https://github.com/astral-sh/uv) (`uv python list`) for this. - [x] A better language server - https://github.com/zed-industries/zed/issues/7296 - Not much we can do now, but maybe one of these will pan out - [`astral.sh`](https://astral.sh)? - [`pylsp`](https://github.com/python-lsp/python-lsp-server) - [`pylyzer`](https://github.com/mtshiba/pylyzer) - [ ] Notebooks / ipynb support - https://github.com/zed-industries/zed/issues/5273 - Notebooks are imperative for b

Posted by JosephTLyons on Feb 15, 2024, 2:57 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

ux (Sysadmin)

Make the Python experience wonderful

JosephTLyonsFeb 15, 2024, 2:57 AM

### Check for existing issues - [X] Completed ### Describe the feature - [x] Automatically discover virtual environments and have UI in place for selecting them: - https://github.com/zed-industries/zed/issues/7646 - We should detect both venvs that exist in the project itself, looking for conventional folder names (`venv`, `.venv`, `virtual_envinronment`) and venvs installed in the global space. - A button in the status bar that opens up a modal. Should the button only be available when in python files? - This venv should be the one we automatically activate when opening new terminals, if the `detect_venv` setting is on. - It could also be used to automatically generate a `pyrightconfig.json` file, in the short term, while we still use pyright. It can be used in the future code runner, as well. What should we do with the current logic that tries to automatically detect venvs? Maybe it just gets deprecated. - We could potentially just lean on [uv](https://github.com/astral-sh/uv) (`uv python list`) for this. - [x] A better language server - https://github.com/zed-industries/zed/issues/7296 - Not much we can do now, but maybe one of these will pan out - [`astral.sh`](https://astral.sh)? - [`pylsp`](https://github.com/python-lsp/python-lsp-server) - [`pylyzer`](https://github.com/mtshiba/pylyzer) - [ ] Notebooks / ipynb support - https://github.com/zed-industries/zed/issues/5273 - Notebooks are imperative for b

Comments (0)

No comments yet. Start the discussion.

Comment on this issue