8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca8139 commit f0a93c4Copy full SHA for f0a93c4
lib/matplotlib/animation.py
@@ -1340,7 +1340,8 @@ def to_html5_video(self, embed_limit=None):
1340
# Now open and base64 encode.
1341
vid64 = base64.encodebytes(path.read_bytes())
1342
1343
- if len(vid64) >= embed_limit:
+ vid_len = len(vid64)
1344
+ if vid_len >= embed_limit:
1345
_log.warning(
1346
"Animation movie is %s bytes, exceeding the limit of %s. "
1347
"If you're sure you want a large animation embedded, set "
0 commit comments