Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add conda installation docs (#2914)

Pavel Zwerschke63cc40120d6d
diff --git a/docs/source/contributing/development.rst b/docs/source/contributing/development.rst
index 90266e73b..42cf68033 100644
--- a/docs/source/contributing/development.rst
+++ b/docs/source/contributing/development.rst
@@ -230,7 +230,7 @@ sticks to our coding conventions.
manually that were detected by ``flake8``.
- **Tests**: The pipeline runs manim's test suite on different operating systems
- (the latest versions of Ubuntu, MacOS, and Windows) for different versions of Python.
+ (the latest versions of Ubuntu, macOS, and Windows) for different versions of Python.
The test suite consists of two different kinds of tests: integration tests
and doctests. You can run them locally by executing ``poetry run pytest``
and ``poetry run pytest --doctest-modules manim``, respectively, from the
diff --git a/docs/source/index.rst b/docs/source/index.rst
index b01665e41..8e6d8c2fb 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -26,7 +26,7 @@ in the right place!
to learn more!
- The :doc:`Installation <installation>` section has the latest and
- up-to-date installation instructions for Windows, MacOS, and Linux.
+ up-to-date installation instructions for Windows, macOS, and Linux.
You can also find information on Manim's docker images and (online)
notebook environments there.
- Want to try the library before installing it? Take a look at our
diff --git a/docs/source/installation.rst b/docs/source/installation.rst
index 7515edef0..9669ca6aa 100644
--- a/docs/source/installation.rst
+++ b/docs/source/installation.rst
@@ -8,8 +8,8 @@ require no local installation. Head over to
https://try.manim.community to give our interactive tutorial a try.
Otherwise, if you intend to use Manim to work on an animation project,
-we recommend installing the library locally (either to your system's
-Python, or via Docker).
+we recommend installing the library locally (either to a conda environment,
+your system's Python, or via Docker).
.. warning::
@@ -19,12 +19,35 @@ Python, or via Docker).
versions <different-versions>` if you are unsure which
version you should install.
+#. :ref:`Installing Manim to a conda environment <conda-installation>`
#. :ref:`Installing Manim to your system's Python <local-installation>`
#. :ref:`Using Manim via Docker <docker-installation>`
#. :ref:`Interactive Jupyter notebooks via Binder / Google Colab
<interactive-online>`
+.. _conda-installation:
+
+Installing Manim in conda
+*************************
+
+Conda is a package manager for Python that allows creating environments
+where all your dependencies are stored. Like this, you don't clutter up your PC with
+unwanted libraries and you can just delete the environment when you don't need it anymore.
+It is a good way to install manim since all dependencies like
+``ffmpeg``, ``pycairo``, etc. come with it.
+Also, the installation steps are the same, no matter if you are
+on Windows, Linux, Intel Macs or on Apple Silicon.
+
+The following pages show how to install Manim in a conda environment:
+
+.. toctree::
+ :maxdepth: 2
+
+ installation/conda
+
+
+
.. _local-installation:
Installing Manim locally
diff --git a/docs/source/installation/conda.rst b/docs/source/installation/conda.rst
new file mode 100644
index 000000000..b946b003a
--- /dev/null
+++ b/docs/source/installation/conda.rst
@@ -0,0 +1,44 @@
+Conda
+=====
+
+Required Dependencies
+---------------------
+
+To create a conda environment, you must first install
+`conda <https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html>`__
+or `mamba <https://mamba.readthedocs.io/en/latest/installation.html>`__,
+the two most popular conda clients.
+
+After installing conda, you can create a new environment and install ``manim`` inside by running
+
+.. code-block:: bash
+
+ conda create -n my-manim-environment
+ conda activate my-manim-environment
+ conda install -c conda-forge manim
+
+Since all dependencies (except LaTeX) are handled by conda, you don't need to worry
+about needing to install additional dependencies.
+
+
+
+Optional Dependencies
+---------------------
+
+In order to make use of Manim's interface to LaTeX to, for example, render
+equations, LaTeX has to be installed as well. Note that this is an optional
+dependency: if you don't intend to use LaTeX, you don't have to install it.
+
+You can install LaTeX by following the optional dependencies steps
+for :ref:`Windows <win-optional-dependencies>`,
+:ref:`Linux <linux-optional-dependencies>` or
+:ref:`macOS <macos-optional-dependencies>`.
+
+
+
+Working with Manim
+------------------
+
+At this point, you should have a working installation of Manim, head
+over to our :doc:`Quickstart Tutorial <../tutorials/quickstart>` to learn
+how to make your own *Manimations*!
diff --git a/docs/source/installation/linux.rst b/docs/source/installation/linux.rst
index dba8e16c6..7006efd15 100644
--- a/docs/source/installation/linux.rst
+++ b/docs/source/installation/linux.rst
@@ -147,3 +147,12 @@ be sufficient for your particular application) is::
dvisvgm everysel fontspec frcursive fundus-calligra gnu-freefont jknapltx
latex-bin mathastext microtype ms physics preview ragged2e relsize rsfs
setspace standalone tipa wasy wasysym xcolor xetex xkeyval
+
+
+
+Working with Manim
+------------------
+
+At this point, you should have a working installation of Manim, head
+over to our :doc:`Quickstart Tutorial <../tutorials/quickstart>` to learn
+how to make your own *Manimations*!
diff --git a/docs/source/installation/macos.rst b/docs/source/installation/macos.rst
index ead8f41f8..a3a4021ad 100644
--- a/docs/source/installation/macos.rst
+++ b/docs/source/installation/macos.rst
@@ -1,4 +1,4 @@
-MacOS
+macOS
=====
For the sake of simplicity, the following instructions assume that you have
@@ -11,7 +11,7 @@ follow `Homebrew's installation instructions <https://docs.brew.sh/Installation>
.. note::
- For a while after Apple released its new ARM-based processors (the *"M1 chip"*),
+ For a while after Apple released its new ARM-based processors (the Apple Silicon chips like the *"M1 chip"*),
the recommended way of installing Manim relied on *Rosetta*, Apple's compatibility
layer between Intel and ARM architectures. This is no longer necessary, Manim can
(and is recommended to) be installed natively.
@@ -48,7 +48,7 @@ to install Manim.
A frequent source for installation problems is if ``pip3``
does not point to the correct Python installation on your system.
- To check this, run ``pip3 -V``: for MacOS Intel, the path should
+ To check this, run ``pip3 -V``: for macOS Intel, the path should
start with ``/usr/local``, and for Apple Silicon with
``/opt/homebrew``. If this is not the case, you either forgot
to modify your shell profile (``.zprofile``) during the installation
@@ -58,6 +58,7 @@ to install Manim.
make sure that the Homebrew-related lines in your ``.zprofile`` are
at the very end of the file.
+.. _macos-optional-dependencies:
Optional Dependencies
---------------------
@@ -66,7 +67,7 @@ In order to make use of Manim's interface to LaTeX for, e.g., rendering
equations, LaTeX has to be installed as well. Note that this is an optional
dependency: if you don't intend to use LaTeX, you don't have to install it.
-For MacOS, the recommended LaTeX distribution is
+For macOS, the recommended LaTeX distribution is
`MacTeX <http://www.tug.org/mactex/>`__. You can install it by following
the instructions from the link, or alternatively also via Homebrew by
running: