Commit graph

10 commits

Author SHA1 Message Date
Grant Sanderson
744e695340
Misc. clean up (#2269)
* Comment tweak

* Directly print traceback

Since the shell.showtraceback is giving some issues

* Make InteracrtiveSceneEmbed into a class

This way it can keep track of it's internal shell; use of get_ipython has a finicky relationship with reloading.

* Move remaining checkpoint_paste logic into scene_embed.py

This involved making a few context managers for Scene: temp_record, temp_skip, temp_progress_bar, which seem useful in and of themselves.

* Change null key to be the empty string

* Ensure temporary svg paths for Text are deleted

* Remove unused dict_ops.py functions

* Remove break_into_partial_movies from file_writer configuration

* Rewrite guarantee_existence using Path

* Clean up SceneFileWriter

It had a number of vestigial functions no longer used, and some setup that could be made more organized.

* Remove --save_pngs CLI arg (which did nothing)

* Add --subdivide CLI arg

* Remove add_extension_if_not_present

* Remove get_sorted_integer_files

* Have find_file return Path

* Minor clean up

* Clean up num_tex_symbols

* Fix find_file

* Minor cleanup for extract_scene.py

* Add preview_frame_while_skipping option to scene config

* Use shell.showtraceback function

* Move keybindings to config, instead of in-place constants

* Replace DEGREES -> DEG
2024-12-12 08:39:54 -08:00
Grant Sanderson
d1e2a7a157 Make sure \text{...} is counted correctly in num_tex_symbols 2023-03-10 11:05:30 -08:00
Grant Sanderson
ebf2ee5849 Update tex patterns 2023-02-01 20:12:06 -08:00
Grant Sanderson
c30b102458 Use re.sub instead of looping over re.findall 2023-01-04 16:39:59 -08:00
Grant Sanderson
7df12c68dc Tiny cleanup 2022-12-29 18:52:13 -08:00
Grant Sanderson
1feae23566 Improve num_tex_symbols 2022-12-29 10:37:46 -08:00
Grant Sanderson
34d8ab81f9 Fix for num_tex_symbols 2022-12-28 13:38:15 -08:00
Grant Sanderson
805236337e Remove stray import 2022-12-21 12:52:32 -08:00
Grant Sanderson
10d53c82e1 Improved num_tex_symbols
Based on data gathered for tex commands
2022-12-21 12:47:18 -08:00
Grant Sanderson
ef941b4040 Factor out num_tex_symbols 2022-12-20 22:35:41 -08:00