ipympl provides %matplotlib widget, which works in both the Jupyter notebook and JupyterLab.
https://github.com/matplotlib/ipympl
CC:  @egourgoulhon @jcamp0x2a @NathanDunfield @culler @slel @EmmanuelCharpentier
Component: packages: optional
Author: Matthias Koeppe
Branch/Commit: 3621bc4
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/31179