Hi, I want to host a TLJH instance which lets me demo a custom Jupyter extension without users having to install it first. To do that, I want to use TLJH and have user accounts automatically created (and later destroyed), and also be able to send the user to an existing notebook automatically.
It looks like tmpauthenticator would work for that, but I’m getting errors when starting it.
This is how I installed it:
sudo -E pip install jupyterhub-tmpauthenticator sudo tljh-config set auth.type tmpauthenticator.TmpAuthenticator sudo tljh-config reload
However, once I installed it, the homepage (and other pages) just gave me this:
Here’s what the logs show:
Dec 10 01:11:12 li840-145 python3: [C 2018-12-10 01:11:12.901 JupyterHub application:90] Bad config encountered during initialization: Dec 10 01:11:12 li840-145 python3: [C 2018-12-10 01:11:12.902 JupyterHub application:91] The 'authenticator_class' trait of <__main__.JupyterHub object at 0x7fbaece787f0> instance must be a type, but 'tmpauthenticator.TmpAuthenticator' could not be imported
I’m able to import tmpauthenticator here:
jupyter-vaughn@li840-145:~$ python Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tmpauthenticator >>> from tmpauthenticator import TmpAuthenticator
Do I need to install tmpauthenticator running as root on the machine directly? How do I make sure that I’m installing it for the right python instance that TLJH uses?