Skip to content

Commit

Permalink
Merge pull request #162 from pfitzseb/patch-1
Browse files Browse the repository at this point in the history
fix Atom and IJulia integration
  • Loading branch information
jheinen committed Oct 12, 2018
2 parents e972de2 + d01c7a0 commit c7dc259
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/GR.jl
Expand Up @@ -206,15 +206,8 @@ else
const libGR3 = "libGR3.so"
end


@static if VERSION > v"0.7-"
isijulia() = :IJulia in nameof.(collect(values(Base.loaded_modules)))
isatom() = :Atom in nameof.(collect(values(Base.loaded_modules)))
else
isijulia() = isdefined(Main, :IJulia) && isdefined(Main.IJulia, :clear_output)
isatom() = isdefined(Main, :Atom) && Main.Atom.isconnected()
end

isijulia() = isdefined(Main, :IJulia) && isdefined(Main.IJulia, :clear_output)
isatom() = isdefined(Main, :Atom) && Main.Atom.isconnected()

function __init__()
global display_name, mime_type, file_path
Expand Down

0 comments on commit c7dc259

Please sign in to comment.