PlotlyJS error when plotting in Emacs running in WSL

Is this a known issue?

ERROR: IOError: connect: connection refused (ECONNREFUSED)
Stacktrace:
  [1] wait_connected
    @ /snap/julia/113/share/julia/stdlib/v1.11/Sockets/src/Sockets.jl:528
  [2] connect
    @ /snap/julia/113/share/julia/stdlib/v1.11/Sockets/src/Sockets.jl:563 [inlined]
  [3] connect(addr::Sockets.IPv4, port::Int64)
    @ Sockets /snap/julia/113/share/julia/stdlib/v1.11/Sockets/src/Sockets.jl:549
  [4] try_connect(::Sockets.IPv4, ::Vararg{Any}; interval::Float64, attempts::Int64)
    @ Blink.AtomShell ~/.julia/packages/Blink/tnO3a/src/AtomShell/process.jl:77
  [5] try_connect
    @ ~/.julia/packages/Blink/tnO3a/src/AtomShell/process.jl:74 [inlined]
  [6] init(; debug::Bool)
    @ Blink.AtomShell ~/.julia/packages/Blink/tnO3a/src/AtomShell/process.jl:91
  [7] init
    @ ~/.julia/packages/Blink/tnO3a/src/AtomShell/process.jl:85 [inlined]
  [8] #shell#6
    @ ~/.julia/packages/Blink/tnO3a/src/AtomShell/process.jl:147 [inlined]
  [9] shell
    @ ~/.julia/packages/Blink/tnO3a/src/AtomShell/process.jl:138 [inlined]
 [10] Blink.AtomShell.Window(args::Dict{String, Int64})
    @ Blink.AtomShell ~/.julia/packages/Blink/tnO3a/src/AtomShell/window.jl:100
 [11] display_blink(p::PlotlyJS.SyncPlot)
    @ PlotlyJS ~/.julia/packages/PlotlyJS/86P7B/src/display.jl:169
 [12] display(::PlotlyJS.PlotlyJSDisplay, p::PlotlyJS.SyncPlot)
    @ PlotlyJS ~/.julia/packages/PlotlyJS/86P7B/src/display.jl:160
 [13] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:340

The same thing happens with 1.11.2 not running in a snap.

Edit: Issue reported. Connection problem on WSL · Issue #492 · JuliaPlots/PlotlyJS.jl · GitHub

1 Like