Combine Stata with Python using the Jupyter Notebook
Ties de Kok · RePEc: Research Papers in Economics · 2016
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 (https://github.com/TiesdeKok/ipystata). 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 (http://jupyter.org) 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: http://nbviewer.ipython.org/github/TiesdeKok/ipystata/blob/master/ipystata/Example.ipynb