Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread Steven G. Johnson
IJulia doesn't support the workspace() command (https://github.com/JuliaLang/IJulia.jl/issues/226); just restart the kernel (in the "Kernel" menu) instead. As for the warnings, you get them if you just do "using BinDeps; workspace(); using BinDeps", so the warnings themselves aren't specific

Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread samuel . huberman
Thanks, posted an issue on github: https://github.com/stevengj/PyPlot.jl/issues/210. On Wednesday, April 27, 2016 at 10:08:31 AM UTC-4, Tom Breloff wrote: > > Ok you're right... I see those warnings if I first call "using IJulia". > > On Wed, Apr 27, 2016 at 9:59 AM, Cedric St-Jean

Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread Tom Breloff
Ok you're right... I see those warnings if I first call "using IJulia". On Wed, Apr 27, 2016 at 9:59 AM, Cedric St-Jean wrote: > I was testing it in IJulia, that's where I got all the warnings. At the > REPL I don't get them unless I write: > > using IJulia >

Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread Cedric St-Jean
I was testing it in IJulia, that's where I got all the warnings. At the REPL I don't get them unless I write: using IJulia workspace() using PyPlot on OSX, Julia 0.4.5 On Wednesday, April 27, 2016 at 9:46:31 AM UTC-4, Tom Breloff wrote: > > This doesn't happen to me: >> >> >>

Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread Tom Breloff
This doesn't happen to me: > > >_ >_ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_)| Documentation: http://docs.julialang.org >_ _ _| |_ __ _ | Type "?help" for help. > | | | | | | |/ _` | | > | | |_| | | | (_| | |

Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread Cedric St-Jean
I can reproduce. Even just workspace() using PyPlot yields most of the above warnings. It's probably a problem in Base, but I would file an issue with PyPlot. On Wednesday, April 27, 2016 at 4:42:46 AM UTC-4, Lutfullah Tomak wrote: > > I cannot make sense of these warnings but you need to

Re: [julia-users] Pyplot and type definitions

2016-04-27 Thread Lutfullah Tomak
I cannot make sense of these warnings but you need to either import + from Base or explicitly use Base.(:+) when overloading. On Tuesday, April 26, 2016 at 11:35:02 PM UTC+3, samuel@gmail.com wrote: > > In my jupyter notebook, sequentially, I define types: > > workspace() # needed for

Re: [julia-users] Pyplot and type definitions

2016-04-26 Thread samuel . huberman
In my jupyter notebook, sequentially, I define types: workspace() # needed for redefining type type State position::Int spin::Array{Any,2} State() = new(0,[1 0]') State(position,spin) = new(position,spin) end and functions on types function +(s1::State, s2::State) #Linear

Re: [julia-users] Pyplot and type definitions

2016-04-26 Thread Tom Breloff
It's hard to help without seeing your code, and more complete output. On Tue, Apr 26, 2016 at 4:09 PM, wrote: > Hi, > > I'm trying to use PyPlot in a Jupyter notebook (Julia 0.4.5). I have some > type definitions and I have some functions that overload functions from

[julia-users] Pyplot and type definitions

2016-04-26 Thread samuel . huberman
Hi, I'm trying to use PyPlot in a Jupyter notebook (Julia 0.4.5). I have some type definitions and I have some functions that overload functions from Base (i.e I define the + operator on my new types). When I try to call a plotting function after these definitions, I just get something like