The Sage library uses IPython.lib.pretty Patches for making at least import IPython work on Pyodide have been upstreamed in 8.22 The other added packages are dependencies of IPython.