# Plotly not working on MacOS

**URL:** <https://discourse.julialang.org/t/plotly-not-working-on-macos/14368>\
**Category:** New to Julia\
**Tags:** plotting, installation\
**Created:** [August 31, 2018, 2:51pm UTC](https://discourse.julialang.org/t/plotly-not-working-on-macos/14368 "2018-08-31T14:51:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaap\_Haitsma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaap_haitsma/32/32965_2.png) [@Jaap\_Haitsma](https://discourse.julialang.org/u/Jaap_Haitsma)\
**Post date:** [August 31, 2018, 2:51pm UTC](https://discourse.julialang.org/t/plotly-not-working-on-macos/14368/1 "2018-08-31T14:51:11Z")

</div>

Taking my first steps with Julia and am really excited about it. However I can’t get Plotly plotting to work on MacOS. It works fine with GR backend

Here’s what I do  
[/code]  
using Plots  
plotly() # Choose the Plotly.jl backend for web interactivity  
plot(rand(5,5),linewidth=2,title=“My Plot”)  
[/code]

results in an error

```julia
Error showing value of type Plots.Plot{Plots.PlotlyBackend}:
ERROR: UndefVarError: plotattributes not defined
```

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 31, 2018, 2:57pm UTC](https://discourse.julialang.org/t/plotly-not-working-on-macos/14368/2 "2018-08-31T14:57:50Z")

</div>

Have you added the Plotly.jl/PlotlyJS.jl package? I’m not sure 0.7/1.0 is working right now for Plotly though - at least PlotlyJS doesn’t want to build for me.

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [August 31, 2018, 3:31pm UTC](https://discourse.julialang.org/t/plotly-not-working-on-macos/14368/3 "2018-08-31T15:31:49Z")

</div>

Plots still is in a bit of a transition phase for Julia 1.0 where most things work but there is the occasional bug, so the `Plotly` integration seems to be broken but should be fixable quickly (I’ve opened an issue [here](https://github.com/JuliaPlots/Plots.jl/issues/1713)). Probably better to stick with GR for the time being.

EDIT: turns out this is fixed already on Plots master, so you can also do `] add Plots#master` to get the fix right now

---

<div class="post-metadata">

**Author:** ![Jaap\_Haitsma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaap_haitsma/32/32965_2.png) [@Jaap\_Haitsma](https://discourse.julialang.org/u/Jaap_Haitsma)\
**Post date:** [August 31, 2018, 6:58pm UTC](https://discourse.julialang.org/t/plotly-not-working-on-macos/14368/4 "2018-08-31T18:58:02Z")

</div>

Sorry I did not. I assumed Plotly was part of Plots. When adding I ran into some issues. First HttpParser did not build. Fixed that by using the fix proposed in this bug report [https://github.com/JuliaWeb/HttpParser.jl/issues/89](https://github.com/JuliaWeb/HttpParser.jl/issues/89) and then had to move Plotly and PlotlyJS to master. It all builds fine but as soon as I want to plot it still throws the same error
