How does py5 work?#

Explanation of how Python and Java can work together. How py5 makes use of jpype. Point out relevant parts of the code.