# Intro to Julia course: Plotting: plotlyjs yields blank?

**URL:** https://discourse.julialang.org/t/intro-to-julia-course-plotting-plotlyjs-yields-blank/74526
**Category:** New to Julia
**Created:** [January 13, 2022, 4:37am UTC](https://discourse.julialang.org/t/intro-to-julia-course-plotting-plotlyjs-yields-blank/74526 "2022-01-13T04:37:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![drscotthawley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drscotthawley/32/32731_2.png) [@drscotthawley](https://discourse.julialang.org/u/drscotthawley)
#### Post date: [January 13, 2022, 4:37am UTC](https://discourse.julialang.org/t/intro-to-julia-course-plotting-plotlyjs-yields-blank/74526/1 "2022-01-13T04:37:38Z")

</div>

Hi, during the lecture on plotting, [Plotting | JuliaAcademy](https://juliaacademy.com/courses/375479/lectures/5863640) (ca. 3 minutes in), she switches over to the plotlyjs() backend.  
When I try that, I get only a blank area instead of a plot.  
This is whether I use the “pirates” example, or the “x^2” example, as in:

```nohighlight
using Plots
x = -10:10
y = x.^2
plotlyjs()
plot(x,y, label="line")
scatter!(x,y, label="scatter")

```

If I do the gr() backend it works fine, but with plotlyjs() it’s just a big blank space.

Earlier I was getting an error message about the WebIO extension not being installed, but I exited jupyter lab, went to my shell, ran `python3 -m pip install --upgrade webio_jupyter_extension`, restarted jupyter lab, re-ran the notebook, and then the error went away, and now I just see a big blank space.

How to fix this?

Btw, as per [the troubleshooting instructions](https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/), here’s the check that the webio extension is installed:

```nohighlight
$ jupyter labextension list
JupyterLab v3.2.7
/home/shawley/envs/fastproaudio/share/jupyter/labextensions
        webio-jupyterlab-provider v0.1.0 enabled OK (python, webio_jupyter_extension)
        @jupyter-widgets/jupyterlab-manager v3.0.1 enabled OK (python, jupyterlab_widgets)

```

I’m not using any --user pip installations, and I made sure to install the webio extension and run jupyterlab in the same environment:

```julia
python3 -m pip install webio_jupyter_extension
python3 -m jupyterlab

```

…still just a big ol’ blank area for the plot.

---

<div class="post-metadata">

### Author: ![drscotthawley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drscotthawley/32/32731_2.png) [@drscotthawley](https://discourse.julialang.org/u/drscotthawley)
#### Post date: [January 13, 2022, 5:06am UTC](https://discourse.julialang.org/t/intro-to-julia-course-plotting-plotlyjs-yields-blank/74526/2 "2022-01-13T05:06:11Z")

</div>

**SOLVED.**

The course lecture doesn’t tell you, and the troubleshooting page doesn’t tell you, but the [README](https://github.com/JuliaPlots/PlotlyJS.jl) file for the plotlyjs() _does_ tell you:

You need to run `jupyter labextension install jupyterlab-plotly` from the command line.

After doing that (and restarting jupyter lab, and re-running the code), everything works. 🥳
