-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
UndefVarError using PlotlyJS backend #1793
Comments
Could you post the code to reproduce the error? What packages are you |
using Plots
plotlyjs()
plot(Plots.fakedata(50,5),w=3) The problem appears only with IJulia and Jupyter |
Trying to comment out in this line Plots.jl/src/backends/plotlyjs.jl Line 54 in 45b5b33
the offending _use_remote :
if isijulia() # && !_use_remote[]
write(io, PlotlyJS.html_body(PlotlyJS.JupyterPlot(plt.o))) yields UndefVarError: JupyterPlot not defined This one is known: |
Same behavior here. UndefVarError: _use_remote not defined And if comment out in line 54 as @ederag above, receive same error of UndefVarError: JupyterPlot not defined and reinforcing reference: |
Is there any solution to this issue? I am having the same |
I think you can do a match + replace a la: |
@SimonDanisch I found this line: if isijulia() && !_use_remote[] and replaced it with: if isijulia() && use_local_dependencies[] Now I don't get an error, but no plot is shown. I have also replaced the other occurrences but I think they are unrelated. |
This fixed it for me. For those trying to do the same, the reference code is actually in the Plots.jl repo in |
Closed in #1885 |
Hello
I'm new to Julia and I'm trying to plot offline using PlotlyJS module.
Basic plot gives me this error. Surely I'm missing some important setup part but I can't debug this (at least not without spending many hours)
The text was updated successfully, but these errors were encountered: