From 944128d9bfd85e1898fbe811455fc543f9154e85 Mon Sep 17 00:00:00 2001 From: Tony031218 <975062472@qq.com> Date: Mon, 8 Feb 2021 12:16:57 +0800 Subject: [PATCH 1/3] adjust the order of arguments in config --- manimlib/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manimlib/config.py b/manimlib/config.py index 433ea74f..158661e7 100644 --- a/manimlib/config.py +++ b/manimlib/config.py @@ -95,15 +95,15 @@ def parse_cli(): action="store_true", help="Show the output file in finder", ) - parser.add_argument( - "--file_name", - help="Name for the movie or image file", - ) parser.add_argument( "--config", action="store_true", help="Guide for automatic configuration", ) + parser.add_argument( + "--file_name", + help="Name for the movie or image file", + ) parser.add_argument( "-n", "--start_at_animation_number", help="Start rendering not from the first animation, but" From 6331f76c12c68dbdef0f185713e34c961aeddf94 Mon Sep 17 00:00:00 2001 From: Tony031218 <975062472@qq.com> Date: Mon, 8 Feb 2021 12:22:34 +0800 Subject: [PATCH 2/3] import numpy in example_scenes --- example_scenes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example_scenes.py b/example_scenes.py index 4dddbf4c..feff9bd7 100644 --- a/example_scenes.py +++ b/example_scenes.py @@ -1,4 +1,5 @@ from manimlib import * +import numpy as np # To watch one of these scenes, run the following: # python -m manim example_scenes.py SquareToCircle From 7c683c8992b5829b1de42320f51bcff2e9bce2ea Mon Sep 17 00:00:00 2001 From: Tony031218 <975062472@qq.com> Date: Mon, 8 Feb 2021 12:25:26 +0800 Subject: [PATCH 3/3] updte default universal_import_line --- manimlib/default_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/default_config.yml b/manimlib/default_config.yml index d34236ae..45b3b77b 100644 --- a/manimlib/default_config.yml +++ b/manimlib/default_config.yml @@ -25,7 +25,7 @@ tex: # executable: "xelatex -no-pdf" # template_file: "ctex_template.tex" # intermediate_filetype: "xdv" -universal_import_line: "from manimlib.imports import *" +universal_import_line: "from manimlib import *" style: font: "Consolas" background_color: "#333333"