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
PlotlyJS problems #1756
Comments
@mkborregaard , I just installed Julia v1.0 instead of v0.7, with Plots.jl v0.20.2, PlotlyJS.jl v0.11.1. Under Juno/Atom, I have the same problem (the 2nd part of the above posting by @albi3ro) using plotlyjs backend: it generates: |
I want to report the current status with Plots.jl v0.20.3, PlotlyJS.jl v0.11.1, with Atom v1.31.1.
Hence, at this point of time, we can use |
@daschw and @sglyon , I just wanted to update what I found out with Plots.jl v0.20.6 and PlotlyJS v0.11.2. I could finally plot things under On the other hand, as @daschw indicated, when I ran things from REPL on a terminal, then the plotting window showed up and the interactive menu items were there, but the plots themselves were incorrect (in fact, no plots but the coordinate grids only) on my Mac. However, somehow, when I ran things on my Windows machine from REPL on a terminal, it worked properly. |
@BoundaryValueProblems thank you for the updates here and for patiently helping us along. Is what was described in the previous message the current status quo with the latest versions of Plots and PlotlyJS? |
@sglyon : yes, it is the current status quo with the latest versions of Plots.jl v0.20.6 and PlotlyJS.jl v0.11.2. Atom/Juno is also up-to-date: Atom v1.31.2; Juno/julia-client v0.7.8. |
As @mkborregaard suggested this is a duplicate of #1728 and #1749. I'll leave this open for now, though, so we don't loose the valuable reports from @BoundaryValueProblems . |
@daschw & @sglyon ; it's been a while for the plotlyjs backend to be in this status even though several packages have been updated since I posted last time (e.g., Plots v0.21.0; PlotlyJS 0.12.0; WebIO 0.6.0; Atom 1.32.2; atom-julia-client 0.7.10) : It still doesn't work if you run it from Atom/Juno (it plots, but no interactive menu is shown at the top). |
@daschw & @sglyon, any updates on this long standing issue of |
@daschw & @sglyon: I just want to update the current status: Plots: v0.23.0; PlotlyJS: v0.12.3; WebIO: v0.7.0; Atom: v1.34.0; atom-julia-client v0.7.13. Now, if I run julia from a terminal, then things get better than before, i.e., it opens a graphics window and I can interact with the graphics object in a much smoother way than before, e.g., rotations, zooming, etc. However, under Atom/Juno, the interaction menu does not show at the top of the figure, and I cannot interact with the graphics object. What would be the standing block of preventing this interactivity under Atom/Juno? |
also cc @pfitzseb |
The problem here is that Juno doesn't support WebIO 0.7 (which is the same as 0.4.2) right now and I haven't yet had the energy to fix that yet again ;) Things might work again if you pin WebIO to 0.6.2. |
@pfitzseb ; I just tried WebIO 0.6.2 by pinning it. But it still didn't show the interactive menu :-( |
@daschw, @sglyon, and @mkborregaard : I just want to update a bit. I understand that the plotlyjs backend does not work under Juno/Atom at this point. Now, today, I tested the plotlyjs backend under IJulia v1.17.0/Jupyter. It does not work either. No plotting. But it didn't throw any errors. |
Hopefully closed in #2131 |
@daschw ; Thanks for your effort. However, it works neither on my MacBook Pro nor on my Windows 10 machine. It displays the figure in the Atom/Juno plot pane, but the interaction panel on the top still does not show up. I use the latest versions of the julia system + Atom/Juno, i.e., Julia: v1.1.1, Atom: v1.39.1, ink: v0.10.12, julia-client: v0.9.4.
Also a large number of warnings show up when I ran
Thanks a lot for your further help! If my setting is not unusual, please re-open this issue. |
@daschw, I just rebuilt the packages via |
@daschw ; OK, the problem seems |
You're right, I have not found a workaround for that. So in Juno with Plots and plotlyjs() only a non-interactive PNG is displayed. I closed this issue, because the originally reported problem, which was not related interactivity in Juno, is now fixed. Feel free to open a new issue specifically for Juno/PlotlyJS/Interactivity issues to keep track of that. |
Running Julia v0.7 in a Jupyter notebook.
Upon running
using Plots; plotlyjs(); plot(x->x^2)
I get
`UndefVarError: JupyterPlot not defined
Stacktrace:
[1] _show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/mira/.julia/packages/Plots/ex9On/src/backends/plotlyjs.jl:61
[2] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/mira/.julia/packages/Plots/ex9On/src/output.jl:206
[3] #sprint#329(::Nothing, ::Int64, ::Function, ::Function, ::MIME{Symbol("text/html")}, ::Vararg{Any,N} where N) at ./strings/io.jl:101
[4] sprint(::Function, ::MIME{Symbol("text/html")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at ./strings/io.jl:97
[5] display_dict(::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/mira/.julia/packages/Plots/ex9On/src/init.jl:59
[6] #invokelatest#1 at ./essentials.jl:691 [inlined]
[7] invokelatest at ./essentials.jl:690 [inlined]
[8] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /Users/mira/.julia/packages/IJulia/4VL8h/src/execute_request.jl:197
[9] #invokelatest#1 at ./essentials.jl:691 [inlined]
[10] invokelatest at ./essentials.jl:690 [inlined]
[11] eventloop(::ZMQ.Socket) at /Users/mira/.julia/packages/IJulia/4VL8h/src/eventloop.jl:8
[12] (::getfield(IJulia, Symbol("##12#15")))() at ./task.jl:262
upon reruning
plot(x->x^2)`I get
`type SyncPlot has no field view
Stacktrace:
[1] getproperty(::Any, ::Symbol) at ./sysimg.jl:18
[2] _create_backend_figure(::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/mira/.julia/packages/Plots/ex9On/src/backends/plotlyjs.jl:15
[3] #invokelatest#1 at ./essentials.jl:691 [inlined]
[4] invokelatest at ./essentials.jl:690 [inlined]
[5] _plot_setup(::Plots.Plot{Plots.PlotlyJSBackend}, ::Dict{Symbol,Any}, ::Array{Dict{Symbol,Any},1}) at /Users/mira/.julia/packages/Plots/ex9On/src/pipeline.jl:215
[6] _plot!(::Plots.Plot{Plots.PlotlyJSBackend}, ::Dict{Symbol,Any}, ::Tuple{getfield(Main, Symbol("##5#6"))}) at ./logging.jl:313
[7] #plot#136(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function) at /Users/mira/.julia/packages/Plots/ex9On/src/plot.jl:57
[8] plot(::Function) at /Users/mira/.julia/packages/Plots/ex9On/src/plot.jl:51
[9] top-level scope at In[2]:1
`
Please give me my plotting utility back soon ....
The text was updated successfully, but these errors were encountered: