traces can be selected with index or string
traces can be selected with index or string

if selector is string, it is converted to dict(type=selector)

plotly/plotly.py,plotly/plotly.py,plotly/plotly.py