Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1628 Discussions

Changing environment in Jupyter Lab in devcloud

Saransh
Employee
1,134 Views

Hi, 

 

I wanted to run a jupyter lab notebook with a separate environment / kernel than the one available in the selection. A custom environment that I myself created using CLI.

How do I use that conda environment in the jupyter notebooks in JupyterLab?

 

 

Thanks,

Saransh

0 Kudos
3 Replies
AthiraM_Intel
Moderator
1,108 Views

Hi,


Thanks for reaching out to us.


You could follow the below steps to add new environment in the jupyter notebook.


1. Activate the new environment

   source activate <env_name>


2. Install ipykernel 

   conda install ipykernel


3. Add new kernel in jupyter notebook 

   python -m ipykernel install --user --name <env_name> 


4. Open the jupyter lab and set the kernel to this environment

   Kernel-->change kernel --> select one you want


If you face any issue, please let us know.


Thanks.



Saransh
Employee
1,097 Views
0 Kudos
AthiraM_Intel
Moderator
1,083 Views

Hi,

Thanks for the confirmation. If you need any additional information, please submit a new question as this thread will no longer be monitored.


Thanks


0 Kudos
Reply