[julia-users] Re: "Nonuniform" arrays

2014-09-02 Thread James Porter
I think this sort of thing is usually called a "ragged array", you might find more use cases, examples, etc., googling for that term. +1 on having a package for this, Array{Array{T}} often feels very awkward. On Tuesday, September 2, 2014 9:03:56 AM UTC-7, Reid Atcheson wrote: > > A common situa

Re: [julia-users] build.jl for tests

2014-09-02 Thread Ivar Nesje
https://github.com/JuliaDB

Re: [julia-users] build.jl for tests

2014-09-02 Thread Isaiah Norton
Depending on your goals and how far along you are, it may be worth forking the project and updating the existing code instead of starting from scratch. Once you get going, make any necessary updates to 0.3 compatibility, etc., then the METADATA URL could be changed to point to your fork. You can al

Re: [julia-users] build.jl for tests

2014-09-02 Thread Kevin Squire
Assuming you're using the Travis testing framework, one way to handle this would be to modify the .travis.yml to install MongoDB. For the Linux build, it would be easiest if you installed the Debian package, although it seems that Mongo itself also has packages you could install. Here's an exampl

[julia-users] build.jl for tests

2014-09-02 Thread Peter Zion
Hi there, Apologies first if this is clearly documented somewhere. I'm new to Julia so I'm still getting used to things like package management. I am building new MongoDB bindings for Julia (the existing ones at pkg.julialang.org appear to be abandoned) and I was hoping I would be able to mak

[julia-users] Re: live plotting in PyPlot.jl?

2014-09-02 Thread Simon Danisch
I fixed a little error, so you should checkout the newest commit! Am Dienstag, 19. August 2014 07:46:22 UTC+2 schrieb Sheehan Olver: > > Hi, > > Is there a way to force plotting in PyPlot.jl, to simulate animation? > Right now if I do a for loop over a sequence of plots, it only outputs the > l

[julia-users] Re: FastGauss.jl: fast computation of Gauss quadrature rules

2014-09-02 Thread Alex Townsend
Both those tools look great. Trying them now. Thanks a bunch. Alex On Tuesday, 2 September 2014 19:16:36 UTC-4, Jason Merrill wrote: > > On Tuesday, September 2, 2014 5:57:43 AM UTC-7, Alex Townsend wrote: >> >> >> >> On Tuesday, 2 September 2014 03:00:10 UTC-4, Jason Merrill wrote: >>> >>> On

Re: [julia-users] live plotting in PyPlot.jl?

2014-09-02 Thread Simon Danisch
Good to hear =) The plot does look really weird... Should it look like the other plots? 2014-09-03 0:51 GMT+02:00 Sheehan Olver : > I tried Interact.jl, and it's really fun! Here is code that does a > contour plot of Helmholtz with a slider for different wave numbers, where > ny is the discret

Re: [julia-users] trouble after updating Julia

2014-09-02 Thread Tony Kelman
Ivar described the situation to a T. We have pretty good coverage of problems everywhere except Windows thanks to Travis. Occasionally things pop up that are FreeBSD specific, but that's not as common or hard to fix. I've been working sporadically on https://github.com/JuliaLang/julia/pull/6028

[julia-users] Re: FastGauss.jl: fast computation of Gauss quadrature rules

2014-09-02 Thread Jason Merrill
On Tuesday, September 2, 2014 5:57:43 AM UTC-7, Alex Townsend wrote: > > > > On Tuesday, 2 September 2014 03:00:10 UTC-4, Jason Merrill wrote: >> >> On Monday, September 1, 2014 2:33:31 PM UTC-7, Alex Townsend wrote: >>> >>> I have written a package FastGauss.jl available here: >>> >>> https://git

Re: [julia-users] live plotting in PyPlot.jl?

2014-09-02 Thread Sheehan Olver
I tried Interact.jl, and it's really fun! Here is code that does a contour plot of Helmholtz with a slider for different wave numbers, where ny is the discretization in y. (nx = ∞, which means adaptive). Pkg.add(“Interact”) Pkg.add(“Gadfly”) Pkg.add(“ApproxFun”) Pkg.checkout(“ApproxFun”) usi

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Tim Holy
Certainly it would be more than welcome in HDF5. If there is call for a standalone implementation, that would be fine too. Best, --Tim On Tuesday, September 02, 2014 12:58:24 PM Jake Bolewski wrote: > It would be best to incorporate it into the HDF5 package. A julia package > would be useful if

