zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.85k stars 2.68k forks source link

REPL not working for venv setup #16757

Open andaag opened 2 weeks ago

andaag commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

REPL doesn't seem to find the kernel at all. My assumption is that it's looking for only system kernels, while I want to use the one in .venv. I can't find any way of selecting python .venv for this?

Opening a terminal in this and running things there naturally works as direnv works.

Environment

Linux fedora, python 3.12. direnv activating and installing .venv

pyenv local $(cat .python-version)
export POETRY_VIRTUALENVS_IN_PROJECT=1
poetry env use "$(pyenv root)/versions/$(cat .python-version)/bin/python"
poetry install --sync --no-root
export VIRTUAL_ENV=$(poetry env info --path)
PATH_add "$VIRTUAL_ENV/bin"
export POETRY_ACTIVE=1
[tool.poetry]
name = "nansen-clickhouse"
version = "0.1.0"
description = ""
authors = ["Anders Aagaard <anders.aagaard@nansen.ai>"]

[tool.poetry.dependencies]
python = "^3.11"
jupysql = "^0.10.1"
clickhouse-sqlalchemy = "^0.2.4"
ipykernel = "^6.25.2"
toml = "^0.10.2"
pandas = "^2.1.0"
matplotlib = "^3.8.0"
clickhouse-connect = "^0.6.22"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.jupysql.SqlMagic]
autopandas = true
displaylimit = 0
named_parameters = true

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

[zed.log](https://github.com/user-attachments/files/16730776/zed.log)

universalmind303 commented 2 weeks ago

possible duplicate of https://github.com/zed-industries/zed/issues/15563