Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

How to set size of dashboards?

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’)