



Open existing notebook or create a new one.Ĭhange kernel from menu Kernel → Change kernel → Python (butiran).I am having an issue with my Quarto website project. Lanuch Jupyter Notebook from PowerShell.to C:\\venvs\\butiran\\Scripts\\python.exe.from C:\\Users\\Full Name\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\python.exe."C:\\Users\\Full Name\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\python.exe", PS C:\venvs\butiran> cat "C:\Users\Full Name\AppData\Roaming\jupyter\kernels\butiran\kernel.json" Installed kernelspec butiran in C:\Users\Full Name\AppData\Roaming\jupyter\kernels\butiran PS C:\venvs\butiran> python -m ipykernel install -user -name butiran -display-name "Python (butiran)" Install ipykernel for Jupyter Notebook as in here.(butiran) PS C:\venvs\butiran> deactivate Deactivate virtual enviroment in powershell as in here.(butiran) PS C:\venvs\butiran> pip install ipykernel (butiran) PS C:\venvs\butiran> python -m pip install -upgrade pip Activate virtual environment as in here.Change directory to the folder, e.g in this case is butiran in venvs (folder for all virtual environments).PowerShell, as in here, in a folder (in this case it is c:\venvs\butiran) Create Python virtual environment from a shell, e.g.

Long answerĪfter some tries the steps can be summarized as follow. Path of python executable in JSON file of Jupyter kernel should point to python executable in related virtual environment. Is there a way to install Python package only to an active Jupyter Notebook kernel? With % (instead of !) it will install a_package into the current kernel (rather than into the instance of Python that launched the notebook).īut what I have got that it installs a_package to all kernels, or %pip list will list the same installed packages in all kernels. Then I try to install Python a package using %pip install a_package Python3 C:\Users\Full Name\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\kernels\python3 Othervenv C:\Users\Full Name\AppData\Roaming\jupyter\kernels\othervenv Inside a Jupyter Notebook I have managed to install a Python kernel with !python -m ipykernel install -user -name other-env -display-name "Python (other-env)"Īs informed here and it is available with other kernels on the menu Kernel → Change kernel and !jupyter kernelspec listĪvenv C:\Users\Full Name\AppData\Roaming\jupyter\kernels\avenvĬhatterbot C:\Users\Full Name\AppData\Roaming\jupyter\kernels\chatterbot
