# Atom stopped open plots in Julia

**URL:** https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279
**Category:** Juno
**Created:** [December 4, 2018, 1:32pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279 "2018-12-04T13:32:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![MMalakhov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mmalakhov/32/10138_2.png) [@MMalakhov](https://discourse.julialang.org/u/MMalakhov)
#### Post date: [December 4, 2018, 1:32pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/1 "2018-12-04T13:32:35Z")

</div>

Hello!  
I’m using Julia and Atom for it, operation system Linux Mint. This morning I pressed “update” button in Atom and typed “] update” in Julia terminal.

So that is all, program is calculating right numbers, but Atom ignores plotting commands. No warnings, no information. REPL behaves exactly like everything is plotting.  
Also plotting in Julia terminal still works. So it should be some problems with Juno and Atom I suppose

This warning emerges only if I try to recompile Julia:  
`[Info: Precompiling Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1] WARNING: Method definition displayable(Atom.JunoDisplay, Base.MIME{Symbol("application/prs.juno.jlpane")}) in module Atom at /home/mikhail/.julia/packages/Atom/v2iqN/src/display/showdisplay.jl:92 overwritten at /home/mikhail/.julia/packages/Atom/v2iqN/src/display/showdisplay.jl:94. WARNING: could not import Base.endof into StringDistances`

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [December 5, 2018, 4:10pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/2 "2018-12-05T16:10:10Z")

</div>

Do you still have this problem with the latest version of Juno?

---

<div class="post-metadata">

### Author: ![MMalakhov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mmalakhov/32/10138_2.png) [@MMalakhov](https://discourse.julialang.org/u/MMalakhov)
#### Post date: [December 5, 2018, 4:35pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/3 "2018-12-05T16:35:40Z")

</div>

Yes, updated Atom 4 hours ago. I’m thinking just to uninstall everything and install as new. But I do not have time for it and just using terminal to launch my programs.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [December 5, 2018, 4:41pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/4 "2018-12-05T16:41:18Z")

</div>

What plotting package are you using? Can you share a minimal example that doesn’t plot even though you’d expect it to?

---

<div class="post-metadata">

### Author: ![MMalakhov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mmalakhov/32/10138_2.png) [@MMalakhov](https://discourse.julialang.org/u/MMalakhov)
#### Post date: [December 5, 2018, 4:53pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/5 "2018-12-05T16:53:20Z")

</div>

as example:

> using PyPlot  
> a=[i\*i for i=1:100];  
> plot(a)

No errors, I have a and PyCallObject in workspace. But no plot.  
Than I press in Atom:  
Julia → Open Terminal  
and this code (and a little bit more complicated with imshow() and contour() functions) works as usual in this terminal

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [December 5, 2018, 5:15pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/6 "2018-12-05T17:15:34Z")

</div>

Ah, PyPlot… Ok, so this happens because only `PyPlot.Figure`s support Julia’s Multimedia API and not normal plots. The following will display the current figure in Juno’s plot pane:

```julia
using PyPlot
a = [i*i for i in 1:100]
p = plot(a)
display(gcf())

```

Alternatively you can just disable the Plot Pane in the julia-client settings and get PyPlot’s native display.

---

<div class="post-metadata">

### Author: ![MMalakhov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mmalakhov/32/10138_2.png) [@MMalakhov](https://discourse.julialang.org/u/MMalakhov)
#### Post date: [December 5, 2018, 5:23pm UTC](https://discourse.julialang.org/t/atom-stopped-open-plots-in-julia/18279/7 "2018-12-05T17:23:07Z")

</div>

And not forget to restart Atom after disabling it,  
It helped.  
But I still don’t get how this happened, if everything worked before and I didn’t change anything in settings.

Many Thanks
