Running Stata in Workbench requires a license. In most cases such license is already provided by your institution and you can request it from your IT.
We are part of NTNU which means that NTNU employees do not have to bring in the license. You can just request Stata in Workbench.
You can also call Stata commands from python using an official solution pystata (opens new window).
Check out an example notebook to see how Stata can be used in Jupyter notebooks - Example stata_kernel Jupyter notebook (opens new window).