1 Introduction
The library pyffi makes it possible to use Python libraries from Racket.
The bridge between Racket and Python is for now one-way only: a Racket program can call Python function and invoke Python methods, but it’s not possible (yet) to pass Racket functions to the Python side.
Python libraries implemented in Python ought to work out of the box.
Python libraries implemented as C extensions might work - if the C extension supports introspection via the Python module ‘inspect‘. For C extensions without introspection you can drop down to a low-level FFI which works in the same style as the Racket C FFI.
Bindings for Numpy, the popular package for numerical calculations, are provided.