November 2016
Intermediate to advanced
697 pages
14h 44m
English
The PyCall package provides for calling Python from Julia code. As always, add this package to your Julia environment with Pkg.add("PyCall"). Then, you can start using it in the REPL or in a script as follows:
using PyCall
pyeval("10*10") #> 100
@pyimport math
math.sin(math.pi / 2) #> 1.0As we can see with the @pyimport macro, we can easily import any Python library; functions inside such a library are called with the familiar dot notation.
For more details, refer to https://github.com/stevengj/PyCall.jl.
Read now
Unlock full access