jupyter %%writefile not working code example
Example 1: download a file using iphyton magic
!wget --show-progress --continue -O /filepath/file.zip https://url.com
Example 2: use ipython magic in script
from IPython import get_ipython
ipython = get_ipython()
ipython.magic("timeit abs(-42)")