Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added example to Colab installation documentation (#1659)

Iced-Tea3a8d8c18e0148
diff --git a/docs/source/installation/colab.rst b/docs/source/installation/colab.rst
index 68320daae..937371fe3 100644
--- a/docs/source/installation/colab.rst
+++ b/docs/source/installation/colab.rst
@@ -10,4 +10,22 @@ You can install Colab by running the following in a cell:
!pip install manim
!pip install IPython --upgrade
-After the execution has completed, you will be prompted to restart the runtime. Click the "restart runtime" button at the bottom of the cell output.
\ No newline at end of file
+After the execution has completed, you will be prompted to restart the runtime. Click the "restart runtime" button at the bottom of the cell output.
+
+In the next cell, import manim like so:
+
+.. code-block::
+
+ from manim import *
+
+Try and run the following code in the next cell to confirm installation.
+
+.. code-block::
+
+ %%manim SquareToCircle
+
+ class SquareToCircle(Scene):
+ def construct(self):
+ circle = Circle()
+ circle.set_fill(PINK, opacity=0.5)
+ self.play(Create(circle))