py5_tools.add_options()
Contents
py5_tools.add_options()#
Provide JVM options to use when the JVM starts.
Examples#
import py5_tools
py5_tools.add_options('-Xmx4096m')
import py5
Description#
Provide JVM options to use when the JVM starts. This is useful to set the JVM memory size, for example.
After the JVM has started, new options cannot be added. This function will throw a RuntimeError
if it is called after the JVM has already started. Use py5_tools.is_jvm_running() to first determine if the JVM is running.
Signatures#
add_options(
*options: list[str],
) -> None
Updated on September 01, 2022 16:36:02pm UTC