Skip to content

Allow videos to be embedded in Google Colab without explicitly setting config.media_embed = True #3974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

skusel
Copy link
Contributor

@skusel skusel commented Oct 23, 2024

Overview: What does this pull request change?

Allows videos to be embedded when running in Google Colab without having to explicitly set the media_embed configuration option to True.

Motivation and Explanation: Why and how do your changes improve the library?

Addresses #3741

Links to added or changed documentation pages

N/A

Further Information and Comments

After making this change, I created a whl using poetry build, uploaded it to Google Colab, pip installed the whl, and confirmed it displayed the embedded video.

manim_google_colab

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

@skusel skusel changed the title Treat the media_embed config value as a boolean so it is correctly set to True if using Google Colab (#3741) #3741 Treat the media_embed config value as a boolean so it is correctly set to True if using Google Colab Oct 23, 2024
Copy link
Contributor

@chopan050 chopan050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@chopan050 chopan050 changed the title #3741 Treat the media_embed config value as a boolean so it is correctly set to True if using Google Colab Allow videos to be embedded in Google Colab without explicitly setting config.media_embed = True Oct 24, 2024
@chopan050 chopan050 enabled auto-merge (squash) October 24, 2024 17:26
@chopan050 chopan050 merged commit a395ffd into ManimCommunity:main Oct 24, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants