Re: [julia-users] Calling julia functions from Python

2014-09-09 Thread Isaiah Norton
It would be great if you can edit the readme and add some examples and other information you find, and submit as a pull request. The pyjulia package has not been used by many people so far, so any chance contributions will help. On Sep 9, 2014 8:25 AM, "Uwe Fechner" wrote: > Ok, by reading the so

Re: [julia-users] Calling julia functions from Python

2014-09-09 Thread Uwe Fechner
Ok, by reading the source code of pyjulia I found the answer myself: j.call is for calling julia functions only, not for getting results back. If you need the result, use j.eval: In [6]: j.eval("2+2") Out[6]: 4 I think the main problem is, that pyjulia has no documentation yet. I might open a

Re: [julia-users] Calling julia functions from Python

2014-09-09 Thread Uwe Fechner
Ok, no exeption any more if I use j.call instead of j.run. But the result is wrong: import julia j=julia.Julia() In [3]: j.call("2+2") Out[3]: 49655584 Any idea? Uwe On Tuesday, September 9, 2014 1:49:55 PM UTC+2, Isaiah wrote: > > I think you need `julia.call` instead of `julia.run`. > > On

Re: [julia-users] Calling julia functions from Python

2014-09-09 Thread Isaiah Norton
I think you need `julia.call` instead of `julia.run`. On Tue, Sep 9, 2014 at 7:16 AM, Uwe Fechner wrote: > Hello, > > I have a function, that is running much faster in Julia then in Python. > > Now I want to call it from my (large) Python program. > > I tried to do this, using pyjulia from > htt