# PlotlyJS plot configuration settings in VSCode

**URL:** <https://discourse.julialang.org/t/plotlyjs-plot-configuration-settings-in-vscode/74312>\
**Category:** VS Code\
**Tags:** plotlyjs\
**Created:** [January 9, 2022, 11:53pm UTC](https://discourse.julialang.org/t/plotlyjs-plot-configuration-settings-in-vscode/74312 "2022-01-09T23:53:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Timothy](https://discourse.julialang.org/u/Timothy)\
**Post date:** [January 9, 2022, 11:53pm UTC](https://discourse.julialang.org/t/plotlyjs-plot-configuration-settings-in-vscode/74312/1 "2022-01-09T23:53:01Z")

</div>

How can I change the plot configuration settings for PlotlyJS when I plot from VSCode (either notebook or editor)?

In VSCode, the configuration settings always seem to be overwritten. For example, the code below should remove the ModeBar, but when displayed in VSCode it always appears with the same configuration (i.e. ModeBar pops up even though I have specified this as false):

```julia
using PlotlyJS

plot(
    scatter(
        mode="markers",
        x=1:10,
        y=1:10
    ),
    config=PlotConfig(displayModeBar=false)
) 

```

I can save the plot to HTML, open it in an internet browser and the plot works as expected. Any thoughts on how I can get this to work correctly in VSCode?  
Note: Currently using Julia 6.1.3 and Julia 1.5.6 extension for VSCode.

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [October 1, 2022, 8:10am UTC](https://discourse.julialang.org/t/plotlyjs-plot-configuration-settings-in-vscode/74312/2 "2022-10-01T08:10:34Z")

</div>

I also struggle, under OS Windows everything works fine, but under Linux the error messages are:

```julia
Failed to load module "canberra-gtk-module"

```

I have already installed the module via

```julia
sudo apt-get install libcanberra-gtk-module

```

The error in the internet browser (that tries to display the plot) is:

```julia
Firefox can’t find the file at /tmp/jl_BpT6F8.plotlyjs-jl.html.

```

The file exists, but it seems to be corrupted. Any ideas?
