Skip to content

Commit 676ca2f

Browse files
committed
Merge branch 'master' of github.com:3b1b/manim into video-work
2 parents 78f62ee + 39fbb67 commit 676ca2f

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

docs/source/getting_started/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ flag abbr function
6363
``--video_dir VIDEO_DIR`` Directory to write video
6464
``--config_file CONFIG_FILE`` Path to the custom configuration file
6565
``--log-level LOG_LEVEL`` Level of messages to Display, can be DEBUG / INFO / WARNING / ERROR / CRITICAL
66-
``--autoreload`` Automatically reload Python modules to pick up code changes across different files
66+
``--autoreload`` Automatically reload Python modules to pick up code changes across during an interactive embedding
6767
========================================================== ====== =====================================================================================================================================================================================================
6868

6969
custom_config

manimlib/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
PI: float = np.pi
6363
TAU: float = 2 * PI
6464
DEG: float = TAU / 360
65-
DEGREES = DEG # Many older animations use teh full name
65+
DEGREES = DEG # Many older animations use the full name
6666
# Nice to have a constant for readability
6767
# when juxtaposed with expressions like 30 * DEG
6868
RADIANS: float = 1

manimlib/default_config.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ directories:
1313
# to match the directory structure of the path to the
1414
# sourcecode generating that video
1515
mirror_module_path: False
16-
# Manim may write to and read from teh file system, e.g.
16+
# Manim may write to and read from the file system, e.g.
1717
# to render videos and to look for svg/png assets. This
1818
# will specify where those assets live, with a base directory,
1919
# and various subdirectory names within it
@@ -101,19 +101,19 @@ sizes:
101101
default_mobject_to_edge_buff: 0.5
102102
default_mobject_to_mobject_buff: 0.25
103103
key_bindings:
104-
pan_3d: 'd'
105-
pan: 'f'
106-
reset: 'r'
107-
quit: 'q' # Together with command
108-
select: 's'
109-
unselect: 'u'
110-
grab: 'g'
111-
x_grab: 'h'
112-
y_grab: 'v'
113-
resize: 't'
114-
color: 'c'
115-
information: 'i'
116-
cursor: 'k'
104+
pan_3d: "d"
105+
pan: "f"
106+
reset: "r"
107+
quit: "q" # Together with command
108+
select: "s"
109+
unselect: "u"
110+
grab: "g"
111+
x_grab: "h"
112+
y_grab: "v"
113+
resize: "t"
114+
color: "c"
115+
information: "i"
116+
cursor: "k"
117117
colors:
118118
blue_e: "#1C758A"
119119
blue_d: "#29ABCA"

manimlib/scene/scene_embed.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,12 @@ def reload_scene(self, embed_line: int | None = None) -> None:
142142
self.shell.run_line_magic("exit_raise", "")
143143

144144
def auto_reload(self):
145-
"""Enables IPython autoreload for automatic reloading of modules."""
146-
self.shell.magic("load_ext autoreload")
147-
self.shell.magic("autoreload all")
145+
"""Enables reload the shell's module before all calls"""
146+
def pre_cell_func(*args, **kwargs):
147+
new_mod = ModuleLoader.get_module(self.shell.user_module.__file__, is_during_reload=True)
148+
self.shell.user_ns.update(vars(new_mod))
149+
150+
self.shell.events.register("pre_run_cell", pre_cell_func)
148151

149152
def checkpoint_paste(
150153
self,

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = manimgl
3-
version = 1.7.1
3+
version = 1.7.2
44
author = Grant Sanderson
55
author_email= [email protected]
66
description = Animation engine for explanatory math videos

0 commit comments

Comments
 (0)