Matplotlib tries to run `from js import document`. This causes an exception when Pyodide is being run from within a webworker.