[julia-users] Pkg.update() error

2014-09-02 Thread xiongjieyi
When I run Pkg.update() in verson 0.3-release have such problem: julia> versioninfo() Julia Version 0.3.1-pre+41 Commit 77c15f9* (2014-08-31 17:39 UTC) Platform Info: System: Linux (x86_64-redhat-linux) CPU: Intel(R) Xeon(R) CPU E7- 4830 @ 2.13GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BIT

Re: [julia-users] Re: Julia talk at EuroSciPy 2014

2014-09-02 Thread Stefan Karpinski
A macro's role is to take some expressions, symbols and literals and produce a single expression that will be what is actually evaluated. This expansion occurs when the macro is *parsed* not when the code runs. Therefore, if you call eval on something inside of a macro body, you are most likely eva

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Jake Bolewski
It would be best to incorporate it into the HDF5 package. A julia package would be useful if you wanted to do the same sort of compression on Julia binary blobs, such as serialized julia values in an IOBuffer. On Tuesday, September 2, 2014 3:47:33 PM UTC-4, Douglas Bates wrote: > > Would it be

[julia-users] Re: live plotting in PyPlot.jl?

2014-09-02 Thread Simon Danisch
Okay, I fixed the issues I think. Also, I didn't actually update the normal vectors, when updating the z-values. This is why the lighting looked very weird and made it look less 3D. This should be fixed as well ;) Try it out! Am Dienstag, 19. August 2014 07:46:22 UTC+2 schrieb Sheehan Olver: > >

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Douglas Bates
Would it be reasonable to create a Blosc package or it is best to incorporate it directly into the HDF5 package? If a separate package is reasonable I could start on it, as I was the one who suggested this in the first place. On Tuesday, September 2, 2014 2:43:15 PM UTC-5, Tim Holy wrote: > >

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Tim Holy
All these testimonials do make it sound promising. Even three-fold compression is a pretty big deal. One disadvantage to compression is that it makes mmap impossible. But, since HDF5 supports hyperslabs, that's not as big a deal as it would have been. --Tim On Tuesday, September 02, 2014 12:11

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Stefan Karpinski
I think it would be very much in line with our general ethos of the default thing we do is the fastest possible thing – and it seems like blosc is that. On Tue, Sep 2, 2014 at 3:11 PM, Jake Bolewski wrote: > I've used Blosc in the past with great success. Oftentimes it is faster > than the unc

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Jake Bolewski
I've used Blosc in the past with great success. Oftentimes it is faster than the uncompressed version if IO is the bottleneck. The compression ratios are not great but that is really not the point. On Tuesday, September 2, 2014 2:09:20 PM UTC-4, Stefan Karpinski wrote: > > That looks pretty sw

Re: [julia-users] Julia IDE

2014-09-02 Thread Keith Campbell
https://github.com/JuliaLang/Interact.jl On Tuesday, September 2, 2014 12:51:00 PM UTC-4, Miloslav Raus wrote: > > Hi everybody, > > IMNSHO, the "best way" to incorporate plots into the IDE is not [just] > having to have them appear in a separate window, but the ability of the > repl to display

Re: [julia-users] Strange Slicing Behaviour

2014-09-02 Thread Stefan Karpinski
No, this is a pretty contentious issue. A lot of the relevant discussion is in #4774 . The one thing everyone agrees on which is going to happen in 0.4 for sure is that slicing will generally create views into the original array rather than copying th

Re: [julia-users] Strange Slicing Behaviour

2014-09-02 Thread Christoph Ortner
On Tuesday, 2 September 2014 19:12:01 UTC+1, Stefan Karpinski wrote: > > Are slices in Julia any worse than in Matlab? If so, what does Matlab do > that's better? I agree that our current slicing needs improvements (they > are planned), but it is largely due to its Matlab heritage. > I did not

Re: [julia-users] Strange Slicing Behaviour

2014-09-02 Thread Stefan Karpinski
Are slices in Julia any worse than in Matlab? If so, what does Matlab do that's better? I agree that our current slicing needs improvements (they are planned), but it is largely due to its Matlab heritage. On Tue, Sep 2, 2014 at 8:54 AM, Christoph Ortner wrote: > Tim - many thanks for the reply

Re: [julia-users] Re: how to turn off redirect_stdout() ?

