# Matplotlib compatibility patch for Pyodide
import matplotlib
if not hasattr(matplotlib.RcParams, "_get"):
matplotlib.RcParams._get = dict.get
… for extension#
This is treated in chapter 2.3 of the book Engineering Mechanics Volume 2 (Hartsuijker and Welleman, 2007).