Код: Выделить всё
log.info("Process started on ",t1)
log.info("Total number of files ", n)
log.info("Process completed on ",t2)
Код: Выделить всё
from dash import Dash, html, dcc, callback, Output, Input
import dash_bootstrap_components as dbc
app.layout = html.Div([
dcc.Location(id="location"),
dbc.Row([
dbc.Col(html.H1("log display"), width=12)
]),
dbc.Row([
dbc.Col(
dcc.Textarea(
id='file-content',
value='',
readOnly=True,
style={'width': '100%', 'height': '500px'}
),
width=10
),
]),
])
Подробнее здесь: https://stackoverflow.com/questions/784 ... h-textarea