interactive icon indicating copy to clipboard operation
interactive copied to clipboard

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

Open suugbut opened this issue 1 year ago • 0 comments

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.

suugbut avatar Mar 02 '24 21:03 suugbut