dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.88k stars 382 forks source link

#!connect fails when kernelspec is installed with --sys-prefix #3478

Open suugbut opened 7 months ago

suugbut commented 7 months ago

Describe the bug

I want to place my kernelspec in my python virtual environment myvenv instead of in user folder.

python -m venv myvenv
myvenv\scripts\activate
pip install ipykernel
python -m ipykernel install --sys-prefix --name=mykernelspec

Terminal's output:

Installed kernelspec mykernelspec in C:\Users\Someone\Documents\myprojects\myvenv\share\jupyter\kernels\mykernelspec

image

There is no problem if I change --sys-prefix to --user.