Repository navigation
Sync storing-images with the updated tutorial - #875
Open
realpython-bot wants to merge 1 commit into
Open
realpython-bot wants to merge 1 commit into
realpython-bot wants to merge 1 commit into
Conversation
…ing and Accessing Lots of Images in Python - Use the seaborn-v0_8-whitegrid Matplotlib style (seaborn-whitegrid was removed) - Add requirements.txt pinned to the article's tested versions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to the maintenance update of Three Ways of Storing and Accessing Lots of Images in Python.
What changed
storing_images.pyandstoring_images.ipynb:plt.style.use("seaborn-whitegrid")becomesplt.style.use("seaborn-v0_8-whitegrid"). Matplotlib 3.6 renamed the bundled seaborn styles, and the old name now raisesOSErroron current Matplotlib. The article's draft gets the same fix.requirements.txtpinned to the versions in the article's updateddependenciesfield: Pillow 12.3.0, lmdb 3.0.0, h5py 3.16.0, numpy 2.5.3, matplotlib 3.11.2 (tested on Python 3.14).Links
Verification
requirements.txt.storing_images.py, and the notebook's code cells as a script, withMPLBACKEND=Aggon a synthetic CIFAR-shaped batch (100 random 32x32x3 images). The real dataset is 163MB and the full run writes several GB, socutoffswas cut to[10, 100, 200]for the test run only. Both ran end to end, with every store, read, and plot step completing.uvx ruff@0.14.1 format --check storing-imagesanduvx ruff@0.14.1 check storing-imagesboth pass.🤖 Generated with Claude Code