Thanks for taking the time, here’s a simple example where this happens.
I use the DifferentialEquations package because I’m having this problem when plotting the solution object. Once again, works in the REPL run from the terminal, no graphical output when run in julia-repl in emacs.
using DifferentialEquations, Plots
exp_growth(u,p,t) = 0.95u
solution = solve(ODEProblem(exp_growth,
1.0,
(0.0,1.0)
)
)
plot(solution)
EDIT: I also checked Base.Multimedia.displays, but I’m in over my head on this, I’m going to copy both here anyway.
Terminal:
3-element Vector{AbstractDisplay}:
TextDisplay(Base.TTY(RawFD(13) open, 0 bytes waiting))
REPL.REPLDisplay{REPL.LineEditREPL}(REPL.LineEditREPL(REPL.Terminals.TTYTerminal("xterm-256color", Base.TTY(RawFD(10) paused, 0 bytes waiting), Base.TTY(RawFD(13) open, 0 bytes waiting), Base.TTY(RawFD(15) open, 0 bytes waiting)), true, "\e[32m", "\e[0m", "\e[0m", "\e[31m", "\e[33m", true, false, false, true, false, nothing, REPL.Options(true, Dict{Any, Any}[], 8, 100, 0.2, 0.2, 0.2, 1.0, ["\e[90m"], true, true, true, false, true, false, false, 0.005, 0.0, Dict{Symbol, Any}()), MI State ("Prompt(\"julia> \",...)" active), [("./Base.jl", 35), ("REPL[7]", 1)], REPL.LineEdit.ModalInterface(REPL.LineEdit.TextInterface["Prompt(\"julia> \",...)", "Prompt(\"shell> \",...)", "Prompt(\"help?> \",...)", REPL.LineEdit.HistoryPrompt(REPL.REPLHistoryProvider([**history array here, I erased it**], IOStream(<file /home/tomas/.julia/logs/repl_history.jl>), 314, 322, 320, IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1), "Prompt(\"julia> \",...)", Dict{Symbol, REPL.LineEdit.Prompt}(:julia => "Prompt(\"julia> \",...)", :help => "Prompt(\"help?> \",...)", :pkg => "Prompt(\"(@v1.7) pkg> \",...)", :shell => "Prompt(\"shell> \",...)"), [:pkg, :julia, :julia, :julia, :julia, :julia, :pkg, :julia, :julia, :julia … :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia]), "Prompt(\"julia> \",...)", REPL.LineEdit.EmptyCompletionProvider(), Dict{Char, Any}('\x0e' => REPL.LineEdit.var"#239#247"(), '\x10' => REPL.LineEdit.var"#238#246"(), '\U10f7ff' => REPL.LineEdit.var"#242#250"(), '\e' => Dict{Char, Any}('[' => Dict{Char, Any}('1' => Dict{Char, Any}('1' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '7' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '6' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '5' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), 'h' => REPL.LineEdit.var"#242#250"(), '4' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '8' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '~' => REPL.LineEdit.var"#242#250"(), ';' => Dict{Char, Any}('2' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"()), '3' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"()), '5' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"())), '9' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"())…), '7' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '6' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '5' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), 'B' => REPL.LineEdit.var"#241#249"(), 'A' => REPL.LineEdit.var"#240#248"(), '4' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '8' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '\U10f7ff' => REPL.LineEdit.var"#242#250"(), '9' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"())…), '\U10f7ff' => REPL.LineEdit.var"#242#250"(), 'O' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"())), '\x18' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"()))), "Prompt(\"(@v1.7) pkg> \",...)"]), REPL.REPLBackendRef(Channel{Any}(1), Channel{Any}(1))))
Plots.PlotsDisplay()
Emacs:
3-element Vector{AbstractDisplay}:
TextDisplay(Base.TTY(RawFD(13) open, 0 bytes waiting))
REPL.REPLDisplay{REPL.LineEditREPL}(REPL.LineEditREPL(REPL.Terminals.TTYTerminal("eterm-color", Base.TTY(RawFD(10) paused, 0 bytes waiting), Base.TTY(RawFD(13) open, 0 bytes waiting), Base.TTY(RawFD(15) open, 0 bytes waiting)), true, "\e[32m", "\e[0m", "\e[0m", "\e[31m", "\e[33m", true, false, false, true, false, nothing, REPL.Options(true, Dict{Any, Any}[], 8, 100, 0.2, 0.2, 0.2, 1.0, ["\e[90m"], true, true, true, false, true, false, true, 0.005, 0.0, Dict{Symbol, Any}()), MI State ("Prompt(\"julia> \",...)" active), Tuple{String, Int64}[], REPL.LineEdit.ModalInterface(REPL.LineEdit.TextInterface["Prompt(\"julia> \",...)", "Prompt(\"shell> \",...)", "Prompt(\"help?> \",...)", REPL.LineEdit.HistoryPrompt(REPL.REPLHistoryProvider([**history array here, I erased it**], IOStream(<file /home/tomas/.julia/logs/repl_history.jl>), 313, 316, -1, IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1), nothing, Dict{Symbol, REPL.LineEdit.Prompt}(:julia => "Prompt(\"julia> \",...)", :help => "Prompt(\"help?> \",...)", :pkg => "Prompt(\"(@v1.7) pkg> \",...)", :shell => "Prompt(\"shell> \",...)"), [:pkg, :julia, :julia, :julia, :julia, :julia, :pkg, :julia, :julia, :julia … :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia]), REPL.LatexCompletions(), Dict{Char, Any}('\x10' => REPL.LineEdit.var"#74#105"(), '\x1f' => nothing, '\x0e' => REPL.LineEdit.var"#73#104"(), '\x13' => REPL.LineEdit.var"#49#80"(), '\0' => nothing, '\b' => REPL.LineEdit.var"#53#84"(), '\x7f' => REPL.LineEdit.KeyAlias("\b"), '\x1d' => nothing, '\f' => REPL.LineEdit.var"#52#83"(), '\n' => REPL.LineEdit.var"#50#81"{REPL.LineEdit.HistoryPrompt}(REPL.LineEdit.HistoryPrompt(#= circular reference @-3 =#))…)), REPL.LineEdit.PrefixHistoryPrompt(REPL.REPLHistoryProvider([**history array here, I erased it**], IOStream(<file /home/tomas/.julia/logs/repl_history.jl>), 313, 316, -1, IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1), nothing, Dict{Symbol, REPL.LineEdit.Prompt}(:julia => "Prompt(\"julia> \",...)", :help => "Prompt(\"help?> \",...)", :pkg => "Prompt(\"(@v1.7) pkg> \",...)", :shell => "Prompt(\"shell> \",...)"), [:pkg, :julia, :julia, :julia, :julia, :julia, :pkg, :julia, :julia, :julia … :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia, :julia]), "Prompt(\"julia> \",...)", REPL.LineEdit.EmptyCompletionProvider(), Dict{Char, Any}('\x0e' => REPL.LineEdit.var"#239#247"(), '\x10' => REPL.LineEdit.var"#238#246"(), '\U10f7ff' => REPL.LineEdit.var"#242#250"(), '\e' => Dict{Char, Any}('[' => Dict{Char, Any}('1' => Dict{Char, Any}('1' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '7' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '6' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '5' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), 'h' => REPL.LineEdit.var"#242#250"(), '4' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '8' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '~' => REPL.LineEdit.var"#242#250"(), ';' => Dict{Char, Any}('2' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"()), '3' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"()), '5' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"())), '9' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"())…), '7' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '6' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '5' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), 'B' => REPL.LineEdit.var"#241#249"(), 'A' => REPL.LineEdit.var"#240#248"(), '4' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '8' => Dict{Char, Any}('~' => REPL.LineEdit.var"#242#250"(), 'h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"()), '\U10f7ff' => REPL.LineEdit.var"#242#250"(), '9' => Dict{Char, Any}('h' => REPL.LineEdit.var"#242#250"(), 'l' => REPL.LineEdit.var"#242#250"())…), '\U10f7ff' => REPL.LineEdit.var"#242#250"(), 'O' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"())), '\x18' => Dict{Char, Any}('\U10f7ff' => REPL.LineEdit.var"#242#250"()))), "Prompt(\"(@v1.7) pkg> \",...)"]), REPL.REPLBackendRef(Channel{Any}(1), Channel{Any}(1))))
Plots.PlotsDisplay()