Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added --leave_progress_bars option, with the deault being to remove them

Grant Sanderson214ba5979b55
diff --git a/manimlib/config.py b/manimlib/config.py
index a97c2ab81..190637132 100644
--- a/manimlib/config.py
+++ b/manimlib/config.py
@@ -98,6 +98,11 @@ def parse_cli():
action="store_true",
help="Play a success/failure sound",
)
+ parser.add_argument(
+ "--leave_progress_bars",
+ action="store_true",
+ help="Leave progress bars displayed in terminal",
+ )
# For live streaming
module_location.add_argument(
@@ -184,6 +189,7 @@ def get_configuration(args):
"start_at_animation_number": args.start_at_animation_number,
"end_at_animation_number": None,
"sound": args.sound,
+ "leave_progress_bars": args.leave_progress_bars
}
# Camera configuration
diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.py
index 2e2348b38..c2265db05 100644
--- a/manimlib/extract_scene.py
+++ b/manimlib/extract_scene.py
@@ -133,7 +133,8 @@ def main(config):
"movie_file_extension",
"start_at_animation_number",
"end_at_animation_number",
- "output_file_name"
+ "output_file_name",
+ "leave_progress_bars",
]
])
if config["save_pngs"]: