Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

How to set size of dashboards?

$
0
0

Hello There,

I need some help with the following code below, I am trying to set the table to ‘six columns’ but when I run the code the table does not resize, it still remains all width lenght.

Thanks!!

CODE:

import pandas as pd
import dash_table as dt

app = JupyterDash(name)

df = pd.read_csv(‘cursos.csv’)

app.layout = html.Div([
dt.DataTable(
id = ‘table’,
columns = [{‘name’:i, ‘id’: i} for i in df.columns],
data = df.to_dict(‘records’)
)
], className =‘six columns’)

app.run_server(mode=‘external’)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles