Skip to content

Commit

Permalink
wip re responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
darenr committed Jan 11, 2024
1 parent 6d343f0 commit 31cedb4
Show file tree
Hide file tree
Showing 6 changed files with 8,068 additions and 14,648 deletions.
67 changes: 67 additions & 0 deletions aa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import logging
from typing import Dict, List, Sequence, Tuple, Union

import numpy as np
import pandas as pd
import plotly.express as px
import yaml

logging.basicConfig(level=logging.INFO)

from report_creator import (
Base,
Block,
Collapse,
DataTable,
Group,
Image,
Json,
Markdown,
Plot,
Python,
ReportCreator,
Select,
Separator,
Statistic,
Text,
Yaml,
)

if __name__ == "__main__":


with ReportCreator("Kitchen Sink Report") as report:
view = Block(
Group(
Statistic(
heading="Chances of rain",
value="84",
unit="%",
),
Statistic(heading="Loss", value=0.1),
Statistic(
heading="Accuracy",
value=95,
label="Number of correct predictions Total number of predictions",
),
label="Grouped Stats",
),
Group(
Statistic(
heading="Answer to Life, The Universe, and Everything",
value="42",
),
Statistic(
heading="Confidence",
value=95,
unit="%",
label="How likely is this to be correct.",
),
Statistic(
heading="Author",
value="Douglas Adams",
),
)
)

report.save(view, "index.html")
Loading

0 comments on commit 31cedb4

Please sign in to comment.