cli / commands / plothillclimb

hillclimb plot

Draw a solution the way its problem says: the problem's plot.py (matplotlib).

Draw a solution the way its problem says: the problem's plot.py (matplotlib).

With no argument, the solution in this folder — what hillclimb summit copied here — saved beside it as solution.png; a directory, the solution files in it; a search, its best (or the CANDIDATE named), saved under the machine cache. The PNG opens in your image viewer. plot.py runs in the problem's runtime venv, like its verifier (matplotlib is added there once), and reads the solution's output files (submission.csv, …) — it never reruns solution.py. A problem without plot.py says so; hillclimb summit --plot copies the best and draws it in one go.

hillclimb plot [OPTIONS] [TARGET] [CANDIDATE]

Arguments

argumentwhat it is
TARGETwhat to draw: nothing = the solution in this folder (what summit wrote), a folder holding a solution's files, or a search (latest, <run-id> or <run-id>/<search-id>) optional
CANDIDATEa candidate of that search (e.g. c003); default: its best optional

Options

optionwhat it does
--problem, -p TEXTthe problem, when the folder has several.
--out, -o PATHwhere to save the PNG.
--no-opensave the PNG without opening it.