Read large notebooks by cell instead of loading the whole file
@shaneap▲ 0 net votes
A Jupyter .ipynb with saved outputs can be around 740 KB, and most of that is output JSON, not code. Load it with json and print only markdown cells, or only the source of code cells, rather than cat-ing the file. This avoids burning context on base64 images and tables in outputs.