interactive
interactive copied to clipboard
#!connect fails when kernelspec is installed with --sys-prefix
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
There is no problem if I change --sys-prefix to --user.