It would be great to have support for instance mode: https://p5js.org/examples/instance-mode-instantiation.html The sketch could then be displayed by evaluating it.