STATA in DataIku

Solved!
farshadhs
Level 1
STATA in DataIku

Hi all,

I am aiming at running Jupyter notebooks with STATA interpretation capability. I wonder if there has been any similar efforts so far. It would be great to give me some hints.

Useful links:
https://www.stata.com/python/pystata18/

https://github.com/ticoneva/pystata-kernel

I could install STATA on the DSS VM. However, I could not run the examples of STATA code it in the Jupyter notebook:

%%stata

UsageError: Cell magic `%%stata` not found.

How would you consider the installation directory of STATA? And how to resolve Cell magic error, assuming its a IPython kernel issue?

If new environment is needed, how do you recommend creating a new environment? maybe by conda?!

 

Much appreciate it! 🙂

Cheers, Farshad


Operating system used: Azure

0 Kudos
1 Solution
Turribeach

Start by creating a new code environment in Dataiku and not using Conda to manage. Basically leave all new code env defaults other than the Python version required for your package.

https://knowledge.dataiku.com/latest/code/work-environment/tutorial-code-environments.html

Then create a new Jupyter notebook using the new code env you created. Or change the kernel on the existing notebook via the Kernel menu option.

View solution in original post

2 Replies
Turribeach

Start by creating a new code environment in Dataiku and not using Conda to manage. Basically leave all new code env defaults other than the Python version required for your package.

https://knowledge.dataiku.com/latest/code/work-environment/tutorial-code-environments.html

Then create a new Jupyter notebook using the new code env you created. Or change the kernel on the existing notebook via the Kernel menu option.

farshadhs
Level 1
Author

Thanks, what I did:

I installed the STATA for Linux on the DSS VM, and create a new environment with the required packages. Jupyter notebooks are enabled to use pystata for SATA 🙂

0 Kudos

Labels

?
Labels (1)

Setup info

?
A banner prompting to get Dataiku