> For the complete documentation index, see [llms.txt](https://docs-jupyter.davidjachochavez.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-jupyter.davidjachochavez.org/stata/stata-kernel-for-jupyter.md).

# Stata Kernel for Jupyter

Install Stata kernel to allow Jupyter users to create and run Stata files in Jupyter Notebooks:

```
pip install stata_kernel
python -m stata_kernel.install
```

Ensure that the stata\_kernel is installed correctly:

```
nano .stata_kernel.conf
```

Use CTRL+O then enter to overwrite the document and CTRL+X to exit.

{% hint style="info" %}
Make sure `stata_path` is pointing to the correct executable. *It can be different depending on your Stata version*.
{% endhint %}

![](/files/-MDGk37HUbE9HsqsgMCz)

Copy the configuration file to system configuration for all users:

```
cp .stata_kernel.conf /etc/stata_kernel.conf 
```
