On Thu, Aug 24, 2017 at 3:43 PM, mforets <[email protected]> wrote: > > Hi Erik, > OK thanks for the link, I will go ahead with PyJulia. > > I think the problem is the returned times symbol, which is a fancy "x", and > that one requires Python 3 to be properly parsed.
To be clear, that doesn't *require* Python 3; it can be parsed just fine on Python 2, with care. But getting this just right (especially in a way that works on Python 2 and 3) is not necessarily so simple (as Jeroen can attest to ;) Best, Erik > El jueves, 24 de agosto de 2017, 11:59:00 (UTC+2), Erik Bray escribió: >> >> On Wed, Aug 23, 2017 at 6:33 PM, mforets <[email protected]> wrote: >> > Hello, >> > I'm writing an "expect" interface to use Julia from Sage, copy pasted >> > from >> > the Matlab `interfaces/matlab.py`. >> > >> > For the moment, the code is here: >> > https://gist.github.com/mforets/26d42220946fba8f8e1feb8208783231 >> > Of course i'll add a branch in trac etc, if another developer would be >> > interested in this feature. >> >> Hi, >> >> With apologies for not usefully answering your question, instead of >> writing a pexpect interface to Julia (which will always be a little >> unreliable not matter what), why not instead install PyJulia [1] into >> your Sage install, and build a Sage interface to Julia on top of that? >> PyJulia uses ctypes to interface directly with Julia's C API [2] and >> should be a more reliable way to interact directly with the Julia >> interpreter. >> >> Best, >> Erik >> >> [1] https://github.com/JuliaPy/pyjulia >> [2] https://docs.julialang.org/en/release-0.4/manual/embedding/ > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
