IDEAS home Printed from
   My bibliography  Save this paper

Combine Stata with Python using the Jupyter Notebook


  • Ties de Kok

    (Tilburg University)


In my presentation I will give a talk and demonstration on how we can enhance our workflow by using the Jupyter Notebook and my IPyStata package ( IPyStata is a package written in Python that allows users to write and execute Stata and Python code side-by-side in a single Jupyter Notebook. Users can near-seamlessly modify and analyze data using both Stata and Python because IPyStata allows data-structures (e.g. datasets, macros) to be used interchangeably. The Jupyter Notebook ( is a phenomenal tool for researchers and data scientists as it allows live code to be combined with explanatory text, equations, visualizations, widgets, and much more. It was originally developed as an open-source tool for interactive Python use (called the IPython Notebook) but is now aimed at being language agnostic under the banner of Project Jupyter. My package, IPyStata, adds Stata to the array of software/programming languages that can be used in the Jupyter Notebook. In my talk I will share how I use Stata, Python, the Jupyter Notebook, and IPyStata to transparently document and share the code and results that underlie my work as an aspiring researcher. For a demonstration notebook see:

Suggested Citation

  • Ties de Kok, 2016. "Combine Stata with Python using the Jupyter Notebook," 2016 Stata Conference 2, Stata Users Group.
  • Handle: RePEc:boc:scon16:2

    Download full text from publisher

    File URL:
    Download Restriction: no


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Valérie Orozco & Christophe Bontemps & Élise Maigné & Virginie Piguet & Annie Hofstetter & Anne Marie Lacroix & Fabrice Levert & Jean-Marc Rousselle, 2017. "How to make a pie? Reproducible Research for Empirical Economics & Econometrics," Post-Print hal-01939942, HAL.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scon16:2. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.