0% found this document useful (0 votes)
121 views17 pages

Ipystata: Stata + Python + Jupyter Notebook "The Whole Is Greater Than The Sum of Its Parts." - Aristotle

This document introduces IPyStata, which allows users to execute Stata code within Jupyter notebooks. IPyStata allows seamless use of both Python and Stata in one environment by supporting interchangeable data structures. Key features include running multiple Stata sessions simultaneously from one notebook, easy sharing of code and results, and version control support on GitHub. The document demonstrates IPyStata basics and provides instructions for getting started.

Uploaded by

mitron123123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
121 views17 pages

Ipystata: Stata + Python + Jupyter Notebook "The Whole Is Greater Than The Sum of Its Parts." - Aristotle

This document introduces IPyStata, which allows users to execute Stata code within Jupyter notebooks. IPyStata allows seamless use of both Python and Stata in one environment by supporting interchangeable data structures. Key features include running multiple Stata sessions simultaneously from one notebook, easy sharing of code and results, and version control support on GitHub. The document demonstrates IPyStata basics and provides instructions for getting started.

Uploaded by

mitron123123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

IPyStata

Stata + Python + Jupyter Notebook


“The whole is greater than the sum of its parts.”
- Aristotle
Introduction
Workflow with Python and Stata
Generate data • Web scraping
• I/O operations and IOT (Internet-of-things)

Process data • NLP (Natural language processing)


• Ever have the urge to “just do it manually in Excel”?
 Use Pandas!
Document all your actions in code  replicability
Insight from data

• Statistical analysis (Stata)


+
• Visualize results / data (Stata / Python)
+

+
What is the Jupyter Notebook?
Demonstration: Jupyter basics

Click here to play


What is IPyStata?
A wrapper to execute Stata code in a Jupyter Notebook environment

Seamlessly use both Python and Stata Stata do-file / log-file on steroids
in one environment
 Input + Output in one place
Interchangeable data structures  (plots are supported)
using Pandas DataFrames  Format / Headers / Comments
 Markdown / Images / Latex equations
 Run multiple Stata sessions at the same
time from one notebook
 Easy sharing of code + results
 export ‘static’ version of the notebook
 Works well with version control
 GitHub renders notebooks!
Click here to play
Click here to play
Click here to play
Click here to play
Click here to play
Click here to play
Use IPyStata to make offline materials
• Jupyter Notebooks can easily be converted into offline HTML documents

• These HTML documents can be easily edited for teaching and demonstration
purposes
 Converting to PDF works well
Jupyter Notebook + Version Control
• Officially supported by GitHub

Code, results, comments, etc.


all under version control!

Click here to play


How to start using IPyStata?
• Check out my “getting started” guide on the IPyStata GitHub:

https://git.io/vKrff 1) Install the Anaconda distribution


2) Install IPyStata
• IPyStata GitHub page: 3) Configure IPyStata

https://github.com/TiesdeKok/ipystata

Questions? Contact me!


• Official Jupyter website:
- GitHub/TiesdeKok
- [email protected]
http://www.jupyter.org/

You might also like