Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Kevin Squire
Generally it's not a different syntax, and the error generated here is probably a consequence of recent parser changes to handle dot-operator overloading (and should probably be reported as a bug, and possibly fixed.) The syntax I suggested is related (I think) to the fact that some operators

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Fengyang Wang
On Monday, August 8, 2016 at 10:26:46 AM UTC-4, Kevin Squire wrote: > > Try > > import Base.(!) > > Cheers, > Kevin > Why do import statements have different syntax? This syntax, I'm pretty sure, has either meant getfield or broadcast—in neither case does it actually refer to the !

[julia-users] Re: PyCall-ing Numba-dependent Libraries

2016-08-08 Thread Christoph Ortner
To reply to my own question, this seems to have worked: git clone https://github.com/numba/llvmlite cd llvmlite LLVM_CONFIG=.../julia/usr/tools/llvm-config python setup.py install LLVM_CONFIG=.../julia/usr/tools/llvm-config pip install numba Unfortunately it didn't solve my problem since the

Re: [julia-users] Is the master algorithm on the roadmap?

2016-08-08 Thread Kevin Liu
I have no idea where to start and where to finish. Founders' help would be wonderful. On Tuesday, August 9, 2016 at 12:19:26 AM UTC-3, Kevin Liu wrote: > > After which I have to code Felix into Julia, a relational optimizer for > statistical inference with Tuffy

Re: [julia-users] Is the master algorithm on the roadmap?

2016-08-08 Thread Kevin Liu
After which I have to code Felix into Julia, a relational optimizer for statistical inference with Tuffy inside, for enterprise settings. On Tuesday, August 9, 2016 at 12:07:32 AM UTC-3, Kevin Liu wrote: > > Can I get tips on bringing Alchemy's optimized

[julia-users] precompiling all packages

2016-08-08 Thread Chang Kwon
Is there a way to precompile all packages at once? Each time that I run Pkg.update(), I would also like to precompile all packages so that when I actually use packages I don't need to precompile. Chang

Re: [julia-users] Is the master algorithm on the roadmap?

2016-08-08 Thread Kevin Liu
Can I get tips on bringing Alchemy's optimized Tuffy in Java to Julia while showing the best of Julia? I am going for the most correct way, even if it means coding Tuffy into C and Julia. On Sunday, August 7, 2016 at 8:34:37 PM UTC-3, Kevin Liu wrote: > >

[julia-users] Re: Save a REPL defined function to a file

2016-08-08 Thread Ralph Smith
Your definition is entered into your history file, probably when you end the session. On Linux, the file is ${HOME}/.julia_history - perhaps someone else can report on OSX or Windows. This does not appear to be mentioned in the main documentation. On Monday, August 8, 2016 at 6:56:30 PM

Re: [julia-users] Re: chol() more strict in v0.5?

2016-08-08 Thread Andreas Noack
Okay. I did it this time https://github.com/JuliaLang/Compat.jl/pull/268 On Monday, August 8, 2016 at 6:37:53 PM UTC-4, Giuseppe Ragusa wrote: > > Me too! I have been trying to update a package to `v0.5` and I do not > really see a clean way to support both 0.4 and 0.5 without an entry like >

[julia-users] Re: I cant view Plots in Juno - Atom IDE

