Skip to content

Commit

Permalink
Allow videos to be embedded in Google Colab without explicitly settin…
Browse files Browse the repository at this point in the history
…g config.media_embed = True (#3974)

Co-authored-by: Francisco Manríquez Novoa <[email protected]>
  • Loading branch information
skusel and chopan050 authored Oct 24, 2024
1 parent 327db11 commit a395ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manim/utils/ipython_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def construct(self):

file_type = mimetypes.guess_type(config["output_file"])[0]
embed = config["media_embed"]
if embed is None:
if not embed:
# videos need to be embedded when running in google colab.
# do this automatically in case config.media_embed has not been
# set explicitly.
Expand Down

0 comments on commit a395ffd

Please sign in to comment.