Skip to content

Commit

Permalink
Updated the jupyter notebook examples to compile on manim7 with no er…
Browse files Browse the repository at this point in the history
…rors or warnings. Increased the size of the number plane to make the transformation look nicer
  • Loading branch information
PaulCMurdoch committed Jun 1, 2021
1 parent 572a0b1 commit 94c2f71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM manimcommunity/manim:v0.6.0
FROM manimcommunity/manim:v0.7.0

COPY --chown=manimuser:manimuser . /manim
14 changes: 7 additions & 7 deletions basic_example_scenes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -142,27 +142,27 @@
" VGroup(title, basel).arrange(DOWN)\n",
" self.play(\n",
" Write(title),\n",
" FadeInFrom(basel, UP),\n",
" FadeIn(basel, shift = UP),\n",
" )\n",
" self.wait()\n",
"\n",
" transform_title = Tex(\"That was a transform\")\n",
" transform_title.to_corner(UP + LEFT)\n",
" self.play(\n",
" Transform(title, transform_title),\n",
" LaggedStart(*[FadeOutAndShift(obj, direction=DOWN) for obj in basel]),\n",
" LaggedStart(*[FadeOut(obj, shift=DOWN) for obj in basel]),\n",
" )\n",
" self.wait()\n",
"\n",
" grid = NumberPlane()\n",
" grid = NumberPlane(x_range=(- 10, 10, 1), y_range=(- 6.0, 6.0, 1))\n",
" grid_title = Tex(\"This is a grid\")\n",
" grid_title.scale(1.5)\n",
" grid_title.move_to(transform_title)\n",
"\n",
" self.add(grid, grid_title) # Make sure title is on top of grid\n",
" self.play(\n",
" FadeOut(title),\n",
" FadeInFrom(grid_title, direction=DOWN),\n",
" FadeIn(grid_title, shift=DOWN),\n",
" Create(grid, run_time=3, lag_ratio=0.1),\n",
" )\n",
" self.wait()\n",
Expand Down Expand Up @@ -201,9 +201,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "manim6",
"display_name": "manim7",
"language": "python",
"name": "manim6"
"name": "manim7"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -215,7 +215,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.9.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 94c2f71

Please sign in to comment.