JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] Plots not displayed in Plots pane with the `Display results in the REPL` option #541

Closed gabrieldansereau closed 4 years ago

gabrieldansereau commented 4 years ago

Possible bug with the Juno Plots pane after upgrading to julia-client@0.12.4, ink@0.12.3, Atom.jl@0.12.10 and Juno.jl@0.8.1.

I usually enable the Result Display Mode: Display results in the REPL option. After the update, when I create a plot and evaluate inline with shift-enter or ctrl-enter, the resulting plot is not displayed in the Plots Pane (it's not displayed at all). It does display correctly when I run the same thing in the REPL though.

Steps to reproduce:

  1. Enable the Result Display Mode: Display results in the REPL option
    # Evaluate inline
    using Plots
    plot()

Calling display(plot()) inline does work to display in the Plots pane. However, calling plot() is sufficient if I change my settings back to Result Display Mode: Float results next to code. Shouldn't the plotting behavior be the same with these two display modes, as it used to?

Downgrading to julia-client@0.11.3, ink@0.11.3, Atom@0.11.3 and Juno@0.7.2 fixed it back for me.

Details

julia> versioninfo()
Julia Version 1.4.0
Commit b8e9a9ecc6 (2020-03-21 16:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, broadwell)
(@v1.4) pkg> st --manifest Plots Atom Juno
Status `~/.julia/environments/v1.4/Manifest.toml`
  [c52e3926] Atom v0.12.10
  [00ebfdb7] CSTParser v2.2.0
  [53a63b46] CodeTools v0.7.0
  [da1fd8a2] CodeTracking v0.5.8
  [d38c429a] Contour v0.5.2
  [33d173f1] DocSeeker v0.4.1
  [c87230d0] FFMPEG v0.3.0
  [53c48c17] FixedPointNumbers v0.7.1
  [08572546] FlameGraphs v0.2.0
  [28b8d3ca] GR v0.48.0
  [4d00f742] GeometryTypes v0.8.2
  [cd3eb016] HTTP v0.8.13
  [9fb69e20] Hiccup v0.2.2
  [682c06a0] JSON v0.21.0
  [98e50ef6] JuliaFormatter v0.3.9
  [aa1ae85d] JuliaInterpreter v0.7.13
  [e5e0dc1b] Juno v0.8.1
  [7c4cb9fa] LNR v0.2.1
  [50d2b5c4] Lazy v0.14.0
  [1914dd2f] MacroTools v0.5.5
  [442fdcdd] Measures v0.3.1
  [e89f7d12] Media v0.5.0
  [77ba4419] NaNMath v0.3.3
  [bac558e1] OrderedCollections v1.1.0
  [ccf2f8ad] PlotThemes v1.0.2
  [995b91a9] PlotUtils v0.6.5
  [91a5bcdd] Plots v0.29.9
  [3cdcf5f2] RecipesBase v0.8.0
  [189a3867] Reexport v0.2.0
  [ae029012] Requires v1.0.1
  [992d4aef] Showoff v0.3.1
  [2913bbd2] StatsBase v0.32.2
  [37b6cedf] Traceur v0.3.0
  [a2a6695c] TreeViews v0.3.0
  [0f1e0344] WebIO v0.8.11
  [104b5d7c] WebSockets v1.5.2
  [2a0f44e3] Base64 
  [ade2ca70] Dates 
  [b77e0a4c] InteractiveUtils 
  [37e2e46d] LinearAlgebra 
  [56ddb016] Logging 
  [d6f4376e] Markdown 
  [44cfe95a] Pkg 
  [de0858da] Printf 
  [9abbd945] Profile 
  [3fa0cd96] REPL 
  [9a3f8284] Random 
  [6462fe0b] Sockets 
  [2f01184e] SparseArrays 
  [10745b16] Statistics 
  [cf7118a7] UUIDs