3b1b-manim/manimlib/utils
Grant Sanderson 94f6f0aa96
Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259)
* Remove print("Reloading...")

* Change where exception mode is set, to be quieter

* Add default fallback monitor for when no monitors are detected

* Have StringMobject work with svg strings rather than necessarily writing to file

Change SVGMobject to allow taking in a string of svg code as an input

* Add caching functionality, and have Tex and Text both use it for saved svg strings

* Clean up tex_file_writing

* Get rid of get_tex_dir and get_text_dir

* Allow for a configurable cache location

* Make caching on disk a decorator, and update implementations for Tex and Text mobjects

* Remove stray prints

* Clean up how configuration is handled

In principle, all we need here is that manim looks to the default_config.yaml file, and updates it based on any local configuration files, whether in the current working directory or as specified by a CLI argument.

* Make the default size for hash_string an option

* Remove utils/customization.py

* Remove stray prints

* Consolidate camera configuration

This is still not optimal, but at least makes clearer the way that importing from constants.py kicks off some of the configuration code.

* Factor out configuration to be passed into a scene vs. that used to run a scene

* Use newer extract_scene.main interface

* Add clarifying message to note what exactly is being reloaded

* Minor clean up

* Minor clean up

* If it's worth caching to disk, then might as well do so in memory too during development

* No longer any need for custom hash_seeds in Tex and Text

* Remove display_during_execution

* Get rid of (no longer used) mobject_data directory reference

* Remove get_downloads_dir reference from register_font

* Update where downloads go

* Easier use of subdirectories in configuration

* Add new pip requirements
2024-12-05 14:51:14 -08:00
..
__init__.py delete old entry point file and add __init__ for folders 2021-02-07 17:48:51 +08:00
bezier.py Merge pull request #2009 from Varniex/patch-1 2024-09-06 10:59:04 -07:00
cache.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
color.py Fix import of pyplot 2024-11-25 10:49:05 -07:00
debug.py Fix bad argument 2024-09-21 12:15:06 -04:00
dict_ops.py Add dict_eq 2023-01-31 15:37:30 -08:00
directories.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
family_ops.py Simplify Scene.remove to not require a Mobject.get_ancestors call 2022-12-26 07:46:40 -07:00
file_ops.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
images.py Remove unused drag_pixels 2022-12-17 22:14:30 -08:00
init_config.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
iterables.py Update description of remove_list_redundancies 2024-09-21 12:15:29 -04:00
paths.py Updating type hints for paths.py 2022-12-17 22:14:53 -08:00
rate_functions.py fix: there_and_back_with_pause 2024-05-22 16:37:07 +08:00
shaders.py Cleaning up some imports + Minor Bug fixed in VectorField (#2253) 2024-12-05 14:42:46 -08:00
simple_functions.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
sounds.py Adjust typings for sounds.py and tex_file_writing.py 2022-04-16 14:37:28 +08:00
space_ops.py Stylistic change 2023-08-15 20:40:24 -07:00
tex.py Make sure \text{...} is counted correctly in num_tex_symbols 2023-03-10 11:05:30 -08:00
tex_file_writing.py Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259) 2024-12-05 14:51:14 -08:00
tex_to_symbol_count.py Add \dots and \mathds to tex_to_symbol_count 2023-08-15 20:40:39 -07:00