Class PythonPlotter

java.lang.Object
com.studentgui.apphelpers.PythonPlotter

public class PythonPlotter extends Object
Helper to invoke the repository's Python plot runner asynchronously.

This wrapper launches the repository's Python runner script in a background thread and collects its combined output. It is used by some legacy pages; newer pages prefer the Java-based charting helpers.

  • Method Details

    • runPlotAsync

      public static void runPlotAsync(String moduleName, String studentName, Consumer<String> onComplete)
      Run the python runner for the given module and student name in a background thread. The onComplete consumer receives combined stdout/stderr text when the process finishes.
      Parameters:
      moduleName - module identifier passed to the python runner (non-null)
      studentName - student display name used by the plotter (non-null)
      onComplete - optional consumer receiving process output when complete; may be null