2014-09-02 Thread Florian Oswald
brilliant! thanks! On 2 September 2014 19:09, David Gonzales wrote: > i tried saving the old STDOUT before redirecting and then using the saved > stream to redirect output back to normal. in code: > > oldout = STDOUT > (rd,wr) = redirect_stdout() > println("hello world") > readline(rd) > redire

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Stefan Karpinski
That looks pretty sweet. It seems to avoid a lot of the pitfalls of naively compressing data files while still getting the benefits. It would be great to support that in JLD, maybe even turned on by default. On Tue, Sep 2, 2014 at 1:35 PM, Kevin Squire wrote: > Just to hype blosc a little more,

[julia-users] Re: how to turn off redirect_stdout() ?

2014-09-02 Thread David Gonzales
i tried saving the old STDOUT before redirecting and then using the saved stream to redirect output back to normal. in code: oldout = STDOUT (rd,wr) = redirect_stdout() println("hello world") readline(rd) redirect_stdout(oldout) println("hello world") (with the last line outputting to screen nor

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Kevin Squire
Just to hype blosc a little more, see http://www.blosc.org/blosc-in-depth.html The main feature is that data is chunked so that the compressed chunk size fits into L1 cache, and is then decompressed and used there. There are a few more buzzwords (multithreading, simd) in the link above. Worth ex

Re: [julia-users] A bug?

2014-09-02 Thread Elliot Saba
This was fixed by Jeff in 3ca78cdaae1027d4d92c2d8e22c5c4d26e922396 -E On Tue, Sep 2, 2014 at 9:49 AM, Elliot Saba wrote: > Yeah, looks like the heads() tails() stuff in tuple.jl around line 60 is > getting confused because we've got nested tuples, so it doesn't recognize > when the tuple is act

Re: [julia-users] Re: Installing Julia on Mac

2014-09-02 Thread ronubi
Elliot Saba wrote: > This is because your GCC is out of date. Brew upgrade and try again. > The trick seems to be brew link --overwrite gcc Not sure what that does, but it allowed brew install julia to work.

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Tim Holy
HDF5/JLD does support compression: https://github.com/timholy/HDF5.jl/blob/master/doc/hdf5.md#reading-and-writing-data But it's not turned on by default. Matlab uses compression by default, and I've found it's a huge bottleneck in terms of performance (http://www.mathworks.com/matlabcentral/fil

Re: [julia-users] CoordInterpGrid

2014-09-02 Thread Tim Holy
As it is, this makes no sense. Did you get errors when you said "using Grid"? What happens if you say Pkg.test("Grid"). For that matter, what happens if, in the top-level julia directory, you say "make testall"? It sounds like something is broken. --Tim On Tuesday, September 02, 2014 06:55:10

[julia-users] Re: best way to run parallel julia in batch mode?

2014-09-02 Thread Travis Porco
thanks much. I have had to go down to 31 workers in some instances after all. On Saturday, August 30, 2014 5:08:18 AM UTC-7, Florian Oswald wrote: > > sorry correct my call to > > julia -p 32 exper.jl > myout.out > > (without the first < , not sure that makes a difference) > > On Saturday, 30 Aug

Re: [julia-users] Julia IDE

2014-09-02 Thread Miloslav Raus
Hi everybody, IMNSHO, the "best way" to incorporate plots into the IDE is not [just] having to have them appear in a separate window, but the ability of the repl to display "arbitrary" graphical [and hopefully interactive] objects [or better yet, controls]. Let's make Julia the best smaltalk'o

Re: [julia-users] Re: Compressing .jld files

2014-09-02 Thread Milan Bouchet-Valat
Le mardi 02 septembre 2014 à 09:03 -0700, Kevin Squire a écrit : > +1 for blosc. It's quite a nice bit of work, and if I remember > correctly, from the user's perspective, it's use is transparent. This really sounds great! Looking forward to the day when Julia will allow working seamlessly with D

[julia-users] how to turn off redirect_stdout() ?

2014-09-02 Thread Florian Oswald
hi! this works fine: julia> rdstdout, wrstdout = redirect_stdout() (Pipe(open, 0 bytes waiting),Pipe(open, 0 bytes waiting)) *run(`date`)**julia> * *s = readavailable(rdstdout)**"Tue 2 Sep 2014 17:11:33 BST\n"* *but now I want to turn the redirection off again. how do I do this?* thanks!

[julia-users] #JuliaLang anime character design spec.

2014-09-02 Thread Takeshi Kimura
Hi there, I decided to establish #JuliaLang anime character project in Japan. Now we are welcome your comments in this thread about this character spec. (costume, etc.) if you are interested in this project. The design specification deadline is September 10th in JST(+9:00). For more details, see

Re: [julia-users] Re: Compressing .jld files

2014-09-02 Thread Kevin Squire
+1 for blosc. It's quite a nice bit of work, and if I remember correctly, from the user's perspective, it's use is transparent. Cheers, Kevin On Tue, Sep 2, 2014 at 8:52 AM, Jake Bolewski wrote: > HDF5 supports pluggable compression schemes, so this seems like it should > be handled within

[julia-users] "Nonuniform" arrays

2014-09-02 Thread Reid Atcheson
A common situation I run into in my finite element codes is the need to have offset indexed arrays. This can happen if a mesh consists of both straight-edges and curved edges triangles, then the offsets effectively tell you how many vertices are used in the representation of the curves and you

[julia-users] Re: Compressing .jld files

2014-09-02 Thread Jake Bolewski
HDF5 supports pluggable compression schemes, so this seems like it should be handled within the hdf5 library. The fastest seems to be blosc which is written by the PyTables author. Although this is not shipped by default with HDF5, if we include it in the BinDeps builds for hdf5 it would be a

[julia-users] Compressing .jld files

2014-09-02 Thread Douglas Bates
Now that the JLD format can handle DataFrame objects I would like to switch from storing data sets in .RData format to .jld format. Datasets stored in .RData format are compressed after they are written. The default compression is gzip. Bzip2 and xz compression are also available. The compr

Re: [julia-users] help with ccall example

2014-09-02 Thread Alan Crawford
Thanks, worked great. Alan On Tuesday, 2 September 2014 14:55:47 UTC+1, Andreas Noack wrote: > > When the function you are calling is void you should use Void as the > return type instead of the first (Int, Ptr{Float64},Ptr{Float64}), i.e. > > ccall( (:cc, "sparselib"), Void, (Int, Ptr{Float64},P

Re: [julia-users] help with ccall example

2014-09-02 Thread Andreas Noack
When the function you are calling is void you should use Void as the return type instead of the first (Int, Ptr{Float64},Ptr{Float64}), i.e. ccall( (:cc, "sparselib"), Void, (Int, Ptr{Float64},Ptr{Float64}),n,x,w) Med venlig hilsen Andreas Noack 2014-09-02 9:04 GMT-04:00 Alan Crawford : > hi!

Re: [julia-users] CoordInterpGrid

2014-09-02 Thread Jude
Hi Tim, I am using Julia v0.3.0 and Grid 0.3.3 I have tried running with your example code just to see what is going on and yi = InterpGrid(y, BCnil, InterpQuadratic) works fine. But if I try using z_2di = CoordInterpGrid((x,y), z_2d, BCnil, InterpQuadratic) it says ERROR: CoordInterpGrid

Re: [julia-users] A bug?

2014-09-02 Thread Elliot Saba
Yeah, looks like the heads() tails() stuff in tuple.jl around line 60 is getting confused because we've got nested tuples, so it doesn't recognize when the tuple is actually empty. Feel free to open an issue and ping me. -E

Re: [julia-users] A bug?

2014-09-02 Thread xiongjieyi
I don't think it is the problem of (+). Since julia> map((x...)->x,(1,2),(3,4),(5,6)) ERROR: BoundsError() in heads at tuple.jl:56 in map at tuple.jl:59 (repeats 3 times) has the same problem. I think the expected result should be ((1,3,5),(2,4,6)). also, julia> map((x...)->x,[1,2],[3,4],[5,

[julia-users] help with ccall example

2014-09-02 Thread Alan Crawford
hi! i'm trying to use ccall in the following example: julia> x = zeros(10) 10-element Array{Float64,1}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 julia> w = zeros(10) 10-element Array{Float64,1}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 julia> n = 4 4 julia> ccall( (:cc, "

Re: [julia-users] Holy freaking cow / Job well done

2014-09-02 Thread Stefan Karpinski
Yes, thanks. It's not the most glamorous work, but a huge amount of effort has gone into making installation smooth, so it's pleasing that GTK just worked for you. On Tue, Sep 2, 2014 at 9:27 AM, Elliot Saba wrote: > Well thank you very much for the exuberant message. A lot of people have > pu

Re: [julia-users] Re: starting up julia from mac terminal (the way you would for python by typing python)

2014-09-02 Thread Elliot Saba
Quick correction, that should be a capital r in *resources, *and there should be a closing quote at the end of that command. E.g.: *export PATH="/Applications/Julia-0.3.0.app/Contents/Resources/julia/bin:$PATH"* On Tue, Sep 2, 2014 at 9:30 AM, Elliot Saba wrote: > The "julia" executable inside

Re: [julia-users] Re: starting up julia from mac terminal (the way you would for python by typing python)

2014-09-02 Thread Rob Goedman
In my ~/.bash_profile I've defined a couple of aliases, like alias julia4="Users/rob/Projects/Julia/julia/julia" and then type 'julia4' in the terminal to start Julia in that same terminal. The first part, Users/rob/Projects/Julia/julia/, is the path to the directory where I make Julia0.4. Sim

Re: [julia-users] Re: starting up julia from mac terminal (the way you would for python by typing python)

2014-09-02 Thread Elliot Saba
The "julia" executable inside *Julia-0.3.0.app/Contents/MacOS* is a wrapper executable that launches a terminal and runs the true julia executable inside it. You can get at the true julia executable by adding *Julia-0.3.0.app/Contents/resources/julia/bin* to your path. Note that Christoph's line

Re: [julia-users] CoordInterpGrid

2014-09-02 Thread Tim Holy
It's hard to say what's happening without more detail. Can you give us an explicit example of the commands you're trying to run? Also, what version of Julia are you using, and what version of Grid does Pkg.status() report? --Tim On Tuesday, September 02, 2014 04:21:59 AM Jude wrote: > Hi, > >

Re: [julia-users] Holy freaking cow / Job well done

2014-09-02 Thread Elliot Saba
Well thank you very much for the exuberant message. A lot of people have put a lot of work into this release, and it's nice for everyone involved to wake up to messages like this in their inbox. :) -E On Tue, Sep 2, 2014 at 7:38 AM, Carlo Kokoth wrote: > I remember checking Julia some time b

Re: [julia-users] A bug?

2014-09-02 Thread Elliot Saba
Addition doesn't seem to be defined for tuples: julia> (1,2,3) + (4,5,6) ERROR: `+` has no method matching +(::(Int64,Int64,Int64), ::(Int64,Int64,Int64)) The BoundsError is quite misleading however. Not sure what it's really doing in there. Tuples are pretty separated from arrays in Julia howe

[julia-users] Could it be a bug of function map(fun,tuple1,tuple2,tuple3)?

2014-09-02 Thread xiongjieyi
julia> versioninfo() Julia Version 0.4.0-dev+323 Commit ecd039c* (2014-08-24 16:57 UTC) Platform Info: System: Linux (x86_64-redhat-linux) CPU: Intel(R) Xeon(R) CPU E7- 4830 @ 2.13GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM) LAPACK: libopenblas LIBM: libopenlib

[julia-users] Re: FastGauss.jl: fast computation of Gauss quadrature rules

2014-09-02 Thread Alex Townsend
On Tuesday, 2 September 2014 03:00:10 UTC-4, Jason Merrill wrote: > > On Monday, September 1, 2014 2:33:31 PM UTC-7, Alex Townsend wrote: >> >> I have written a package FastGauss.jl available here: >> >> https://github.com/ajt60gaibb/FastGauss.jl >> > >> I am a Julia beginner (only been learning

Re: [julia-users] Strange Slicing Behaviour

2014-09-02 Thread Christoph Ortner
Tim - many thanks for the reply. To put this into context: I have 15y+ experience with matlab, and some limited experience with other languages (C,C++,Java,Fortran). Here is a code snippet that brought this up. It precomputes a lot of data that is then used in a variety of (non-standard) ways

[julia-users] A bug?

2014-09-02 Thread xiongjieyi
julia> versioninfo() Julia Version 0.4.0-dev+323 Commit ecd039c* (2014-08-24 16:57 UTC) Platform Info: System: Linux (x86_64-redhat-linux) CPU: Intel(R) Xeon(R) CPU E7- 4830 @ 2.13GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM) LAPACK: libopenblas LIBM: libopenlib

[julia-users] Holy freaking cow / Job well done

2014-09-02 Thread Carlo Kokoth
I remember checking Julia some time back, and thinking "This looks almost perfect". Macros (and homoiconicity), multiple dispatch, the Types section of the manual is geek-porn, speedy more than enough, support for distributed computation, yada, yada (yeah, I'm a programming language fetishist ;

[julia-users] CoordInterpGrid

2014-09-02 Thread Jude
Hi, I want to use interpolation and have downloaded the Grid package but for some reason it won't allow me to use CoordInterpGrid. It works fine if I use interpGrid but when I try CoordIntepGrid it says ERROR: CoordInterpGrid not defined. Does anyone know why this is and how I might get Coord

[julia-users] Re: FastGauss.jl: fast computation of Gauss quadrature rules

2014-09-02 Thread Richard Dennis
Nice work. You might also want to check out https://github.com/billmclean/GaussQuadrature.jl On Monday, September 1, 2014 10:33:31 PM UTC+1, Alex Townsend wrote: > > I have written a package FastGauss.jl available here: > > https://github.com/ajt60gaibb/FastGauss.jl > > to compute Gauss quadra

[julia-users] Re: starting up julia from mac terminal (the way you would for python by typing python)

2014-09-02 Thread Christoph Ortner
The file `~/.bash_profile' should contain something like this: export PATH="~/Dropbox/Admin/scripts:/Applications/Julia-0.3.0.app/Contents/MacOS:/Users/ortner/anaconda/bin:$PATH" However, it will always open a new terminal, rather than opening julia in your current terminal. If anybody knows h

[julia-users] Re: starting up julia from mac terminal (the way you would for python by typing python)

2014-09-02 Thread Christoph Ortner
The file `~/.bash_profile' should contain something like this: export PATH="~/Dropbox/Admin/scripts:/Applications/Julia-0.3.0.app/Contents/MacOS:/Users/ortner/anaconda/bin:$PATH" On Tuesday, 2 September 2014 06:16:02 UTC+1, Anonymous wrote: > > I'm trying to figure out how to create an alias

Re: [julia-users] lazy package/module loading?

2014-09-02 Thread Sheehan Olver
Works like a charm, thanks! Sheehan On 2 Sep 2014, at 8:32 pm, Tim Holy wrote: > require doesn't bring PyPlot into the namespace of your module. Try > Main.PyPlot.plot([1:10]). > > --Tim > > On Tuesday, September 02, 2014 03:04:39 AM Sheehan Olver wrote: >> I'm trying to lazily inc

[julia-users] Re: live plotting in PyPlot.jl?

2014-09-02 Thread Simon Danisch
I'll look into these issues! I don't really know what you mean by vanish, but as the edges are special cases and I'm not treating them as that, I'm not surprised that there are things going wrong ;) The non uniform grids should be easy to implement. I'll give you an update when I've implemented

Re: [julia-users] lazy package/module loading?

2014-09-02 Thread Tim Holy
require doesn't bring PyPlot into the namespace of your module. Try Main.PyPlot.plot([1:10]). --Tim On Tuesday, September 02, 2014 03:04:39 AM Sheehan Olver wrote: > I'm trying to lazily include PyPlot in a module. I tried the following > code: > > function foo() > require("PyPlot") >

Re: [julia-users] Strange Slicing Behaviour

2014-09-02 Thread Tim Holy
Your example involves two tricky issues: slice behavior and the fact that, despite appearances, A += b is not in-place. See issues #3424, #3217, and precedents they link to. I'd be interested in hearing more detail about how using slice gets nasty; as you say, from this example slice doesn't lo

[julia-users] lazy package/module loading?

2014-09-02 Thread Sheehan Olver
I'm trying to lazily include PyPlot in a module. I tried the following code: function foo() require("PyPlot") PyPlot.plot([1:10]) end This works when its evaluated in the REPL, but not when included in a package. Is there a methodology for doing this?

Re: [julia-users] Re: live plotting in PyPlot.jl?

2014-09-02 Thread Sheehan Olver
Also, there seems to be some weird behaviour at the edge of the plots: for example, even if my values all vanish at the edge, the plot didn’t unless I repeated the values. On 2 Sep 2014, at 12:32 pm, Simon Danisch wrote: > For the color, I guess you just want some mapping of the z

[julia-users] Re: FastGauss.jl: fast computation of Gauss quadrature rules

2014-09-02 Thread Jason Merrill
On Monday, September 1, 2014 2:33:31 PM UTC-7, Alex Townsend wrote: > > I have written a package FastGauss.jl available here: > > https://github.com/ajt60gaibb/FastGauss.jl > > I am a Julia beginner (only been learning for 2 weeks) so I am assuming > the code can be > improved in a million and