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

Add support for JupyterHub with local spawner (in the venv) and PAM a… #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

EWouters
Copy link

@EWouters EWouters commented Jan 9, 2019

Add support for JupyterHub with local spawner (in the venv) and PAM authentication.

I see you've made some changes in the dev branch. These files follow the conventions from the master branch, but should be easily convertible. This has not been thoroughly tested. Let me know if you're interested to merge, then I can test and add the changes as in the dev branch.

Thanks for this project, it's really usefull. One suggestion I have though is to write the inst_jns.sh file such that it has arguments to block some parts from installing (or the other way around).

@EWouters
Copy link
Author

EWouters commented Jan 9, 2019

Just noticed that the installed kernels are not available to other users than pi. They should be installed by root in order to be avaiable to everyone, e.g.:

# .venv/jns/bin/python -m  bash_kernel.install

@kleinee
Copy link
Owner

kleinee commented Jan 10, 2019

Hi @EWouters,

Many thanks for your suggestions / PR!

  • I have briefly thought about adding JupyterHub to the setup but opted against it as I was - and still am - worried about memory requirements. 256MB to 1GB as found on Raspberry Pis aren't really a lot. Any thoughts on this? Can you shed some light on your intended use of JupyterHub?

  • As far as my dev branch goes: I wanted to time execution of the scripts to find out how long it takes to install the entire setup on different Pi models. Do you think this is of general interest?

  • I like your idea of modifying 'inst_jns.sh' ! Currently - if I do not want to install any of the options - I just comment them out prior to execution. Will definitely look into this one.

@EWouters
Copy link
Author

I think it doesn’t matter that much in terms of resources. JupyterHub listens on a port waiting to launch a server, Jupyter listens on a port waiting to launch a kernel. They both run a tornado server. The main difference is the usecase. If you have multiple concurrent users a pi is not going to cut it but if your users want to have their own directory of notebooks and are not all going to stress the server at the same time JupyterHub will be useful for you. I’ve tested with 2 users logged on using a python kernel, and it runs fine.

@kleinee
Copy link
Owner

kleinee commented Jan 11, 2019

Hi @EWouters,
Thought it would be a start to install kernels systemwide and create a separate script for installing the bash kernel. I struggle with IJulia. This post gives some clue. How did you do it and can different users on your hub use the Julia kernel? What about extensions? Do they all work in your setup?

@EWouters
Copy link
Author

The Bash kernel works, I tried to get Julia working as well but did not succeed so far. I haven't tried the instructions from the post you mentioned yet. The bash kernel does work, and I haven't got the SQLite kernel installed.

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

Successfully merging this pull request may close these issues.

2 participants