Merge pull request #35 from jarvist/master
Add check for Pluto.jl interactive notebook.
This commit is contained in:
commit
03953c0ad6
@ -236,11 +236,12 @@ const sessions = OrderedDict{Symbol, Session}()
|
|||||||
const options = Options()
|
const options = Options()
|
||||||
|
|
||||||
function __init__()
|
function __init__()
|
||||||
# Check whether we are running in a IJulia or Juno session.
|
# Check whether we are running in an IJulia, Juno or Pluto session.
|
||||||
# (copied from Gaston.jl).
|
# (copied from Gaston.jl).
|
||||||
options.gpviewer = !(
|
options.gpviewer = !(
|
||||||
((isdefined(Main, :IJulia) && Main.IJulia.inited) ||
|
((isdefined(Main, :IJulia) && Main.IJulia.inited) ||
|
||||||
(isdefined(Main, :Juno) && Main.Juno.isactive()))
|
(isdefined(Main, :Juno) && Main.Juno.isactive()) ||
|
||||||
|
(isdefined(Main, :PlutoRunner)) )
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user