2020-08-15 16:39:47 UTC, Shaik Zainul:
>
> how to add 3.7.x kernel to jupyterhub (which is running with 3.6.8 kernel)
>
> On Tuesday, June 30, 2020 at 11:09:12 PM UTC+5:30, Shaik Zainul wrote:
>>
>> Hi,
>> i am new to jupyterhub and i am trying to setup 
>> 1. add multiple python kernel(2.7.x,3.6.x,3.7.x) to jupyterhub 
>> 2. setup user specific kernel - means i have 3 kernels PY3, Pyspark and 
>> R. how can i assign this 3 PY3, Pyspark and R kernels to User1, User2 and 
>> User3 respectively on Jupyterhub. 
>>
>> my default python version is 3.6.8 which is installed from python 
>> sourcefile, and i am able to run jupyterhub with python3. 
>> Python path: /share/apps/platform/ai/py36/3_6_8/bin/python3
>>
>> But now i am trying to add Python 2.7.16
>>  
>> Python path: /share/apps/platform/ai/py27/2_7_16/bin/python
>>
>>
>>
>>
>>
>> *# jupyter-kernelspec listAvailable kernels: ir 
>> /root/.local/share/jupyter/kernels/ir pyspark 
>> /share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/pyspark python3 
>> /share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/python3*
>>
>> Please guide me to add multiple python kernels and also how to setup user 
>> specific kernels in Jupyterhub.
>>
>
One good source of information on these topics is the ipykernel 
documentation:

    https://ipython.readthedocs.io/en/stable/install/kernel_install.html

The main trick is you cannot have several kernels with the same display 
name.

Open the file

*/share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/python3/kernel.json*

and change the kernel's "display_name" from "Python 3" to "Python 3.6".

Then run something like the following:

$ python37 -m ipykernel install --name 'Python 3.7'

replacing `python37` by any suitable way for you to call Python 3.7.

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/aca1115d-6c0e-4409-949a-17ec441b8eceo%40googlegroups.com.

Reply via email to