Re: [julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2016-06-09 Thread NotSoRecentConvert
Success! The default must have changed in 0.4.

ion() # Interactive mode on

The interactive mode in PyPlot was set to off by default.




Re: [julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-27 Thread NotSoRecentConvert
@Steven G. Johnson, how might you go about determining how it can't start 
up in interactive mode? You said it will start up in interactive mode by 
default if it can. This happens for me in both IJulia and the REPL. I just 
updated Julia on a Mac and I don't have this problem there.

julia> versioninfo()
Julia Version 0.4.1
Commit cbe1bee (2015-11-08 10:33 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

julia> Pkg.status()
4 required packages:
 - DataFrames0.6.10
 - IJulia1.1.8
 - PyCall1.2.0
 - PyPlot2.1.1
21 additional packages:
 - ArrayViews0.6.4
 - BinDeps   0.3.19
 - ColorTypes0.2.0
 - Colors0.6.0
 - Compat0.7.8
 - Conda 0.1.8
 - DataArrays0.2.20
 - Dates 0.4.4
 - Docile0.5.19
 - FixedPointNumbers 0.1.1
 - GZip  0.2.18
 - JSON  0.5.0
 - LaTeXStrings  0.1.6
 - Nettle0.2.0
 - Reexport  0.0.3
 - SHA   0.1.2
 - SortingAlgorithms 0.0.6
 - StatsBase 0.7.4
 - StatsFuns 0.2.0
 - URIParser 0.1.1
 - ZMQ   0.3.1


Re: [julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread Daniel Carrera
It definitely looks as if you are just passing the script to the Julia
executable. So as soon as the program terminates all windows close.  Like
Steven said, it would be exactly the same in Python. If you want windows to
be permanent, you probably should be in the Julia (or Python) shell.

Cheers,
Daniel


On 23 November 2015 at 15:34, kleinsplash 
wrote:

> With Sublime I am using cnt+b and vim :!julia %. Both work just fine. I
> don't have a question, happy to use show as stated.
>
> On Monday, 23 November 2015 16:29:41 UTC+2, Steven G. Johnson wrote:
>>
>> On Monday, November 23, 2015 at 8:43:36 AM UTC-5, kleinsplash wrote:
>>>
>>> Yup. Not sure why but using Sublime/VIM I can only see PyPlot and Gadfly
>>> using plt[:show](); display(gcf()) does not work for me.
>>>
>>
>> What do you mean by "using Sublime/VIM"?  Are you editing a Julia script
>> foo.jl and then running it with "julia foo.jl"?   Just like in Python, if
>> you run Julia in non-interactive mode then Matplotlib is also run in
>> non-interactive mode, and you need plt[:show]() when you want the plot to
>> appear.
>>
>> If you are using some plugin for Sublime or VIM that allows you to
>> execute code in a running Julia session, but which is not using IJulia,
>> then maybe it is forgetting to turn on interactive mode (see
>> https://github.com/JuliaLang/IJulia.jl/blob/ca35a6397d5e430f94c087f727a499b8e6ecf906/src/kernel.jl#L28-L29
>> )
>>
>


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread kleinsplash
With Sublime I am using cnt+b and vim :!julia %. Both work just fine. I 
don't have a question, happy to use show as stated. 

On Monday, 23 November 2015 16:29:41 UTC+2, Steven G. Johnson wrote:
>
> On Monday, November 23, 2015 at 8:43:36 AM UTC-5, kleinsplash wrote:
>>
>> Yup. Not sure why but using Sublime/VIM I can only see PyPlot and Gadfly 
>> using plt[:show](); display(gcf()) does not work for me.
>>
>
> What do you mean by "using Sublime/VIM"?  Are you editing a Julia script 
> foo.jl and then running it with "julia foo.jl"?   Just like in Python, if 
> you run Julia in non-interactive mode then Matplotlib is also run in 
> non-interactive mode, and you need plt[:show]() when you want the plot to 
> appear.
>
> If you are using some plugin for Sublime or VIM that allows you to execute 
> code in a running Julia session, but which is not using IJulia, then maybe 
> it is forgetting to turn on interactive mode (see 
> https://github.com/JuliaLang/IJulia.jl/blob/ca35a6397d5e430f94c087f727a499b8e6ecf906/src/kernel.jl#L28-L29
> )
>


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread Steven G. Johnson
On Monday, November 23, 2015 at 8:43:36 AM UTC-5, kleinsplash wrote:
>
> Yup. Not sure why but using Sublime/VIM I can only see PyPlot and Gadfly 
> using plt[:show](); display(gcf()) does not work for me.
>

What do you mean by "using Sublime/VIM"?  Are you editing a Julia script 
foo.jl and then running it with "julia foo.jl"?   Just like in Python, if 
you run Julia in non-interactive mode then Matplotlib is also run in 
non-interactive mode, and you need plt[:show]() when you want the plot to 
appear.

If you are using some plugin for Sublime or VIM that allows you to execute 
code in a running Julia session, but which is not using IJulia, then maybe 
it is forgetting to turn on interactive mode 
(see 
https://github.com/JuliaLang/IJulia.jl/blob/ca35a6397d5e430f94c087f727a499b8e6ecf906/src/kernel.jl#L28-L29)


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread kleinsplash
Yup. Not sure why but using Sublime/VIM I can only see PyPlot and Gadfly 
using plt[:show](); display(gcf()) does not work for me. 

On Thursday, 19 November 2015 17:52:24 UTC+2, NotSoRecentConvert wrote:
>
> Has PyPlot's default behavior changed in 0.4? When I plot nothing shows up 
> with 0.3 code but there are also no errors. I'm able to save it and 
> everything looks fine but I can't see or interact with the plots when my 
> code is finished. Somebody mentioned plt[:show]() to make all the plots 
> visible but I haven't seen this until today.
>
> Is this a new default behavior or do I have to change a default setting 
> somewhere?
>


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-20 Thread Daniel Carrera


On Thursday, 19 November 2015 20:52:15 UTC+1, Steven G. Johnson wrote:
>
>
> No, the defaults haven't changed.  It starts up in interactive mode if it 
> can.
>
> It works fine for me, e.g
>
> using PyPlot
> plot(rand(10))
>
> pops up a plot window (in the REPL) or displays it (in IJulia).
>


Works for me too.

Cheers,
Daniel.


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-19 Thread Steven G. Johnson


On Thursday, November 19, 2015 at 10:52:24 AM UTC-5, NotSoRecentConvert 
wrote:
>
> Has PyPlot's default behavior changed in 0.4? When I plot nothing shows up 
> with 0.3 code but there are also no errors. I'm able to save it and 
> everything looks fine but I can't see or interact with the plots when my 
> code is finished. Somebody mentioned plt[:show]() to make all the plots 
> visible but I haven't seen this until today.
>

No, the defaults haven't changed.  It starts up in interactive mode if it 
can.

It works fine for me, e.g

using PyPlot
plot(rand(10))

pops up a plot window (in the REPL) or displays it (in IJulia).


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-19 Thread NotSoRecentConvert
It's a problem in the REPL as well. I haven't tried it with IJulia.


[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-19 Thread Damien
On my machine (0.4 / 0.5-dev) I need to call display(gcf()) for the figure 
to appear.
Maybe we should open an issue for that in IJulia.

On Thursday, 19 November 2015 16:52:24 UTC+1, NotSoRecentConvert wrote:
>
> Has PyPlot's default behavior changed in 0.4? When I plot nothing shows up 
> with 0.3 code but there are also no errors. I'm able to save it and 
> everything looks fine but I can't see or interact with the plots when my 
> code is finished. Somebody mentioned plt[:show]() to make all the plots 
> visible but I haven't seen this until today.
>
> Is this a new default behavior or do I have to change a default setting 
> somewhere?
>