admin管理员组文章数量:1406152
I am trying to run Jupyter notebook in VSCode, but I cannot load the virtual environment kernel. In fact, I don't see any kernels. When I try to select a Python Environment kernel, doesn't show any kernel and instead offers me the Install Python. Clicking on it does not do anything. Reloading VSCode does not do anything. Python scrips works just fine in the virtual environment, but Jupyter notebooks cannot find any kernels.
I tried:
pip3 install ipykernel --force-reinstall
python3 -m ipykernel install --user --name=.venv
I tried clicking on "Install Python" in the select kernel dialog, but that does not do anything at all.
How can I get the Jupyter notebook to work with the .venv kernel?
Venv is already installed.
source .venv/bin/activate
pip3 install ipykernel --force-reinstall
python3 -m ipykernel install --user --name=.venv
I expected that .venv would show up in the list of available Jupyter kernels.
本文标签: visual studio codeJupyter notebook in VSCode does not see venv kernelStack Overflow
版权声明:本文标题:visual studio code - Jupyter notebook in VSCode does not see .venv kernel - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744975341a2635481.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论