
If you get output similar to what is shown above for your edition of Stata, it means that everything is configured properly see Configuration for more ways to configure pystata. Maximum number of variables is set to 5,000 see help set_maxvar. More than 2 billion observations are allowed see help obs_advice.ģ. Unicode is supported see help unicode_advice.Ģ. Statistics and Data Science Copyright 1985-2021 StataCorp LLCĩ7 license: 10-user 4-core network perpetualġ. Stata_nfig( "C:/Program Files/Stata17", "mp") Suppose you have Stata installed in C:\Program Files\Stata17\ and you use the Stata/MP edition. Three IPython (interactive Python) magic commands:īefore showing you how to use these tools, we configure the pystata package.In Jupyter Notebook, you can use two set of tools provided by the pystata Python package to interact with Stata: Now, you can invoke Stata and Mata from Jupyter Notebooks with the IPython (interactive Python) kernel, meaning you can combine the capabilities of both Python and Stata in a single environment to make your work easily reproducible and shareable with others.

Jupyter notebooks have been widely used by researchers and scientists to share their ideas and results for collaboration and innovation. Jupyter Notebook is a powerful and easy-to-use web application that allows you to combine executable code, visualizations, mathematical equations and formulas, narrative text, and other rich media in a single document (a "notebook") for interactive computing and developing.


Combine the capabilities of Stata and Python in a single environment.Push Stata data and results to Python and vice versa.