2016-08-08 Thread Erick J Zagal
Tank you :) El lunes, 8 de agosto de 2016, 3:03:42 (UTC-5), Chris Rackauckas escribió: > > Use the command `gui()` > > On Sunday, August 7, 2016 at 9:32:29 PM UTC-7, Erick J Zagal wrote: >> >> I have this code: >> >> using Plots >> >> x = linspace(0, 10, 200) >> y = sin(x) >> plot(x, y,

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Tom Breloff
Yes likely this could be done easily in a recipe if it's something you'd want to do repeatedly. On Monday, August 8, 2016, Islam Badreldin wrote: > > Hi Tom, > > It'd be cool if you can add a couple of examples, yes! > > I'm not familiar with plot recipes yet, but do

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Islam Badreldin
Hi Tom, It'd be cool if you can add a couple of examples, yes! I'm not familiar with plot recipes yet, but do you think that such a scenario can be handled 'neatly' in a recipe while hiding all manual tweaking from the end user? Thanks,Islam _ From:

[julia-users] Save a REPL defined function to a file

2016-08-08 Thread Naelson Douglas
Is there a way for me to take a function I defined on REPL and then save it to a file? Example julia > double(x) = 2*x double (generic function with 1 method) julia > savetofile(double, "myfile.jl") After that I would open myfile.jl and see it's writher "double(x) = 2*x" there

Re: [julia-users] Re: chol() more strict in v0.5?

2016-08-08 Thread Giuseppe Ragusa
Me too! I have been trying to update a package to `v0.5` and I do not really see a clean way to support both 0.4 and 0.5 without an entry like this in Compat.jl. On Sunday, August 7, 2016 at 10:02:44 PM UTC+2, Andreas Noack wrote: > > It would be great with an entry for this in Compat.jl, e.g.

[julia-users] Re: ANN: JuMP 0.14 released

2016-08-08 Thread Uwe Fechner
Ok, I replaced all occurrences of GradientNumber in my code with Dual (not DualNumber!), and now the code works again. But this is NOT an implementation detail. It could be an implementation detail, if a function for converting Dual or GradientNumber to real would be part of the package, but it

[julia-users] Re: ANN: JuMP 0.14 released

2016-08-08 Thread Kristoffer Carlsson
It is more of an implementation detail but there is DualNumber now. On Monday, August 8, 2016 at 7:27:42 PM UTC+2, Uwe Fechner wrote: > > Well, but in the upgrading guide there is no replacement for > GradientNumber mentioned. > > Any idea? > > Uwe > > On Monday, August 8, 2016 at 7:14:45 PM

[julia-users] PyCall-ing Numba-dependent Libraries

2016-08-08 Thread Christoph Ortner
Has anybody managed to @pyimport a package that uses NUMBA? I've only found this discussion , of how it fails. It seems related to LLVM versions, which in principle sounds easy enough to fix, either change the LLVM version in Julia or in

Re: [julia-users] GlobalRef(Module, func) vs. :(Module.func)

2016-08-08 Thread Andrei Zh
Thanks, this makes sense. Just for clarification: > It strongly depend on what you want to do and whether you care about what > they represent. > I want to apply transformations (mostly) to algebraic expressions and function calls in order to simplify them, replace argument names, find

[julia-users] Re: JuliaIO

2016-08-08 Thread Simon Danisch
I replied on github ;) Best, Simon Am Montag, 8. August 2016 19:54:14 UTC+2 schrieb David Anthoff: > > Who is maintaining JuliaIO packages? It would be great if someone with > push rights could follow up on > https://github.com/JuliaIO/GZip.jl/issues/57. > > > > Thanks, > > David > > > >

[julia-users] JuliaIO

2016-08-08 Thread David Anthoff
Who is maintaining JuliaIO packages? It would be great if someone with push rights could follow up on https://github.com/JuliaIO/GZip.jl/issues/57. Thanks, David -- David Anthoff University of California, Berkeley http://www.david-anthoff.com

[julia-users] Re: ANN: JuMP 0.14 released

2016-08-08 Thread Uwe Fechner
Well, but in the upgrading guide there is no replacement for GradientNumber mentioned. Any idea? Uwe On Monday, August 8, 2016 at 7:14:45 PM UTC+2, Miles Lubin wrote: > > ForwardDiff 0.2 introduced some breaking changes, you will need to update > your code (GradientNumber is no longer

[julia-users] Re: ANN: JuMP 0.14 released

2016-08-08 Thread Miles Lubin
ForwardDiff 0.2 introduced some breaking changes, you will need to update your code (GradientNumber is no longer defined). See the upgrading guide . On Monday, August 8, 2016 at 11:10:50 AM UTC-6, Uwe Fechner wrote: > > Hello, > I updated,

[julia-users] Re: ANN: JuMP 0.14 released

2016-08-08 Thread Uwe Fechner
Hello, I updated, and now I get the following error: julia> include("Plotting.jl") INFO: Recompiling stale cache file /home/ufechner/.julia/lib/v0.4/JuMP.ji for module JuMP. INFO: Recompiling stale cache file /home/ufechner/.julia/lib/v0.4/ReverseDiffSparse.ji for module ReverseDiffSparse.

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Tom Breloff
There's a bunchof ways to do this with Plots. Draw the lines and add annotations or add an inset subplot with labels? I'm not at a computer... maybe I'll throw together an example later. On Monday, August 8, 2016, Islam Badreldin wrote: > > > Hello, > > Is there a

[julia-users] Plots with scale bars

2016-08-08 Thread Islam Badreldin
Hello, Is there a simple way in Julia to add scale bars with labels to plots and to hide the x-y axes as well? The way to do in MATLAB involves a lot of manual tweaking as described here http://www.mathworks.com/matlabcentral/answers/151248-add-a-scale-bar-to-my-plot I'm hoping to find a

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Scott T
I checked Compat, but it doesn't work with import or using: julia> @compat import Base.:! ERROR: syntax: invalid "import" statement: expected identifier julia> import @compat Base.:! ERROR: ArgumentError: @compat not found in path. Run Pkg.add("@compat") to install the @compat package in

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Jacob Quinn
There's also a Compat.jl entry for this, see the first bullet point in the documentation on the README. That way, you can just do @compat Base.:! and it will be valid for both 0.4/0.5. https://github.com/JuliaLang/Compat.jl -Jacob On Mon, Aug 8, 2016 at 9:04 AM, Scott T

[julia-users] [HELP] I am a beginner and I need some guidance in writing Optimised Code in Julia rather than writing Julia Programs in C Style.

2016-08-08 Thread Rishabh Raghunath
Hello Guys.. I am a beginner in Julia Programming Language !! and I absolutely love it !! If you can .. Can you evaluate my code and point out the things I could implement better.. Being good at C.. I feel I am bringing the C style into my Julia Program. I want it to be optimised for Julia

[julia-users] Re: I get this error while trying to run *.jl file from Terminal ERROR: LoadError: UndefVarError: input not defined

2016-08-08 Thread Rishabh Raghunath
Cool !! Thanks a ton Ján Adamčák !! for helping me out !! On Monday, August 8, 2016 at 2:39:07 AM UTC+5:30, Rishabh Raghunath wrote: > > > > Hello, > I am a beginner in the Julia language .. > I get this error while I try to run .jl Julia program file from the > terminal. However It works

[julia-users] Re: I get this error while trying to run *.jl file from Terminal ERROR: LoadError: UndefVarError: input not defined

2016-08-08 Thread Rishabh Raghunath
Cool !!.. Th Ján Adamčák.. for helping me out * !!* On Monday, August 8, 2016 at 2:39:07 AM UTC+5:30, Rishabh Raghunath wrote: > > > > Hello, > I am a beginner in the Julia language .. > I get this error while I try to run .jl Julia program file from the > terminal. However It works

[julia-users] Re: I get this error while trying to run *.jl file from Terminal ERROR: LoadError: UndefVarError: input not defined

2016-08-08 Thread Ján Adamčák
I am only C coder, too. I think, I am not good teacher for you. I can only fix broken things... Good Luck ;) Dňa pondelok, 8. augusta 2016 16:43:04 UTC+2 Rishabh Raghunath napísal(-a): > > Awesome.. Thanks a lot !! It worked .. > If you can .. Can you evaluate my code and point out the things

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Scott T
Great, thanks. I found that import Base: ! also works and is also compatible with 0.4/0.5. On Monday, 8 August 2016 15:26:46 UTC+1, Kevin Squire wrote: > > Try > > import Base.(!) > > Cheers, > Kevin > > On Monday, August 8, 2016, Scott T > wrote: > >> In 0.4 I

[julia-users] ANN: JuMP 0.14 released

