How to use SQL cells in production environment?

Hi, the new features of the DataSpell SQL Cells are really cool. I can essentially run my query and pass data results directly to dataframes directly in Jupyter Notebook is fantastic. However, since SQL cells are not standard elements in a typical jupyter or python environment, I am not sure how to refractor the python script so that it will run in our production environment. 

Can you enlighten me on this? Thanks!