conda – How to upgrade the version of python for jupyter lab?
Activate the "py311" environment: In your terminal, run the following command to activate the "py311" environment:
conda activate py311
Install Jupyter Lab in the "py311" environment: While the "py311" environment is active, run the following command to install Jupyter Lab:
conda install jupyterlab
Register the "py311" environment as a Jupyter kernel: To make Jupyter Lab recognize the "py311" environment, you need to register it as a kernel. Run the following command:
python -m ipykernel install –user –name=py311 –display-name=”Python 3.11″
Launch Jupyter Lab: Start Jupyter Lab by running the following command:
jupyter lab
Select the "Python 3.11" kernel: In the Jupyter Lab interface, when creating a new notebook or changing the kernel of an existing notebook, you can select the "Python 3.11" kernel from the kernel dropdown menu.
Read more here: Source link
