I’v noticed that dash datatables seems to break when you introduce a condition (that is met) with a filter on a column that has some special characters in the columnname: such as the swedish characters åäö, and characters such as é and ü.
say you have the table:
|column_ö|column_1|
| test | test |
and condition the table as:
style_cell_conditional=[{‘if’: {‘column_id’: ‘column_ö’, ‘filter’: ‘column_ö’ eq “test”’}, ‘backgroundColor’: ‘pink’}]
Then I recieve a “Error loading dependencies” in my webpage, but no error message in the console.
Example code:
import dash
import dash_table
import pandas as pd
df = pd.read_csv(‘https://raw.githubusercontent.com/plotly/datasets/master/solar.csv’)
df.rename(columns={‘State’: ‘column_ö’}, inplace=True)
app = dash.Dash(name)
app.layout = dash_table.DataTable(
id=‘table’,
columns=[{“name”: i, “id”: i} for i in df.columns],
data=df.to_dict(“rows”),
style_cell_conditional=[{‘if’: {‘column_id’: ‘column_ö’, ‘filter’: ‘column_ö eq “California”’}, ‘backgroundColor’: ‘pink’}]
)
if name == ‘main’:
app.run_server(debug=True)
Would appreciate if anyone have any suggestions on how to solve it, or can point out any misstake am doing:)