I saw your example notebook of using ipystata in Jupyter, and figured you might be interested in trying out stata_kernel. Instead of a Magic that controls Stata from Python, it's a true Jupyter kernel for Stata. No need to transfer data between Python and Stata and no need to use %%stata in every cell.