-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
123 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,104 @@ | ||
# Installation | ||
|
||
<!-- start install --> | ||
|
||
While installing Manim Slides and its dependencies on your global Python is fine, | ||
we recommend using a virtual environment | ||
(e.g., [venv](https://docs.python.org/3/tutorial/venv.html)) for a local installation. | ||
|
||
### Dependencies | ||
Therefore, the following documentation will install Manim Slides using | ||
[pipx](https://pipx.pypa.io/). This tool is a drop-in replacement | ||
for installing Python packages that ship with one or more executable. | ||
|
||
The benefit of using pipx is that it will automatically create a new virtual | ||
environment for every package you install. | ||
|
||
:::{note} | ||
Everytime you read `pipx install`, you can use `pip install` instead, | ||
if you are working in a virtual environment or else. | ||
::: | ||
|
||
<!-- start deps --> | ||
## Dependencies | ||
|
||
Manim Slides requires either Manim or ManimGL to be installed. | ||
Manim Slides requires either Manim or ManimGL to be installed, along | ||
with their dependencies. | ||
Having both packages installed is fine too. | ||
|
||
If none of those packages are installed, please refer to their specific installation guidelines: | ||
If none of those packages are installed, | ||
please refer to their specific installation guidelines: | ||
- [Manim](https://docs.manim.community/en/stable/installation.html) | ||
- [ManimGL](https://3b1b.github.io/manim/getting_started/installation.html) | ||
|
||
:::{warning} | ||
If you install Manim from its git repository, as suggested by ManimGL, | ||
make sure to first check out a supported version (e.g., `git checkout tags/v1.6.1` | ||
for ManimGL), otherwise it might install an unsupported version of Manim! | ||
See [#314](https://github.com/jeertmans/manim-slides/issues/314) for an example. | ||
See [#314](https://github.com/jeertmans/manim-slides/issues/314). | ||
::: | ||
|
||
<!-- end deps --> | ||
|
||
### Pip Install | ||
|
||
:::{note} | ||
For an easy and safe installation, use [`pipx`](https://pipx.pypa.io/) | ||
instead of `pip`. | ||
::: | ||
## Pip Install | ||
|
||
The recommended way to install the latest release is to use pip: | ||
|
||
```bash | ||
pipx install manim-slides | ||
pipx install -U manim-slides | ||
``` | ||
|
||
:::{tip} | ||
While not necessary, the `-U` indicates that we would | ||
like to upgrade to the latest version available, | ||
if Manim Slides is already installed. | ||
::: | ||
|
||
Optionally, you can also install Manim or ManimGL using extras[^1]: | ||
|
||
```bash | ||
pip install "manim-slides[manim]" # For Manim | ||
pipx install -U "manim-slides[manim]" # For Manim | ||
# or | ||
pip install "manim-slides[manimgl]" # For ManimGL | ||
pipx install -U "manim-slides[manimgl]" # For ManimGL | ||
``` | ||
|
||
You can check that Manim Slides was correctly installed with: | ||
|
||
```bash | ||
manim-slides --version | ||
``` | ||
|
||
:::{warning} | ||
If you are installing with pipx, this is mandatory to at least include | ||
either `manim` or `manimgl`. | ||
::: | ||
|
||
[^1]: You still need to have Manim or ManimGL platform-specific dependencies | ||
installed on your computer. | ||
|
||
### Install From Repository | ||
## Optional Dependencies | ||
|
||
Along with the optional dependencies for Manim and ManimGL, | ||
Manim Slides offers additional *extras*, that can be activated | ||
using optional dependencies: | ||
|
||
- `magic`, to include a Jupyter magic to render | ||
animations inside notebooks. This automatically installs `manim`, | ||
and does not work with ManimGL; | ||
- `manim` and `manimgl`, for installing the corresponding | ||
dependencies; | ||
- `sphinx-directive`, to generate presentation inside your Sphinx | ||
documentation. This automatically installs `manim`, | ||
and does not work with ManimGL; | ||
|
||
Installing those extras can be done with the following syntax: | ||
|
||
```bash | ||
pipx install -U "manim-slides[extra1,extra2]" | ||
``` | ||
|
||
:::{note} | ||
The quotes `"` are added because not all shell support unquoted | ||
brackets (e.g., zsh) or commas (e.g., Windows). | ||
::: | ||
|
||
## Install From Repository | ||
|
||
An alternative way to install Manim Slides is to clone the git repository, | ||
and install from there: read the | ||
[contributing guide](https://eertmans.be/manim-slides/contributing/workflow.html) | ||
[contributing guide](./contributing/workflow) | ||
to know how to process. | ||
|
||
<!-- end install --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters