3b1b-manim/manimlib
Splines 6196daa5ec
Reload user-defined modules during reload() (#2257)
* Experiment a lot with module loading

* Extract methods out of experimental mess

* Fix get module return type

* Only reload() modules during reload() command

* Remove unnecessary default parameter

* Add docstrings and logging statements

* Delete unwanted printout

* Improve logging messages

* Extract methods to a new class ModuleLoader

* Remove unused builtins import

* exec_module in any case at the end

* Clarify docstrings & move get_module method up in file

* Add more additionally excluded modules as array

* Distinguish between user-defined modules and external libraries like numpy

* Improved tracked_import docstring

* Remove _insert_embed suffix before logging

* Fix args.is_reload not defined error

* Refine logic to determine whether module is user-defined or not

* Fix list vs. set type annotations

* Improve docstrings & change order of early return

* Fix spelling mistake of "Reloading"

* Try out custom deep reload

* Make deep reload more robust

* Also reload modules imported as classes

* Move early return up to greatly improve performance

* Clean up comments

* Make methods of Module Loader "private"

* Add backticks around function in docstring

---------

Co-authored-by: Grant Sanderson <grant@3blue1brown.com>
2024-12-05 16:18:10 -08:00
..
animation Cleaning up some imports + Minor Bug fixed in VectorField (#2253) 2024-12-05 14:42:46 -08:00
camera Cleaning up some imports + Minor Bug fixed in VectorField (#2253) 2024-12-05 14:42:46 -08:00
event_handler Add white space after assert statements 2024-08-16 12:15:55 -05:00
mobject Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
scene Reload user-defined modules during reload() (#2257) 2024-12-05 16:18:10 -08:00
shaders Temporary band-aide for degenerate normal vector calculations 2024-11-25 12:39:32 -07:00
utils Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
__init__.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
__main__.py Add reload() command for interactive scene reloading (#2240) 2024-11-26 10:09:43 -08:00
config.py Reload user-defined modules during reload() (#2257) 2024-12-05 16:18:10 -08:00
constants.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
default_config.yml Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
extract_scene.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
logger.py Sort imports 2022-04-12 19:19:59 +08:00
module_loader.py Reload user-defined modules during reload() (#2257) 2024-12-05 16:18:10 -08:00
reload_manager.py Reload user-defined modules during reload() (#2257) 2024-12-05 16:18:10 -08:00
shader_wrapper.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
tex_templates.yml Update tex_templates.yml 2024-06-04 23:47:19 +08:00
typing.py Cleaning up some imports + Minor Bug fixed in VectorField (#2253) 2024-12-05 14:42:46 -08:00
window.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00