-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi @MikeInnes. I just started using Atom yesterday, and I was attempting to get Plots working with the PlotPane. I made an attempt at it, calling this method from Plots.__init__:
function setup_atom()
@require Atom begin
@eval begin
import Atom
Atom.displaysize(::AbstractPlot) = (535, 379)
Atom.displaytitle(::AbstractPlot) = "Plots.jl"
Atom.@render Atom.PlotPane p::Plot begin
x, y = Atom.@rpc Atom.plotsize()
plot!(p, size=(x,y)) # changes the size of the Plots.Plot
Atom.div(Dict(:style=>"background: white"), Atom.HTML(stringmime("text/html", p)))
end
end
end
endbut I end up with this error:
WARNING: Error requiring Atom from Plots:
UndefVarError: @d not defined
in eval at /home/tom/.julia/v0.4/Plots/src/Plots.jl:4 (repeats 2 times)
in anonymous at /home/tom/.julia/v0.4/Requires/src/require.jl:60
in err at /home/tom/.julia/v0.4/Requires/src/require.jl:47
in anonymous at /home/tom/.julia/v0.4/Requires/src/require.jl:59
in withpath at /home/tom/.julia/v0.4/Requires/src/require.jl:37
in anonymous at /home/tom/.julia/v0.4/Requires/src/require.jl:58
in listenmod at /home/tom/.julia/v0.4/Requires/src/require.jl:21
[inlined code] from /home/tom/.julia/v0.4/Requires/src/require.jl:57
in setup_atom at /home/tom/.julia/v0.4/Plots/src/output.jl:127
in __init__ at /home/tom/.julia/v0.4/Plots/src/Plots.jl:243
in _require_from_serialized at loading.jl:84
in _require_from_serialized at ./loading.jl:109
in require at loading.jl:219
[inlined code] from /home/tom/.julia/v0.4/Requires/src/require.jl:11
in require at /home/tom/.julia/v0.4/Requires/src/hook.jl:17
in include_string at /home/tom/.julia/v0.4/CodeTools/src/eval.jl:28
in include_string at /home/tom/.julia/v0.4/CodeTools/src/eval.jl:32
[inlined code] from /home/tom/.julia/v0.4/Atom/src/eval.jl:39
in anonymous at /home/tom/.julia/v0.4/Atom/src/eval.jl:62
in withpath at /home/tom/.julia/v0.4/Requires/src/require.jl:37
in withpath at /home/tom/.julia/v0.4/Atom/src/eval.jl:53
[inlined code] from /home/tom/.julia/v0.4/Atom/src/eval.jl:61
in anonymous at task.jl:58
Any thoughts to debug it? It seems like one of the Atom packages is messing with eval internals, but it's kinda incomprehensible to me.
Side note... comments in the code would be much appreciated!
Metadata
Metadata
Assignees
Labels
No labels