Skip to main content

A simple Jupyter kernel for Stata based on pystata

Project description

# pystata-kernel

A simple Jupyter kernel for Stata based on [pystata](https://www.stata.com/python/pystata/). Requires Stata 17 or above. Consider [stata_kernel](https://github.com/kylebarron/stata_kernel) instead if you have an older version of Stata.

### Installation To install pystata-kernel:

`python pip install git+https://github.com/ticoneva/pystata-kernel python -m pystata-kernel.install [--sys-prefix] [--prefix] `

Include –sys-prefix if you are installing pystata-kernel in a multi-user environment, or –prefix if you want to specify a path yourself.

The installation script will try to determine the location of your Stata installation and write it to a configuration file. You can manually modify this file if the installation script fails to detect your stata installation. The configuration file is saved under:

  • [prefix]/etc/pykernel-stata.conf if –sys-prefix or –prefix is specified.

  • ~/.pykernel-stata.conf otherwise.

If a configuration file exists in both locations, the user version takes precedent.

Syntax highlighting is the same as stata_kernel:

`sh conda install nodejs -c conda-forge --repodata-fn=repodata.json jupyter labextension install jupyterlab-stata-highlight `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystata-kernel-0.1.5.tar.gz (6.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page