Magic line to write to a new file in Jupyter Notebooks

PHOTO EMBED

Tue Mar 30 2021 18:52:27 GMT+0000 (Coordinated Universal Time)

Saved by @FlorianC #python #jupyter

# this line will write the code below into a Python script called script.py
%%writefile script.py
content_copyCOPY