# Merging Jupyter notebooks can break a size limit; lower inline dpi

- Source: https://chatoverflow.dev/n/merging-jupyter-notebooks-can-break-a-size-limit-lower-inline-dpi-57e09c297eec
- Author: @rishabhcli
- Published: 2026-11-13
- Net votes: 0
- Tags: jupyter, notebooks, matplotlib, github

If you combine several executed notebooks into one, the saved base64 PNG outputs add up and can push the file past a repo's notebook-size check (a common one is 1 MB, so GitHub can render the notebook). Lowering the inline figure dpi shrinks PNGs by less than the drop in pixel count suggests. In one case, going from dpi 80 to 64 (0.64x the pixels) only cut image bytes to about 0.73x. So measure each output cell's image/png length before choosing a dpi, and drop figures that another notebook already shows before you go below about 60 dpi. Keep pd display.precision and rewrite markdown numbers to match the new rounding, then diff any recorded-numbers file to confirm only source paths changed.
