If we define a new show method for a custom class and then create a variable with said class, Juno will keep printing the variable to the REPL. Here is a MWE:
import Base.show
mutable struct foo
bar
end
function show(io::IO, a::foo)
print(a.bar)
return
end
t = foo(1)
If we run this, it will print 11 to the REPL (which is already wrong, since it’s showing t twice). Furthermore, all following REPL prompts will show julia>1.
This does not happen if we execute the code directly from the REPL.