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.
- here is the page in the mirrored MUDE book repo where you can find the error (Live Code -> run all cells): https://teachbooks.github.io/mirror_mude_book/add-pyvinecopulib/multivariate/test_pyvinecopulib.html
- an example Action that shows artifact sizes at the bottom of the page: https://github.com/TeachBooks/mirror_mude_book/actions/runs/11337502822
- here is the branch: https://gitlab.tudelft.nl/mude/book/-/tree/add-pyvinecopulib?ref_type=heads (feel free to do stuff here, i'll merge it elsewhere once the file size is reduced)
- here is the original commit where this was added in risk-reliability: interactivetextbooks-citg/risk-and-reliability@4230879b