500:internal server error while trying to open python notebook on JupyterHub

It looks like you’re running that from the root directory /? If so you won’t have permission to write there so that error is expected. What happens if you run it from your home directory?