That is as simple as 
    
    
    import nimpy
    let np = pyImport("numpy")
    let a = np.linspace(0, 10, 1000)
    let f = np.sin(a)
    echo f
    
    
    Run

It all just magically works.

See also here: 
<https://github.com/yglukhov/nimpy/blob/master/tests/tpyfromnim.nim#L61-L82>

and possibly in many other places. From the top of my head I don't have any 
good examples.

Reply via email to