Skip to content

Commit a395ffd

Browse files
skuselchopan050
andauthored
Allow videos to be embedded in Google Colab without explicitly setting config.media_embed = True (#3974)
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
1 parent 327db11 commit a395ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manim/utils/ipython_magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def construct(self):
168168

169169
file_type = mimetypes.guess_type(config["output_file"])[0]
170170
embed = config["media_embed"]
171-
if embed is None:
171+
if not embed:
172172
# videos need to be embedded when running in google colab.
173173
# do this automatically in case config.media_embed has not been
174174
# set explicitly.

0 commit comments

Comments
 (0)