Skip to content

How do you integrate py5 into JupyterHub? #756

@BigFlagBurito

Description

@BigFlagBurito

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-prefix
  • python -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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions