Issues with initial Plotly calls (from website guide)


#1

I am trying to replicate the Plotting given on the Plotly guide - https://plot.ly/julia/log-plot/ but I keep getting errors:

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”]


#2

I just tried a few examples from this site, too. I think all the examples on the website are broken.