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

Cannot display under Atom/Juno (Julia v0.7.0) #214

Closed
BoundaryValueProblems opened this issue Aug 31, 2018 · 3 comments
Closed

Cannot display under Atom/Juno (Julia v0.7.0) #214

BoundaryValueProblems opened this issue Aug 31, 2018 · 3 comments

Comments

@BoundaryValueProblems
Copy link

I just added the current master branch of PlotlyJS.jl 2a1c128. Under Atom/Juno, I got the following error using genuine PlotlyJS functions (not using Plots.jl). Note that if I run it on Terminal without Atom/Juno, it just works as expected.

Error showing value of type PlotlyJS.SyncPlot:
ERROR: MethodError: no method matching show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Type{MIME{Symbol("text/html")}}, ::PlotlyBase.Plot{GenericTrace{Dict{Symbol,Any}}}; js=:local)
Closest candidates are:
  show(::IO, ::MIME{Symbol("text/plain")}, ::PlotlyBase.Plot) at /Users/xxx/.julia/packages/PlotlyBase/prOMV/src/PlotlyBase.jl:42 got unsupported keyword argument "js"
  show(::IO, ::MIME{Symbol("text/plain")}, ::Any) at sysimg.jl:195 got unsupported keyword argument "js"
  show(::IO, ::DataType) at show.jl:437 got unsupported keyword argument "js"
  ...
Stacktrace:
 [1] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("application/juno+plotpane")}, ::PlotlyBase.Plot{GenericTrace{Dict{Symbol,Any}}}) at /Users/xxx/.julia/packages/PlotlyJS/Z7d5n/src/display.jl:37
 [2] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("application/juno+plotpane")}, ::PlotlyJS.SyncPlot) at /Users/xxx/.julia/packages/PlotlyJS/Z7d5n/src/display.jl:58
 [3] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::String, ::PlotlyJS.SyncPlot) at ./multimedia.jl:79
 [4] displayinplotpane(::PlotlyJS.SyncPlot) at /Users/xxx/.julia/packages/Atom/Pab0Z/src/display/showdisplay.jl:26
 [5] display(::Atom.JunoDisplay, ::PlotlyJS.SyncPlot) at /Users/xxx/.julia/packages/Atom/Pab0Z/src/display/showdisplay.jl:55
 [6] display(::PlotlyJS.SyncPlot) at ./multimedia.jl:287
 [7] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [8] invokelatest at ./essentials.jl:690 [inlined]
 [9] print_response(::IO, ::Any, ::Any, ::Bool, ::Bool, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:154
 [10] print_response(::REPL.AbstractREPL, ::Any, ::Any, ::Bool, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:139
 [11] (::getfield(REPL, Symbol("#do_respond#40")){Bool,getfield(Atom, Symbol("##162#163")),REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:708
 [12] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [13] invokelatest at ./essentials.jl:690 [inlined]
 [14] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/LineEdit.jl:2261
 [15] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:1029
 [16] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:191
 [17] (::getfield(Base, Symbol("##831#833")){Bool,Bool,Bool,Bool})(::Module) at ./logging.jl:311
 [18] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [19] invokelatest at ./essentials.jl:690 [inlined]
 [20] macro expansion at ./logging.jl:308 [inlined]
 [21] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:340
 [22] exec_options(::Base.JLOptions) at ./client.jl:252
 [23] _start() at ./client.jl:432
@VPetukhov
Copy link
Contributor

VPetukhov commented Sep 1, 2018

Not sure if it's the same issue, but I can't see plots in Jupyter. This code just doesn't show anything:

PlotlyJS.plot(PlotlyJS.scatter(x=[1, 2], y=[1, 2]))

And this produces the error:

display(PlotlyJS.plot(PlotlyJS.scatter(x=[1, 2], y=[1, 2])))

IOError: connect: connection refused (ECONNREFUSED)

UPDATE: sorry, after I updated WebIO, Blink, PlotlyBase and Plotly by hands, problem disappeared.

@sglyon
Copy link
Member

sglyon commented Sep 1, 2018

Thank you -- sorry for the mess right now.

Things will smooth out very soon if you hang with us!

@sglyon
Copy link
Member

sglyon commented Sep 6, 2018

Version 0.11.0 of this package has been released and is compatible with Julia 1.0

@sglyon sglyon closed this as completed Sep 6, 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

3 participants