A Jupyter Notebook %%magic for periodic auto re-run and refresh of Cells
Load extension inside a Jupyter notebook:
%load_ext jupyterlivemagic
Add code with Cell magic:
%%live
# code to re-run
Display current time, update every second:
%%live
%%bash
date
Display current datetime, update every 500ms:
%%live --refresh-rate 500
import datetime
str(datetime.datetime.now())
Install and activate dependencies:
Then:
$ pip install jupyter-live-magic