-
-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hello,
I am trying to get py5 to run in JupyterHub, but the instructions do not make it clear whether the functionality is supported for JupyterHub.
I have installed py5, py5[extras] and py5jupyter.
Both kernels are running:
python -m py5jupyter.kernels.py5.install --sys-prefixpython -m py5jupyter.kernels.py5bot.install --sys-prefix
When I start the Quick Example with the Python kernel, I get the following error:
py5 is unable to run correctly in headless mode. Make sure you are running in a graphical environment and that your Java Virtual Machine is not a Headless JVM.
Afterwards, I tested the py5 kernel with this example and received the following error:
name 'run_sketch' is not defined
There are no errors in the user's log.
Are there other things that need to be installed or configured, or is there no functionality for this with JupyterHub?
Thank you very much for your help.
Java-Version:
openjdk version "21.0.8" 2025-07-15
OpenJDK Runtime Environment (build 21.0.8+9-Ubuntu-0ubuntu122.04.1)
OpenJDK 64-Bit Server VM (build 21.0.8+9-Ubuntu-0ubuntu122.04.1, mixed mode, sharing)