manforowicz / Manim-Videos

The code I used to animate mathematical videos.
81 stars 7 forks source link

Missing seemingly private library (`manim`) #1

Open CommanderPho opened 1 year ago

CommanderPho commented 1 year ago

Thank you for providing your code to accompany your great video (https://www.youtube.com/watch?v=_FuuYSM7yOo).

I wanted to play around it myself to build an intuition, but it seems to require a private library (manim): in the first line: (from manim import *). I tried removing removing the import but this leaves: NameError: name 'Scene' is not defined, so it seems some things from this library are used.

If you would be willing to provide that library or extract the subset needed to use your code I'd really appreciate it.

Thank you again for the great video,

manforowicz commented 1 year ago

Thanks for asking. Manim is an animation library that must be installed for the code to run. I just added a README.md that answers your question:

  1. Install the dependency, Manim Community, by following their instructions.
  2. Clone this repository to your computer.
  3. In the cloned directory, run a command of the type manim -pql INSERT_PYTHON_FILE.py INSERT_SCENE_NAME. For example manim -pql kelly_criterion.py Intro. The scene should render and play.
  4. To learn more, explore Manim's Documentation.

Have a great day!