# PlotlyJS causes errors, can't figure out how to use PlotlyLight - how to use Plotly from Julia?

**URL:** <https://discourse.julialang.org/t/plotlyjs-causes-errors-cant-figure-out-how-to-use-plotlylight-how-to-use-plotly-from-julia/108853>\
**Category:** New to Julia\
**Tags:** plotlyjs\
**Created:** [January 16, 2024, 4:57am UTC](https://discourse.julialang.org/t/plotlyjs-causes-errors-cant-figure-out-how-to-use-plotlylight-how-to-use-plotly-from-julia/108853 "2024-01-16T04:57:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![VivMendes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vivmendes/32/16477_2.png) [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Post date:** [January 16, 2024, 12:50pm UTC](https://discourse.julialang.org/t/plotlyjs-causes-errors-cant-figure-out-how-to-use-plotlylight-how-to-use-plotly-from-julia/108853/3 "2024-01-16T12:50:10Z")

</div>

@jojob68 , welcome.

What editor are you using: VScode, Pluto, or any other?

There is no problem with plotting with PlotlyJS.jl if you use this package inside the VScode editor. If you type and run sequentially:

```julia
using PlotlyJS
aa=plot(randn(300))
savefig(aa, "aa.png")

```

the plot will first appear on the monitor, and then you can save it as you wish (PNG, PDF, SVG,…)

If you use Pluto.jl (a Julia package itself and a remarkable IDE), you should not use PlotlyJS.jl directly; otherwise, you will get the usual Kaleido problems. In Pluto, if you want to plot with the functionalities of PlotlyJS.jl, it would be best if you used PlotlyBase.jl instead, which is the partner of PlotlyJS that, in fact, renders the plots created by the former. For more details on how to use PlotlyJS.jl inside Pluto, check this thread [Cannot use PlotlyJS](https://discourse.julialang.org/t/cannot-use-plotlyjs/105057/5) .

Finally, if you want to use PlotlyJS and not bother about what IDE you should use, you can use PlutoPlotly.jl, a package developed by @disberd that mimics the functionalities of PlotlyJS and always works out of the box.

I do a lot of plotting using the functionalities of PlotlyJS.jl and it do not regret it. It is a wonderful package.

---

_[View the full topic](https://discourse.julialang.org/t/plotlyjs-causes-errors-cant-figure-out-how-to-use-plotlylight-how-to-use-plotly-from-julia/108853)._
