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

Core Components tutorial error

$
0
0

When I try and run the Core Components example in: Part 2. Layout | Dash for Python Documentation | Plotly, I get the following error:

Traceback (most recent call last):
File “app.py”, line 14, in
dcc.Dropdown([‘New York City’, ‘Montréal’, ‘San Francisco’], ‘Montréal’),
File “C:\Users\AimerDev\Anaconda3\lib\site-packages\dash\development\base_component.py”, line 366, in wrapper
return func(*args, **kwargs)
File “C:\Users\AimerDev\Anaconda3\lib\site-packages\dash_core_components\Dropdown.py”, line 85, in init
super(Dropdown, self).init(**args)
File “C:\Users\AimerDev\Anaconda3\lib\site-packages\dash\development\base_component.py”, line 138, in init
raise TypeError(
TypeError: id prop must be a string or dict, not [‘New York City’, ‘Montréal’, ‘San Francisco’]

Any ideas what it doesn’t like the code copied from the tutorial?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images