How to work with pure python file (.py)

Some simple options:

  1. Open a terminal in Jupyter, run your Python scripts in the terminal like you would in your local terminal.

  2. Make a notebook, and use %run <name of script.py> as an entry in a cell. See here. This is more full featured then using !python <name of script.py> in a cell .

3 Likes