2016-08-08 Thread Miles Lubin
The JuMP team is happy to announce the release of JuMP 0.14. The release should clear most, if not all, deprecation warnings on Julia 0.5 and is compatible with ForwardDiff 0.2. The full release notes are here ,

Re: [julia-users] I cant view Plots in Juno - Atom IDE

2016-08-08 Thread Chris Rackauckas
I agree. I probably answer this question at least once a day. I don't find it intuitive either, I just know the answer. It should either the early on in the documentation, or the displaying should be on by default. It would match things like R or MATLAB where people are used to the scripts just

[julia-users] Re: I get this error while trying to run *.jl file from Terminal ERROR: LoadError: UndefVarError: input not defined

2016-08-08 Thread Rishabh Raghunath
Awesome.. Thanks a lot !! It worked .. If you can .. Can you evaluate my code and point out the things I could implement better.. Being good at C.. I feel I am bringing the C style into my Julia Program. I want it to be optimised and do things in the right way in julia.. How do I get my Input

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Kevin Squire
Try import Base.(!) Cheers, Kevin On Monday, August 8, 2016, Scott T wrote: > In 0.4 I would write: import Base.! > The syntax Base.:! is not yet supported. > > In 0.5: > > julia> import Base.:! > ERROR: syntax: invalid "import" statement: expected identifier > >

[julia-users] Re: I get this error while trying to run *.jl file from Terminal ERROR: LoadError: UndefVarError: input not defined

2016-08-08 Thread Ján Adamčák
Hi, you are using function input() , but this function is not known for julia. You can use function readline(STDIN) instead of input(), or you can insert function input() readline(STDIN) end to the first line of your file. Have a nice day with Julia ;) Dňa pondelok, 8. augusta 2016

[julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Scott T
In 0.4 I would write: import Base.! The syntax Base.:! is not yet supported. In 0.5: julia> import Base.:! ERROR: syntax: invalid "import" statement: expected identifier julia> import Base.! ERROR: syntax: invalid operator ".!" What am I missing here?

[julia-users] Re: I get this error while trying to run *.jl file from Terminal ERROR: LoadError: UndefVarError: input not defined

2016-08-08 Thread Rishabh Raghunath
Thanks for replying I've attached the file with this reply.. It works in Juno.. but not via the terminal and get the before said error On Monday, August 8, 2016 at 2:39:07 AM UTC+5:30, Rishabh Raghunath wrote: > > > > Hello, > I am a beginner in the Julia language .. > I get this error while I

[julia-users] Re: DifferentialEquations

2016-08-08 Thread Henri Girard
OK I found it... It's system of equations Le lundi 8 août 2016 12:57:34 UTC+2, Henri Girard a écrit : > > Hi, > I read somewhere in your doc, the way to solve DE in a matrix... Sorry but > I can't remenber which example, I have been looking back but can't see it > again ? > Could you guide me

Re: [julia-users] I cant view Plots in Juno - Atom IDE

2016-08-08 Thread Tom Breloff
I think this behavior should be changed to match the REPL... There have been too many questions like this On Monday, August 8, 2016, Chris Rackauckas wrote: > Use the command `gui()` > > On Sunday, August 7, 2016 at 9:32:29 PM UTC-7, Erick J Zagal wrote: >> >> I have this

[julia-users] DifferentialEquations

2016-08-08 Thread Henri Girard
Hi, I read somewhere in your doc, the way to solve DE in a matrix... Sorry but I can't remenber which example, I have been looking back but can't see it again ? Could you guide me to this ? Regards Henri

[julia-users] Re: I cant view Plots in Juno - Atom IDE

2016-08-08 Thread Chris Rackauckas
Use the command `gui()` On Sunday, August 7, 2016 at 9:32:29 PM UTC-7, Erick J Zagal wrote: > > I have this code: > > using Plots > > x = linspace(0, 10, 200) > y = sin(x) > plot(x, y, color=:blue, linewidth=2, label="sine") > > when run this in the console , show the plot , but trying in Juno