Merge branch 'master' of github.com:3b1b/manim into video-work
Some checks failed
docs / build up document and deploy (push) Has been cancelled

This commit is contained in:
Grant Sanderson 2024-12-13 15:24:22 -06:00
commit 676ca2ff49
5 changed files with 23 additions and 20 deletions

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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,

View file

@ -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