diff --git a/docs/source/getting_started/configuration.rst b/docs/source/getting_started/configuration.rst index 47e1a2e8..465203c6 100644 --- a/docs/source/getting_started/configuration.rst +++ b/docs/source/getting_started/configuration.rst @@ -63,7 +63,7 @@ flag abbr function ``--video_dir VIDEO_DIR`` Directory to write video ``--config_file CONFIG_FILE`` Path to the custom configuration file ``--log-level LOG_LEVEL`` Level of messages to Display, can be DEBUG / INFO / WARNING / ERROR / CRITICAL -``--autoreload`` Automatically reload Python modules to pick up code changes across different files +``--autoreload`` Automatically reload Python modules to pick up code changes across during an interactive embedding ========================================================== ====== ===================================================================================================================================================================================================== custom_config diff --git a/manimlib/constants.py b/manimlib/constants.py index 117ee075..93fc2c5a 100644 --- a/manimlib/constants.py +++ b/manimlib/constants.py @@ -62,7 +62,7 @@ RIGHT_SIDE: Vect3 = FRAME_X_RADIUS * RIGHT PI: float = np.pi TAU: float = 2 * PI DEG: float = TAU / 360 -DEGREES = DEG # Many older animations use teh full name +DEGREES = DEG # Many older animations use the full name # Nice to have a constant for readability # when juxtaposed with expressions like 30 * DEG RADIANS: float = 1 diff --git a/manimlib/default_config.yml b/manimlib/default_config.yml index 581e6db5..397de60e 100644 --- a/manimlib/default_config.yml +++ b/manimlib/default_config.yml @@ -13,7 +13,7 @@ directories: # to match the directory structure of the path to the # sourcecode generating that video mirror_module_path: False - # Manim may write to and read from teh file system, e.g. + # Manim may write to and read from the file system, e.g. # to render videos and to look for svg/png assets. This # will specify where those assets live, with a base directory, # and various subdirectory names within it @@ -101,19 +101,19 @@ sizes: default_mobject_to_edge_buff: 0.5 default_mobject_to_mobject_buff: 0.25 key_bindings: - pan_3d: 'd' - pan: 'f' - reset: 'r' - quit: 'q' # Together with command - select: 's' - unselect: 'u' - grab: 'g' - x_grab: 'h' - y_grab: 'v' - resize: 't' - color: 'c' - information: 'i' - cursor: 'k' + pan_3d: "d" + pan: "f" + reset: "r" + quit: "q" # Together with command + select: "s" + unselect: "u" + grab: "g" + x_grab: "h" + y_grab: "v" + resize: "t" + color: "c" + information: "i" + cursor: "k" colors: blue_e: "#1C758A" blue_d: "#29ABCA" diff --git a/manimlib/scene/scene_embed.py b/manimlib/scene/scene_embed.py index 1df79597..429693dd 100644 --- a/manimlib/scene/scene_embed.py +++ b/manimlib/scene/scene_embed.py @@ -142,9 +142,12 @@ class InteractiveSceneEmbed: self.shell.run_line_magic("exit_raise", "") def auto_reload(self): - """Enables IPython autoreload for automatic reloading of modules.""" - self.shell.magic("load_ext autoreload") - self.shell.magic("autoreload all") + """Enables reload the shell's module before all calls""" + def pre_cell_func(*args, **kwargs): + new_mod = ModuleLoader.get_module(self.shell.user_module.__file__, is_during_reload=True) + self.shell.user_ns.update(vars(new_mod)) + + self.shell.events.register("pre_run_cell", pre_cell_func) def checkpoint_paste( self, diff --git a/setup.cfg b/setup.cfg index 33e6991a..5ee19995 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = manimgl -version = 1.7.1 +version = 1.7.2 author = Grant Sanderson author_email= grant@3blue1brown.com description = Animation engine for explanatory math videos