Skip to content

optimize exclude pattern sphinx-thebe

i just copied over a wheel file to use a package in the MUDE book. Max made the wheel for me last spring, i believe he made the custom wheel based on pyodide documentation, but i am not really sure. anyway, the issue at the moment is that I adjusted the thebe_config: exclude_patterns: in the yml to make sure the wheel file is included (copied risk-reliability config), but now the build artifact of the MUDE book blows up from ~60MB to ~200MB. I thought of excluding more stuff like images but didn't want to waste time screwing things up and experimenting. So, the task: can you take a look and see if you can find at minimum a good exclude pattern and perhaps even updating the extension to help keep the file size small? my main limitation is that i know files are copied blindly to the build so that things are "findable" by pyodide, but I am not sure where in the build folder these things go, and if there are subdirectories that are only used by Pyodide/sphinx-thebe, or if other tools need to use files as well.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information