{"slug": "jep-embed-python-in-java-the-polished-way", "title": "JEP: Embed Python in Java, the Polished Way", "summary": "Jep embeds CPython in Java via JNI, enabling Java applications to run Python code natively. The project supports Python ≥3.10 and Java ≥1.8, offering features like multiple sub-interpreters and NumPy array support.", "body_md": "Jep embeds CPython in Java through JNI.\n\nSome benefits of embedding CPython in a JVM:\n\n- Using the native Python interpreter may be much faster than alternatives.\n- Python is mature, well supported, and well documented.\n- Access to high quality Python modules, both native CPython extensions and Python-based.\n- Compilers and assorted Python tools are as mature as the language.\n- Python is an interpreted language, enabling scripting of established Java code without requiring recompilation.\n- Both Java and Python are cross platform, enabling deployment to different operating systems.\n\nSimply run `pip install jep`\n\nor download the source and run\n`pip install .`\n\n. Building and installing require the JDK and Python,\nto be installed beforehand. Pip will need to be able to install setuptools\nand numpy to build jep.\n\n- Python >= 3.10\n- Java >= 1.8\n- NumPy >= 1.7 (optional)\n\n- Interactive Jep console much like Python's interactive console\n- Supports multiple, simultaneous, mostly sandboxed sub-interpreters or shared interpreters\n- Numpy support for Java primitive arrays\n\n[Documentation](https://github.com/ninia/jep/wiki)[JavaDoc](https://ninia.github.io/jep/javadoc)[Mailing List (deprecated)](https://groups.google.com/d/forum/jep-project)[Known Issues and Help](https://github.com/ninia/jep/issues)[Contribution Guidelines](https://github.com/ninia/jep/blob/master/.github/CONTRIBUTING.md)[Project Page](https://github.com/ninia/jep)\n\nWe welcome comments, contributions, bug reports, wiki documentation, etc.\n\nIf you need help, please first search for existing solutions online, in the the issues, and on the wiki. If you still need help, please open a GitHub issue and we will try and help you. Please remember to close the issue once it has been resolved.\n\n*Jep Team*", "url": "https://wpnews.pro/news/jep-embed-python-in-java-the-polished-way", "canonical_source": "https://github.com/ninia/JEP", "published_at": "2026-06-19 15:24:42+00:00", "updated_at": "2026-06-19 15:38:10.808816+00:00", "lang": "en", "topics": ["developer-tools", "machine-learning", "artificial-intelligence"], "entities": ["Jep", "CPython", "Java", "JNI", "NumPy", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/jep-embed-python-in-java-the-polished-way", "markdown": "https://wpnews.pro/news/jep-embed-python-in-java-the-polished-way.md", "text": "https://wpnews.pro/news/jep-embed-python-in-java-the-polished-way.txt", "jsonld": "https://wpnews.pro/news/jep-embed-python-in-java-the-polished-way.jsonld"}}