✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Issues with Julia Plotly

I am trying to run the most basic code listed in the guides on Julia, and I get the error:

MethodError: Cannot convert an object of type Array{Array{Pair{String,Any},1},1} to an object of type PlotlyBase.Plot
This may have arisen from a call to the constructor PlotlyBase.Plot(…),
since type constructors fall back to convert methods.
in plot at PlotlyJS\src\display.jl:66
in #plot#1 at PlotlyJS\src\display.jl:66
in PlotlyBase.Plot at bas

How can this be fixed? Thank you in advance!

trace1 = [
“x” => [1, 2, 3, 4],
“y” => [10, 15, 13, 17],
“type” => “scatter”
]
trace2 = [
“x” => [1, 2, 3, 4],
“y” => [16, 5, 11, 9],
“type” => “scatter”
]

response = Plotly.plot([trace1, trace2], [“filename” => “basic-line”, “fileopt” => “overwrite”])
plot_url = response[“url”]