Skip to content
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

JupyterPlot not defined #221

Open
dpsanders opened this issue Sep 10, 2018 · 9 comments
Open

JupyterPlot not defined #221

dpsanders opened this issue Sep 10, 2018 · 9 comments

Comments

@dpsanders
Copy link

I’m trying to use the PlotlyJS backend on Julia 1.0 on Mac, but am getting

UndefVarError: JupyterPlot not defined

Stacktrace:
 [1] _show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/dpsanders/.julia/packages/Plots/EJpx2/src/backends/plotlyjs.jl:61
 [2] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/dpsanders/.julia/packages/Plots/EJpx2/src/output.jl:201
 [3] #sprint#325(::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")}, ::Vararg{Any,N} where N) at ./strings/io.jl:97
 [5] display_dict(::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/dpsanders/.julia/packages/Plots/EJpx2/src/init.jl:76
 [6] #invokelatest#1 at ./essentials.jl:686 [inlined]
 [7] invokelatest at ./essentials.jl:685 [inlined]
 [8] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /Users/dpsanders/.julia/packages/IJulia/k5o7j/src/execute_request.jl:197
 [9] #invokelatest#1 at ./essentials.jl:686 [inlined]
 [10] invokelatest at ./essentials.jl:685 [inlined]
 [11] eventloop(::ZMQ.Socket) at /Users/dpsanders/.julia/packages/IJulia/k5o7j/src/eventloop.jl:8
 [12] (::getfield(IJulia, Symbol("##12#15")))() at ./task.jl:259
@sglyon
Copy link
Member

sglyon commented Sep 10, 2018

The plotlyjs backend for Plots.jl is close to ready, but not quite there.

See here for status: JuliaPlots/Plots.jl#1730

In the mean time you can try using just PlotlyJS by itself, or see if another plots backend works for you.

Hopefully everything is running smoothly in the next couple of days

@dpsanders
Copy link
Author

OK, thanks a lot - sorry, I didn't realise that the backend was not released at the same time.

@dpsanders
Copy link
Author

Any update on this?

@sglyon
Copy link
Member

sglyon commented Oct 19, 2018

No, not yet sorry. I don't anticipate it being difficult, but I don't think Plots maintainers or myself have had the time to dig into it

@fpmenninger
Copy link

fpmenninger commented Dec 5, 2018

Coming from above reference: Julia/Plots.jl#1793 with renewed request for fix.

@sglyon
Copy link
Member

sglyon commented Dec 10, 2018

Should not be happening on recent versions of Plots or PlotlyJS

@lwabeke
Copy link

lwabeke commented Dec 14, 2018

I still see this with master from both PlotlyJS and Plots.
I tried to figure out what happened by going through the history.
It seems at during the rework on 27 and 28 Aug, the PlotlyJS/src/displays/ijulia.jl was deleted and the code reworked. But the Plots/backends/plotlyjs.jl file was not updated to work with the new structure.
Unfortunately it is such a big rework, that it isn't obvious to me what the new equivalent to JupyterPlot is in the new code architecture. Thus no quick PR, it will take a bit of time to study what is going on.

@sglyon
Copy link
Member

sglyon commented Dec 14, 2018

@lwabeke could you please provide a link to the file and line in Plots.jl that still uses JupyterPlot?

@lwabeke
Copy link

lwabeke commented Dec 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants