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

python version

W_E_Intel
Employee
3,143 Views

hello,

How can I make python 3.8 as default python, how can I install packages that are required python 3.8 and above ?

 

thank you,

WE

Labels (1)
0 Kudos
1 Solution
ShyamS_Intel
Moderator
3,018 Views

Hi,

 

If you are using Jupyter Hub you are already in a compute note.

You can directly open terminal from there it will connected to compute node and use it.

ShyamS_Intel_0-1659701369815.png

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

Thanks,

Shyam Sundar

 

View solution in original post

0 Kudos
11 Replies
ShyamS_Intel
Moderator
3,111 Views

Hi,

Thank you for posting in Intel Communities. 

You can use the below command for creating a virtual environment with python 3.8. 

conda create -n <env name> intelpython3_full python=3.8

Then, activate the environment as follows:

conda activate <env_name>

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you! 

 

Regards,

Shyam Sundar

 

0 Kudos
W_E_Intel
Employee
3,090 Views

Hello Shyam Sundar,

How can I connect this <env_name> to jupyter notebook ?

thank you,
WE

0 Kudos
ShyamS_Intel
Moderator
3,058 Views

Hi,

 

Follow these commands in DevCloud (Jupyter Notebook/ Terminal)

 

If you not created any new environment create one using:

conda create -n <env name>

 

 

1. Activate the new environment

 

  source activate <env_name>

ShyamS_Intel_0-1659424621339.png

 

 

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

 

ShyamS_Intel_3-1659425028399.png

 

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

 

Thanks,

Shyam Sundar

 

 

 

0 Kudos
W_E_Intel
Employee
3,052 Views

Hello Shyam Sundar,

 

how can I enable this in the job file, when I use qsub command to submit job?

 

Thank you for your great answers, I appreciate your help and support.

 

regards

WE 

0 Kudos
ShyamS_Intel
Moderator
3,019 Views

Hi,

 

If you are using Jupyter Hub you are already in a compute note.

You can directly open terminal from there it will connected to compute node and use it.

ShyamS_Intel_0-1659701369815.png

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

Thanks,

Shyam Sundar

 

0 Kudos
ShyamS_Intel
Moderator
2,994 Views

Hi,

 

Could you please give us an update? Is your issue resolved?

 

 

Thanks,

Shyam Sundar

 

0 Kudos
W_E_Intel
Employee
2,986 Views

Hello Shyam,

Thank you for the great efforts and detailed reply. How can I inform the qsub in the shell script file to use this new version of python instead of the default python ?

 

thank you,

WE

0 Kudos
ShyamS_Intel
Moderator
2,932 Views

Hi,


Add below lines to the job script file (.sh file) to activate and use an environment when submitting job to Intel DevCloud:


eval "$(conda shell.bash hook)"

conda activate <env-name>

<commands>


Thus we can run with any environment while using qsub


If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!


Thanks,

Shyam Sundar


0 Kudos
ShyamS_Intel
Moderator
2,866 Views

Hi,

 

Could you please give us an update? Is your issue resolved?

 

Thanks,

Shyam Sundar


W_E_Intel
Employee
2,853 Views

Thanks Shyam!, the problem is solved.

0 Kudos
ShyamS_Intel
Moderator
2,811 Views

Hi,


Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks,

Shyam Sundar


0 Kudos
Reply