Merge pull request #1874 from pfitzseb/sp/displayfixagain
insert PlotDisplay directly after REPLDisplay
This commit is contained in:
commit
155ac91385
@ -1,3 +1,5 @@
|
|||||||
|
using REPL
|
||||||
|
|
||||||
const use_local_dependencies = Ref(false)
|
const use_local_dependencies = Ref(false)
|
||||||
|
|
||||||
function __init__()
|
function __init__()
|
||||||
@ -10,13 +12,14 @@ function __init__()
|
|||||||
k == :theme || default(k, v)
|
k == :theme || default(k, v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
pushdisplay(PlotsDisplay())
|
|
||||||
|
insert!(Base.Multimedia.displays, findlast(x -> x isa Base.TextDisplay || x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotsDisplay())
|
||||||
|
|
||||||
atreplinit(i -> begin
|
atreplinit(i -> begin
|
||||||
if PlotDisplay() in Base.Multimedia.displays
|
while PlotDisplay() in Base.Multimedia.displays
|
||||||
popdisplay(PlotsDisplay())
|
popdisplay(PlotsDisplay())
|
||||||
end
|
end
|
||||||
pushdisplay(PlotsDisplay())
|
insert!(Base.Multimedia.displays, findlast(x -> x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotsDisplay())
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@require HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" include(joinpath(@__DIR__, "backends", "hdf5.jl"))
|
@require HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" include(joinpath(@__DIR__, "backends", "hdf5.jl"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user