Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java kenrnel reflecting for only admin not reflecting to students #147

Open
Rohithb8 opened this issue Jan 5, 2024 · 0 comments
Open

java kenrnel reflecting for only admin not reflecting to students #147

Rohithb8 opened this issue Jan 5, 2024 · 0 comments

Comments

@Rohithb8
Copy link

Rohithb8 commented Jan 5, 2024

I have created a jupyterhub for students and install IJava kernel in shared directory. I can see the java kernel in my lab as an admin but users that is students cannot see java kernel when they logged in to their jupyterlab.
i have also modified config file:
c.Spawner.args = ['--NotebookApp.kernel_spec_manager_class=nb_conda_kernels.CondaKernelSpecManager']
#this will allow jupyter to use different kernels
c.Spawner.env_keep.append('/home/tele/.local/share/jupyter/kernels/java') # Add any required environment variables
c.KernelSpecManager.ensure_native_kernel = False
c.KernelSpecManager.kernel_cmd = ['/home/tele/.local/share/jupyter/kernels/java']

Path to IJava kernel

c.KernelSpecManager.whitelist = {'java','python'}
c.KernelSpecManager.kernel_dirs = ['/shared_kernel']
c.Authenticator.admin_users = {'tele'} # Specify admin users
c.Authenticator.whitelist = {'kumar_ex', 'user2'} # Add specific users
c.Authenticator.add_user_cmd = [
'adduser', '--force-badname', '-q', '--gecos', '', '--disabled-password'
]
c.Authenticator.check_password = lambda username, password: passwd('your_password') == 'aaf1577c327d4ff7edbee4b7e24762d523d6a1ef'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant