# Using Python and OCaml in the same Jupyter notebook

DevFeed: [Using Python and OCaml in the same Jupyter notebook](<https://devfeed.tech/articles/using-python-and-ocaml-in-the-same-jupyter-notebook-20223.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/using-python-and-ocaml-in-the-same-jupyter-notebook/>)

Author: Laurent Mazare

Published: 2019-12-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [OCaml](<https://devfeed.tech/topics/ocaml.md>), [Python](<https://devfeed.tech/topics/python.md>), [Jupyter Notebook](<https://devfeed.tech/topics/jupyter-notebook.md>), [jupyter](<https://devfeed.tech/topics/jupyter.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [NumPy](<https://devfeed.tech/topics/numpy.md>)

Tags: [jupyter](<https://devfeed.tech/tags/jupyter.md>), [jupyter-notebook](<https://devfeed.tech/tags/jupyter-notebook.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [modules](<https://devfeed.tech/tags/modules.md>), [ocaml](<https://devfeed.tech/tags/ocaml.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

A technical tutorial on running Python and OCaml code in the same Jupyter notebook. It explains how Jane Street uses pyml, OCaml bindings to the Python C API, plus a ppx extension and library to create bindings, exchange values, and reuse OCaml systems from Python workflows.

## Source excerpt

The cover image is based on Jupiter family by NASA/JPL.