I run the minimal code in the screenshot on Jupyter Lab and get instead of the plot the strange text output at the bottom of the screenshot:

Jupyter Lab version: 0.33.12
Jupyter Notebook version: 5.7.2
I have installed everything as required here. Other users are having the same problem as reported here and more extensively here. It seems to be a due to the new version of Jupyter Lab or ipympl. If I use Jupyter Notebook instead of Jupyter Lab the figure is not displayed either. Anyways, %matplotlib inline works both for Notebook and Lab for the static display. What should I do to display the plot interactively. Can I go to a previous version of Jupyter Lab and make it work again?