danielballan / nbexamples

distribute notebooks for users to copy via a web interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuring with Jupyterhub

iMarang opened this issue · comments

Hi,

I'm setting up a jupyterhub deployment for use as an online learning environment. I want to test your nbexamples package to provide students with the learning module (as the read only example) and for them to save a writable copy into their home dirs before completing it and saving it for review.

I've followed the install process, however, the config steps are all listed for jupyter_notebook_config.py, which I'm not using. Instead I've added them as lines in the jupyterhub_config.py

As you can probably guess, it's not working. I don't get any error message on the '--debug' from jupyterhub, I just can't see any 'Example' tab in the notebook directory page.

I'm running this on RHEL 6.8 vm with Py2.7, Py3.4 and R kernels

Can you advise?

You need to use jupyter_notebook_config.py to configure the single-user servers to include the Examples tab. I suggest started from the documented procedure, as a test, and then trying to make any customizations than you need for your setup. Also, you might already be well aware of this, but you may be interested in the nbgrader project: https://nbgrader.readthedocs.io/en/stable/

@iMarang the jupyter_notebook_config.py affect the jupyterhub-singleuser process, which is the real process serving content to user. For a singe user you can add the config lines for nbexample to jupyter_notebook_config.py located in user's home directory ~/.jupyter/. Or you can have a global jupyter_notebook_config.py located in /etc/jupyter/ affects all users.