Skip to main content

Tool for live presentations using manim

Project description

Manim Slides Logo

Latest Release Python version PyPI - Downloads Documentation DOI JOSE Paper codecov Binder

Manim Slides

Tool for live presentations using either Manim (community edition) or ManimGL. Manim Slides will automatically detect the one you are using!

[!NOTE] This project extends the work of manim-presentation, with a lot more features!

Installation

Manim Slides requires either Manim or ManimGL to be installed, along with their dependencies. Please checkout the documentation for detailed install instructions.

Usage

Using Manim Slides is a two-step process:

  1. Render animations using Slide (resp. ThreeDSlide) as a base class instead of Scene (resp. ThreeDScene), and add calls to self.next_slide() every time you want to create a new slide.
  2. Run manim-slides on rendered animations and display them like a PowerPoint presentation.

The documentation is available online.

Basic Example

Call self.next_slide() every time you want to create a pause between animations, and self.next_slide(loop=True) if you want the next slide to loop over animations until the user presses continue:

from manim import *  # or: from manimlib import *

from manim_slides import Slide


class BasicExample(Slide):
    def construct(self):
        circle = Circle(radius=3, color=BLUE)
        dot = Dot()

        self.play(GrowFromCenter(circle))
        self.next_slide()  # Waits user to press continue to go to the next slide

        self.next_slide(loop=True)  # Start loop
        self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)
        self.next_slide()  # This will start a new non-looping slide

        self.play(dot.animate.move_to(ORIGIN))

First, render the animation files:

manim-slides render example.py BasicExample
# or use ManimGL
manim-slides render --GL example.py BasicExample

[!NOTE] Using manim-slides render makes sure to use the manim (or manimlib) library that was installed in the same Python environment. Put simply, this is a wrapper around manim render [ARGS]... (or manimgl [ARGS]...).

To start the presentation using Scene1, Scene2 and so on, run:

manim-slides [OPTIONS] Scene1 Scene2...

In our example:

manim-slides BasicExample

Example GIF

For detailed usage documentation, run manim-slides --help, or go to the documentation.

Interactive Tutorial

Click on the image to watch a slides presentation that explains to you how to use Manim Slides.

Manim Slides Docs

More Examples

More examples are available in the example.py file, if you downloaded the git repository.

Comparison with Similar Tools

There exists a variety of tools that allows to create slides presentations containing Manim animations.

Below is a comparison of the most used ones with Manim Slides:

Project name Manim Slides Manim Presentation Manim Editor Jupyter Notebooks
Link GitHub Repo stars GitHub Repo stars GitHub Repo stars GitHub Repo stars
Activity GitHub Repo stars GitHub Repo stars GitHub Repo stars GitHub Repo stars
Usage Command-line Command-line Web Browser Notebook
Note Requires minimal modif. in scenes files Requires minimal modif. in scenes files Requires the usage of sections, and configuration through graphical interface Relies on nbconvert to create slides from a Notebook
Support for ManimGL Yes No No No
Web Browser presentations Yes No Yes No
Offline presentations Yes, with Qt Yes, with OpenCV No No

Contributing

Contributions are more than welcome! Please read through our contributing section.

Reporting an Issue

If you think you found a bug, an error in the documentation, or wish there was some feature that is currently missing, we would love to hear from you!

The best way to reach us is via the GitHub issues. If your problem is not covered by an already existing (closed or open) issue, then we suggest you create a new issue. You can choose from a list of templates, or open a blank issue if your issue does not fit one of the proposed topics.

The more precise you are in the description of your problem, the faster we will be able to help you!

Seeking for help

Sometimes, you may have a question about Manim Slides, not necessarily an issue.

First, make sure to read the F.A.Q to see if your question has already been answered. If not, please follow the recommendation (from that page) to reach us for questions.

Contact

Finally, if you do not have any GitHub account, or just wish to contact the author of Manim Slides, you can do so at: jeertmans@icloud.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manim_slides-5.1.6.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

manim_slides-5.1.6-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

Details for the file manim_slides-5.1.6.tar.gz.

File metadata

  • Download URL: manim_slides-5.1.6.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for manim_slides-5.1.6.tar.gz
Algorithm Hash digest
SHA256 c39a44875f403e5e5128d51c5c93d7eb80dc9d236aaa20f993f7944ac2185ef2
MD5 c6bab011468d99cf1bdb9d715b0ce97a
BLAKE2b-256 fd7c69a3d37881064a59b394e8b8f1b9539cbacd07a57c4ed489bf6f2e5080c5

See more details on using hashes here.

File details

Details for the file manim_slides-5.1.6-py3-none-any.whl.

File metadata

  • Download URL: manim_slides-5.1.6-py3-none-any.whl
  • Upload date:
  • Size: 59.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for manim_slides-5.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 82b8bcadd0625161fef1ed0a6f01c12fdb206d1f011a642585a68da4d01e330e
MD5 fde7876223bbd12fc7916599a3154a08
BLAKE2b-256 f8629781b3e7412ef2c5ff4bb57b155406920719c10b4a5d8b9c96edbfa08194

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page