I’m trying to modify the
Base.show function to show images in the plot pane of Atom/Juno following the instructions there. But nothing shows in my plot pane when I execute the commands (either directly from the atom REPL or by executing lines in a file opened with atom)
struct Baz fn::String end Base.show(io::IO, ::MIME"image/png", b::Baz) = write(io, read(b.fn)) Baz("sandbox/test.png")
when running it, the plot pane stays empty (I’m showing the last line to show that the file exists). Not sure what I’m doing wrong? I also tried to copy paste the HTML example but same thing happened.
Julia Version 1.1.0-DEV.663 Commit 26f1ba56f9 (2018-11-15 22:17 UTC) Platform Info: OS: macOS (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake) Environment: JULIA_EDITOR = atom -a JULIA_NUM_THREADS = 2
and up to date Atom.jl + Juno.jl