Skip to content

Quick Start

Create a table, add rows, make a chart, and save a PDF report:

from tabloom import Chart, Report, Table

table = Table(columns=["Model", "Accuracy"], title="Model Results")
table.add_row(["Model A", 0.85])
table.add_row(["Model B", 0.91])
table.add_row({"Model": "Model C", "Accuracy": 0.88})
table.save("results.png")

chart = Chart.bar(
    data=table,
    x="Model",
    y="Accuracy",
    title="Model Comparison",
    ylabel="Accuracy",
)
chart.save("comparison.png")

report = Report(title="Experiment Report")
report.add_text("Comparison of machine learning models.")
report.add_table(table).add_chart(chart)
report.save("experiment_report.pdf")

The title, text, table, and chart flow onto the same page when space permits. New pages are added automatically when needed. Use table.show() or chart.show() to display figures directly in notebooks, or in an environment with a graphical backend. Creation and saving do not open windows. See the guides for data files, themes, and customization.