stata_kernel icon indicating copy to clipboard operation
stata_kernel copied to clipboard

Kernel freezes whenever I try to run some code

Open jorgenhost opened this issue 3 years ago • 2 comments

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

  • Windows 10 Pro (64-bit)
  • Stata 17 MP (2-core)
  • stata_kernel (1.12.2)
  • Visual Studio Code (1.71.2)

Code_3OGg2at3Mp

jorgenhost avatar Sep 18 '22 14:09 jorgenhost

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.

ticoneva avatar Oct 09 '22 18:10 ticoneva

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.

jorgenhost avatar Oct 11 '22 18:10 jorgenhost