Pyspark library is missing from jupyter/pyspark-notebook when running with jupyterhub/zero-to-jupyterhub-k8s

Initial findings:

The pyspark image adds a /usr/local/bin/before-notebook.d hook which sets PYTHONPATH:

This is called in start.sh:

But by default Z2JH calls jupyterhub-singleuser directly:

1 Like