I\'m getting into using Jupyterlab from Jupyter notebooks. In notebooks I used to use:
import matplotlib.pyplot as plt %matplotlib notebook plt.figure() x =
This solution works in jupyterlab
import numpy as np import matplotlib.pyplot as plt from IPython.display import clear_output n = 10 a = np.zeros((n, n)) plt.figure() for i in range(n): plt.imshow(a) plt.show() a[i, i] = 1 clear_output(wait=True)