Skip to content

Commit

Permalink
New thematic guide: a deep dive into the internals of the library (#2550
Browse files Browse the repository at this point in the history
)

* information about imports, initial draft

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* codespell: allow medias. continue until scene.render()

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* updated section title

* rough sketch of rest of tutorial; actual writing still TBD

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* tutorial continued

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* continued up to initialization of orange_square

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* completed subsection on initializing mobjects

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* new subsection on Scene.add

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixed typo

* fixed example

* initialization of animation object

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* start explaining Scene.play

* typo

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* put together readable overview

* everything up to actually rendering the first frame

* save_static_frame_data already assigns the frame, no need to do it twice

* rendering of static background; up to play_internal

* finished render loop, tutorial content-complete

* added deep_dive tutorial to correct index.rst

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* upgrade version of furo

* fix reference to configuration

* move deep dive from tutorial to thematic guide

* fix broken HTML produced by manim_directive

* disclaimer and tutorial -> guide

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
behackl and pre-commit-ci[bot] committed Jul 12, 2022
1 parent 8bd23f8 commit 02f6268
Show file tree
Hide file tree
Showing 6 changed files with 1,060 additions and 21 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -65,3 +65,4 @@ repos:
rev: v2.1.0
hooks:
- id: codespell
args: ["-L", "medias"]
1,029 changes: 1,029 additions & 0 deletions docs/source/guides/deep_dive.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manim/renderer/cairo_renderer.py
Expand Up @@ -90,7 +90,7 @@ def play(self, scene, *args, **kwargs):
scene.begin_animations()

# Save a static image, to avoid rendering non moving objects.
self.static_image = self.save_static_frame_data(scene, scene.static_mobjects)
self.save_static_frame_data(scene, scene.static_mobjects)

if scene.is_current_animation_frozen_frame():
self.update_frame(scene, mobjects=scene.moving_mobjects)
Expand Down
4 changes: 2 additions & 2 deletions manim/utils/docbuild/manim_directive.py
Expand Up @@ -398,9 +398,9 @@ def setup(app):
{{ ref_block }}
{% endif %}
.. raw:: html
</div>
{% endif %}
"""
43 changes: 26 additions & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -67,7 +67,7 @@ pylint = "^2.12.2"
Sphinx = "^4"
sphinx-copybutton = "^0.4.0"
sphinxext-opengraph = "^0.5.1"
furo = "^2021.11.23"
furo = "^2022.06.21"
recommonmark = "^0.7.1"
matplotlib = "^3.3.2"
pre-commit = "^2.11.1"
Expand Down

0 comments on commit 02f6268

Please sign in to comment.