Using Julia from python

This notebook provides a quick demonstration, how to use Julia's eigen function from python.

First you need to install the Julia package from python. For this, for example, do the following:

pip install julia

Now you can run the subsequent code:

In [ ]:
import numpy as np

# Launch Julia:
from julia.api import Julia
Julia(compiled_modules=False)

# Import LinearAlgebra
from julia import LinearAlgebra
In [ ]:
a = np.random.rand(10, 10)
a = a + np.transpose(a) + np.eye(10)
In [ ]:
res = LinearAlgebra.eigen(a)
In [ ]:
res.values
In [ ]:
res.vectors