Hi!





3Blue1Brown's YouTube videos, I was wondering how does he make them? If you don't already know, he has a animation engine that he built with python. NOTE: Don't rush it, you are going to have a lot of problems if you do so. Here's the I want to make animations for explaining programming concepts and, of course, upload them on my YouTube channel. WatchingYouTube videos, I was wondering how does he make them? If you don't already know, he has a animation engine that he built with python.Here's the link to his GitHub repository.









one more NOTE: It's going to take you a fair bit of time (couple of hours) setting

and learning

things up. So, first ask yourself is it worth it! Not saying to discourage, but to warn...





In the process of actually starting it, I downloaded it in my Python27 installation folder (btw, for this to run properly, you need Python 2.7 not the newer 3.6 version). When installing Python, is a VERY good practice (and that's what I did for this tutorial) to add it to the environment path variable (just google - add python to path). When you have downloaded Python27 and the Manim project folder, you can see the required modules for running it in a text file called "requirements.txt". You can see there all of the versions of the modules that are necessary. Here's the catch. You will have a lot of issues with it.





First of foremost, you need to have pip

installed

, because pip doesn't come with Python27.

python get-pip.py The easiest way to install pip (and that's what I did) is to download THIS module in the python folder and run it using the command





Now you have pip installed. The next step is to install every single required module. Here's the catch that I was talking about. In the readme file on the Manim GitHub repository, it's mentioned that you can do this :

pip install -r requirements.txt

but I don't recommend it! Of course first you would need to

cd Scripts

and then using pip, install all requirements manually, by hand and don't forget the version [ EX:

pip install colour==0.1.2

]. Read them from the text file, one by one and install them. If you have any problems with numpy and scipy, download them individually from HERE as .whl files in the Scripts directory and just run . Read them from the text file, one by one and install them. If you have any problems with numpy and scipy, download them individually fromas .whl files in the Scripts directory and just run

pip install <the .whl file name>

. This should work without a problem. Of course, keep in mind that you would need to install numpy before scipy.

I would recommend always installing numpy and scipy from the .whl files, because even though I had them both installed, the Manim wouldn't run... As soon as I installed them from the .whl files, everything was working properly.

(aggdraw) is going to require having C++ Compiler Package for Python 2.7 and GitHub installed to be able to clone the repository. I had the GitHub installed on my PC, but if you don't you may try manually downloading and extracting the directory from the link given in the requirements.txt file -- The last moduleis going to require having THIS andinstalled to be able to clone the repository. I had the GitHub installed on my PC, but if you don't you may try manually downloading and extracting the directory from the link given in the

-- and then manually using pip to installing it. It's a nice thing to have GitHub though, I recommend it every day of the week.

If all of the requirements were installed successfully, you are good to go.





I'll leave you here today...





The next phase is running the Manim from it's project folder

(for me, it's - C:/Python27/Manim - you should be in the folder where you have downloaded Manin)

python

extract_scene.py -p example_scenes.py SquareToCircle

Thanks for all of the corrections that were suggested by

anthonynorthrup314

Next time, will attempt to save the same example animation...