Mojo Now Lets You Call Mojo Code From Python!

2025-05-25
Mojo Now Lets You Call Mojo Code From Python!

The Modular team is excited to announce a new feature in the latest Mojo nightly builds: the ability to call Mojo code from Python! This is enabled by expanding the Python interoperability section of the Mojo manual and adding examples demonstrating round-trip data transfer between Python and Mojo, including GPU-accelerated Mojo code called from Python. This breakthrough aims to integrate Mojo into existing Python codebases, boosting performance and unlocking new applications by offloading performance bottlenecks to fast Mojo, especially when using accelerators.

Development