Skip to content

archaeo_super_prompt.visualization

[docs] package archaeo_super_prompt.visualization

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from dash import Dash, html
from pandera.typing.pandas import DataFrame

from ..types.results import ResultSchema

from .display_fields import display_results
from .file_explorer import add_file_explorer

_app = Dash()


def init_complete_vizualisation_engine(results: DataFrame[ResultSchema]):
    global _app
    _app = Dash()
    resultChildren, c1 = display_results(results)
    fileExplorer, c2 = add_file_explorer()
    _app.layout = [
        html.Div(className="row", children=resultChildren),
        html.Div(className="row", children=fileExplorer),
    ]
    c1(_app)
    c2(_app)


def run_display_server():
    _app.run()