Adding colors to line chart from dropdown

Hi All,

I have the below code, which throws the below error while selecting the color for the line chart in plotly.

ValueError: String or int arguments are only possible when a DataFrame or an array is provided in the data_frame argument. No DataFrame was provided, but argument ‘color’ is of type str or int.

`
import plotly.express as px
from ipywidgets import interact

@interact(x=(0,10,1), y=(0,12,1), c=[‘blue’, ‘red’, ‘green’, ‘cyan’, ‘pink’])
def update(x=3, y=5, c=‘red’):
x_plist =
y_plist =
for i in range(-x,x):
for j in range(-y,y):
x_plist.append(i)
x_plist.append(i)
x_plist.append(i+1)
x_plist.append(i+1)
x_plist.append(i)

        y_plist.append(j)
        y_plist.append(j+1)
        y_plist.append(j+1)
        y_plist.append(j)
        y_plist.append(j)

    x_plist.append(None)
    y_plist.append(None)
f = px.line(x=x_plist, y=y_plist, range_x=[-x,x], range_y=[-y,y], color=c)
f.show()

`
Thanks for the help