CIROH-UA / awi-ciroh-image

CIROH JupyterHub image repository
https://ciroh.awi.2i2c.cloud/
BSD 3-Clause "New" or "Revised" License
2 stars 6 forks source link

Add R kernel to docker image #55

Closed manjilasingh closed 1 month ago

manjilasingh commented 4 months ago

Users currently need to reinstall r kernel every time they start a server. Adding r kernel directly to the image would eliminate the need of repeated installations. The following line can be added to the Dockerfile: RUN conda install -c r r-irkernel

benlee0423 commented 4 months ago

@manjilasingh How many users are requesting this feature, and which organization are they belongs to?

benlee0423 commented 4 months ago

Before

$ jupyter kernelspec list
[ListKernelSpecs] WARNING | Config option `kernel_spec_manager_class` not recognized by `ListKernelSpecs`.
Available kernels:
  python3    /srv/conda/envs/notebook/share/jupyter/kernels/python3

After

$ jupyter kernelspec list                          
[ListKernelSpecs] WARNING | Config option `kernel_spec_manager_class` not recognized by `ListKernelSpecs`.                                                                        
Available kernels:                                                                       
  ir         /srv/conda/envs/notebook/share/jupyter/kernels/ir                           
  python3    /srv/conda/envs/notebook/share/jupyter/kernels/python3  
manjilasingh commented 4 months ago

@manjilasingh How many users are requesting this feature, and which organization are they belongs to?

@arpita0911patel might have that info

benlee0423 commented 4 months ago

Correct command to use RUN conda install -c r r-irkernel -y After rebuild and use the image to launch instance in staging.

$ jupyter kernelspec list
[ListKernelSpecs] WARNING | Config option `kernel_spec_manager_class` not recognized by `ListKernelSpecs`.
Available kernels:
  python3    /srv/conda/envs/notebook/share/jupyter/kernels/python3
(notebook) jovyan@jupyter-benlee0423:~$ 

This means conda command is not compatible with Dockerfile, and the command does not install R kernel to the image built.

benlee0423 commented 3 months ago

@arpita0911patel We like to ask new image built tested by requester in staging if it works. Can you share the email address who requested r kernel, and I will send instruction how to test in staging?

arpita0911patel commented 3 months ago

Pabitra Dash pabitra.dash@usu.edu

sepehrkrz commented 1 month ago

The image with R kernel has been added to the prod environment.