Run python in isaac sim

In the tutorial, it mentions that we can run python to control instead of UI. But my question is where to run the python code?