kylebarron / stata_kernel

A Jupyter kernel for Stata. Works with Windows, macOS, and Linux.
https://kylebarron.dev/stata_kernel/
GNU General Public License v3.0
262 stars 55 forks source link

Kernel freezes whenever I try to run some code #429

Open jorgenhost opened 1 year ago

jorgenhost commented 1 year ago

Problem description

I have successfully installed stata_kernel 1.12.2 via Anaconda. I have edited the .conf file with the path to my StataMP-64.exe file in my home directory.

When I try to run a simple command like

sysuse auto

The kernel simply runs with no option to interrupt. The kernel can be restarted, but goes straight back to just loading and loading.

What seems to be the issue?

I am using VS Code for my .ipynb notebook files.

(No log)

Expected Output

(1978 automobile data)

Other information

Code_3OGg2at3Mp

ticoneva commented 1 year ago

As far as I know, stata_kernel should be able to open datasets under Stata 17. It is possible that the kernel is not able to find your Stata installation though. Have you tried manually setting Stata's path in stata_kernel.conf?

In general, Stata 17 have introduced a number of changes that breaks compatibility with stata_kernel. You might want to try pystata-kernel, which works mostly just like stata_kernel but specifically for Stata 17. If it also does not work, then the issue almost certainly lies with path detection.

jorgenhost commented 1 year ago

Hi @ticoneva

Thank you for replying.

I have manually set Stata's path in stata_kernel.conf (I have selected it as a kernel as well).

I just tested with an external dataset and results are the same. Not aware of what has changed in Stata 17.

I may try pystata-kernel, thanks for the suggestion.