Py5 Tools

The py5 Tools are extra utility functions not directly related to creating Sketches that help faciliate the use of py5.

Examples

1
2
3
import py5_tools

print(py5_tools.get_jvm_debug_info())
1
2
3
4
5
6
7
8
import py5_tools

py5_tools.add_jars('path/to/project_jars')
py5_tools.add_classpath('path/to/jar/file/java_code.jar')

import py5

py5.println(py5_tools.get_classpath())

Description

The py5 Tools are extra utility functions not directly related to creating Sketches that help faciliate the use of py5. For example, you can use these to add jar files to the Java classpath before importing py5. All of the py5 Tools are in the Python package py5_tools, which are installed alongside py5 but must be explicitly imported before using them. The py5_tools package is imported for you when coding in imported mode such as with the py5 Jupyter Notebook kernel.

The following functions are provided:

Updated on September 16, 2021 14:31:43pm UTC