Open lanyusan opened 2 years ago
Thank you for submitting your first issue to p5py
There isn't direct support as of now for p5py to be used headlessly, you could however use virtual frame buffers.
How would one go about this ? I basically want to generate (for now) an image headless grab the image and save to png for usage.
I did some digging, I can some a long way by running the rendering process in a separate thread. But I cannot find a way to prevent the preview window to pop up
Is there any progress on this front? I would like to use p5 in a jupyter notebook for example and render the images there somehow, is that possible?
@ivanlen it's still a WIP, but you can checkout https://py5coding.org/index.html which supports this.
@ivanlen it's still a WIP, but you can checkout https://py5coding.org/index.html which supports this. @tushar5526
Yes thanks!, already saw that one but they are using ipython kernel as backend which is not currently compatible with ARM mac architecture. I was able to make work p5py
with mac and thats why I interested in using it that way.
@ivanlen one of our 2D rendering backend skia supports this feature - but it's still a WIP and I am not sure if I can find time for it soon.
I am using pycairo as headless canvas. But its API isn't compatible with processing's.
If P5 can be used as headless canvas, it would be great.
If yes, how to use it? I couldn't find such information from doc.
Thanks