EconPapers    
Economics at your fingertips  
 

Combine Stata with Python using the Jupyter Notebook

Ties de Kok ()
Additional contact information
Ties de Kok: Tilburg University

2016 Stata Conference from Stata Users Group

Abstract: 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

Date: 2016-08-10
New Economics Papers: this item is included in nep-cmp
References: Add references at CitEc
Citations: View citations in EconPapers (2)

Downloads: (external link)
http://fmwww.bc.edu/repec/chic2016/chicago16_dekok.pdf

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:scon16:2

Access Statistics for this paper

More papers in 2016 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:scon16:2