Skip to content

Commit

Permalink
correction to Juno issue ?
Browse files Browse the repository at this point in the history
  • Loading branch information
fredo-dedup committed Mar 8, 2017
1 parent 8c61c45 commit 1566860
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/atom_integration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@

import Atom, Media

Media.media(VegaLiteVis, Media.Plot)

function Media.render(e::Atom.Editor, plt::VegaLiteVis)
show(plt)
Media.render(e, nothing)
end

Media.render(pane::Atom.PlotPane, plt::VegaLiteVis) = nothing

# tests if wkhtmltoimage is in the path, if yes define rendering in plot pane
try
run(`wkhtmltoimage -V`)

Media.media(VegaLiteVis, Media.Plot)

function Media.render(pane::Atom.PlotPane, plt::VegaLiteVis)
# create a temporary file
tmppath = string(tempname(), ".vegalite.html")
Expand Down

0 comments on commit 1566860

Please sign in to comment.