p5py icon indicating copy to clipboard operation
p5py copied to clipboard

Feature Request / Multiple py files

Open redfood opened this issue 5 years ago • 2 comments

Thank you for creating p5py. It is almost exactly what I was looking for!

I'm not sure if you are interested in feature requests but... It would be great if p5py could support multiple .py files.

So, for example, in your sample project. The Wave class could be defined in wave.py and then in the main sketch file, you could import wave. (I imagine each .py file would be in a tab like in the Processing SDK)

redfood avatar Jan 07 '20 22:01 redfood

Yeah I think it would be great if we can make multiple .py files. But I'm not very familiar with front-end development. So I may need to spend some time to see how to make it.

AndersonBY avatar Jan 09 '20 05:01 AndersonBY

I just whipped up a minimal example of tabs. https://github.com/redfood/minimalTabDemo

Hope it helps!

redfood avatar Jan 16 '20 21:01 redfood