Skip to main content
Stata integration

Stata integration #

Warning: This post hasn't been updated for over a year. The information may be out of date.

References #

doc:

Tutorials:

Install with Anaconda/Miniconda #

In environment.yml:

dependencies:
  - stata_setup
  - nbstata # if want to use stand-alone stata kernel without python
  - jupyterlab_stata_highlight3 # only works for stata kernel

Debugging installation #

If see TypeError: init() got an unexpected keyword argument 'splash' when import the package

  1. Quit Jupyter
  2. Use conda env list to find where the environment packages are installed. Example: /Users/<user>/miniforge3/envs/mphil-gp-stata/lib/python3.11/site-packages/stata_setup.py
  3. Open the file with editor
  4. Replace config.init(edition, splash=splash) with config.init(edition)
  5. Save, deactivate and activate the environment, reload Jupyter