-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
[BUG] Plots don't render using Plotly in v1.37 ("_display is not defined for this backend") #4583
Comments
I know nothing about The issues you linked are unrelated, since they have been reported for the |
Yes. That went even worse. After installing PlotlyKaleido, running |
Does it work in Plots v1.36 ? That you get the warning shows, that it doesn't find those packages. However, display should work without these |
Can confirm this is an regression of 1.37.0: (@plots1.0) pkg> st Plots
Status `~/.julia/environments/plots1.0/Project.toml`
⌃ [91a5bcdd] Plots v1.36.1
Info Packages marked with ⌃ have new versions available
julia> using Plots; plotly(); plot(rand(10))
┌ Warning: For saving to png with the `Plotly` backend `PlotlyBase` and `PlotlyKaleido` need to be installed.
│ err =
│ ArgumentError: Package PlotlyKaleido not found in current path.
│ - Run `import Pkg; Pkg.add("PlotlyKaleido")` to install the PlotlyKaleido package.
└ @ Plots ~/.julia/packages/Plots/gzYVM/src/backends.jl:420
julia> Wird in einer aktuellen Browsersitzung geöffnet. (@plots1.0) pkg> st Plots
Status `~/.julia/environments/plots1.0/Project.toml`
[91a5bcdd] Plots v1.37.0
julia> using Plots; plotly(); plot(rand(10))
[ Info: Precompiling PlotlyBase [a03496cd-edff-5a9b-9e67-9cda94a718b5]
┌ Warning: For saving to png with the `Plotly` backend `PlotlyBase` and `PlotlyKaleido` need to be installed.
│ err =
│ ArgumentError: Package PlotlyKaleido not found in current path.
│ - Run `import Pkg; Pkg.add("PlotlyKaleido")` to install the PlotlyKaleido package.
└ @ Plots ~/.julia/packages/Plots/m8l21/src/backends.jl:508
┌ Warning: _display is not defined for this backend. |
I don't understand this: how do you expect the backend to work if the plotly dependencies are not installed ? |
The javascript part of plotly is installed at installation time via Artifacts |
What ? Where ? Anyway, most certainly introduced by #4566. |
Ah I remembered it wrong. You can get a local version in a scratchspace, see #3067. But its still broken anyways. |
Using Plotly in version 1.37 returns "_display is not defined for this backend" and no plot is rendered. The same error is reported in old issues like #2407 and #2698, but in those issues the problem was calling
plotly()
inside a function. That is not the case here. MWE below, which works just fine in Plots 1.36 but not in 1.37.HOWEVER, there's a weird workaround...
Installing and using PlotlyJS but still running the
plotly()
backend works in 1.37.Backends
This bug occurs on ( insert
x
below )(FYI there's no plotly line in the default issue template.)
Versions
Plots.jl version: 1.37
Backend version (
]st -m <backend(s)>
): not relevant, Plotly built-inOutput of
versioninfo()
:The text was updated successfully, but these errors were encountered: