Skip to content

Plotlyjs econnrefused workaround #5100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
GKS_ENCODING: "utf8"
GKSwstype: "nul"
JULIA_CONDAPKG_BACKEND: "MicroMamba"
PLOTS_PLOTLYJS_UNSAFE_ELECTRON: "true"
MPLBACKEND: "agg"
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
Expand Down
7 changes: 7 additions & 0 deletions src/backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,13 @@ const _pgfplots_scale = [:identity, :ln, :log2, :log10]

# ------------------------------------------------------------------------------
# plotlyjs
_post_imports(::PlotlyJSBackend) = @eval begin
const PlotlyJS = Main.PlotlyJS
if Plots.bool_env("PLOTS_PLOTLYJS_UNSAFE_ELECTRON", "false")
(Sys.islinux() && isdefined(PlotlyJS, :unsafe_electron)) &&
PlotlyJS.unsafe_electron()
end
end

const _plotlyjs_attr = _plotly_attr
const _plotlyjs_seriestype = _plotly_seriestype
Expand Down
Loading