Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Enhancement: let the render progress bar show details about the rendered animation again (#886)

NeoPlatoc471a71f3db0
diff --git a/manim/mobject/types/vectorized_mobject.py b/manim/mobject/types/vectorized_mobject.py
index c70c9081f..b93d3356a 100644
--- a/manim/mobject/types/vectorized_mobject.py
+++ b/manim/mobject/types/vectorized_mobject.py
@@ -1029,6 +1029,12 @@ class VGroup(VMobject):
+ ")"
)
+ def __str__(self):
+ return (
+ f"{self.__class__.__name__} of {len(self.submobjects)} "
+ f"submobject{'s' if len(self.submobjects) > 0 else ''}"
+ )
+
def add(self, *vmobjects):
"""Checks if all passed elements are an instance of VMobject and then add them to submobjects
diff --git a/manim/scene/scene.py b/manim/scene/scene.py
index 617ffba23..567f7abb5 100644
--- a/manim/scene/scene.py
+++ b/manim/scene/scene.py
@@ -722,6 +722,7 @@ class Scene(Container):
times = np.arange(0, run_time, step)
time_progression = tqdm(
times,
+ desc=description,
total=n_iterations,
leave=config["leave_progress_bars"],
ascii=True if platform.system() == "Windows" else None,