You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tool for live presentations extending [manim-community](https://www.manim.community/)'s capabilities. Currently, support for 3b1b's manim is not planned.
6
+
Tool for live presentations using either [manim-community](https://www.manim.community/) or [manimgl](https://3b1b.github.io/manim/). `manim-slides` will automatically detect the one you are using!
7
7
8
-
> **_NOTE:_** This project is a fork of [`manim-presentation`](https://github.com/galatolofederico/manim-presentation). Since the project seemed to be inactive, I decided to create my own fork to deploy new features more rapidly.
8
+
> **_NOTE:_** This project extends to work of [`manim-presentation`](https://github.com/galatolofederico/manim-presentation), with a lot more features!
9
9
10
10
## Install
11
11
@@ -29,6 +29,7 @@ call `self.pause()` when you want to pause the playback and wait for an input to
29
29
Wrap a series of animations between `self.start_loop()` and `self.stop_loop()` when you want to loop them (until input to continue):
30
30
```python
31
31
from manim import*
32
+
# or: from manimlib import *
32
33
from manim_slides import Slide
33
34
34
35
classExample(Slide):
@@ -76,7 +77,7 @@ You can run the **configuration wizard** with:
76
77
manim-slides wizard
77
78
```
78
79
79
-
Alternatively you can specify different keybindings creating a file named `.manim-slides.json` with the keys: `QUIT``CONTINUE``BACK``REWIND` and `PLAY_PAUSE`.
80
+
Alternatively you can specify different keybindings creating a file named `.manim-slides.json` with the keys: `QUIT``CONTINUE``BACK``REVERSE``REWIND` and `PLAY_PAUSE`.
80
81
81
82
A default file can be created with:
82
83
```
@@ -96,11 +97,15 @@ cd manim-slides
96
97
Install `manim` and `manim-slides`:
97
98
```
98
99
pip install manim manim-slides
100
+
# or
101
+
pip install manimgl manim-slides
99
102
```
100
103
101
104
Render the example scene:
102
105
```
103
-
manim -qh example.py
106
+
manim -qh example.py Example
107
+
# or
108
+
manimgl --hd example.py Example
104
109
```
105
110
106
111
Run the presentation
@@ -125,6 +130,7 @@ Here are a few things that I implemented (or that I'm planning to implement) on
125
130
-[x] Config file path can be manually set
126
131
-[x] Play animation in reverse [#9](https://github.com/galatolofederico/manim-presentation/issues/9)
127
132
-[x] Handle 3D scenes out of the box
133
+
-[x] Support for both `manim` and `manimgl` modules
128
134
-[ ] Generate docs online
129
135
-[x] Fix the quality problem on Windows platforms with `fullscreen` flag
"Both manim and manimgl are installed, therefore `manim-slide` needs to need which one to use. Please only import one of the two modules so that `manim-slide` knows which one to use. Here, manim is used by default"
17
+
)
18
+
MANIM=True
19
+
MANIMGL=False
20
+
elifMANIM_AVAILABLEandnotMANIMGL_IMPORTED:
21
+
MANIM=True
22
+
MANIMGL=False
23
+
elifMANIMGL_AVAILABLE:
24
+
MANIM=False
25
+
MANIMGL=True
26
+
else:
27
+
raiseImportError(
28
+
"Either manim (community) or manimgl (3b1b) package must be installed"
0 commit comments