Skip to main content Manim: Animation engine for explanatory math videos
r/manim icon

r/manim

16K members
11 online


⚔️ Full Blown RPG in your browser: No Downloads ❌ Just Click and Go! ✅
⚔️ Full Blown RPG in your browser: No Downloads ❌ Just Click and Go! ✅










Unable to run Manim code in VS Code Unable to run Manim code in VS Code

I've tried everything but still can't get manim to run in VS Code. I followed the steps in the manimcommunity and downloaded Latex, Python, and Manim, but when I create a file and try running a piece of manim code in VS Code, then run the code in the terminal, it shows the error: "manim" is not recognized as an internal or external command, operable program, or batch file. I've tried fixing it with Gemini, but I still can't get manim to run in VS Code. I've been struggling for 3 weeks and still haven't found a way to run manim in VS Code. Anyone with experience, please help me.


A more powerful way to run your business







Manim + AI generated educational videos Manim + AI generated educational videos

Idea

I had this idea to create a learning tool for my younger brother studying Computers Game Development. My plan was to provide a tool that could help visualize concepts. I always love how u/3blue1brown creates visualisation for Mathematical problems. I wanted something similar for Computer Science concepts.

I tried r/manim library 6 months ago with LLMs but it couldn't produce good results.

Now, with r/ClaudeCode and Skills. I saw a potential.

Spend couple of hours to refine the following Manim skills and made it work with r/ElevenLabs to create a custom workflow so that I can now one-shot the following video.

There are still a lot of improvements needed but I'm happy with the progress made so far. I'm planning to covert this to an app so I can automate the flow and easily test out different voices etc. I would love to get some feedback about what people are looking for and if they have tried similar thing in the past and what didn't work for them.

Prompt used for the attached video:

Prompt 1: I want to create a professional eductional content to explain Bubble sort with a dry run example. Use split screen concept to display a psuedo code on the left and visualization of the dry run on the right in 3blue1Brown format and quality.

Prompt 2: Let's create a video on HTTP protocol for CS Students





⚔️ Full Blown RPG in your browser: No Downloads ❌ Just Click and Go! ✅




Manim projects which would help me learn Python and Manim? Manim projects which would help me learn Python and Manim?
learning resource

Hi everyone. I am looking to learn Manim and I know the very basics of python (and manim) and I thought to learn more advanced manim and python I would be more motivated if I just started working on manim projects and learn and google on the way. Does anyone have a list, or suggestions of any (relatively small) projects I could use to build up my knowledge? Projects which would help me learn new stuff without being completely overwhelming. Thanks in advance :)




Molecules in Manim? Molecules in Manim?

I am trying to make molecules in manim but using chemfig in a MathTex() block yields this, the bonds don't show up right and using chanim doens't work either becuase that crashes when i try it.
So is there a way to do this?

tpl = TexTemplate()
tpl.add_to_preamble(r'\usepackage[version=4]{mhchem}')
tpl.add_to_preamble(r'\usepackage{chemfig}')

molecule = MathTex(r'\chemfig{CH3-CH2-OH}', tex_template=tpl)
self.play(Write(molecule, run_time=3))
self.wait(2)


[Tool] New Claude Code Skill: Comprehensive Manim Skill (23 Guides + 9 Examples) [Tool] New Claude Code Skill: Comprehensive Manim Skill (23 Guides + 9 Examples)

I just published a comprehensive Manim skill for Claude Code that makes learning and using Manim much easier with AI assistance.

TL;DR: AI-powered Manim Skill for AI Agents with 23 guides + 9 examples. Install with one command, get instant help from Claude Code.

Installation

npx add-skill misbahsy/cli-agents/skills/manim

Then ask Claude things like:

  • "Help me create an animation showing the Pythagorean theorem"

  • "Show me how to plot a parametric function"

  • "Create a product demo video with Manim"

Repository

GitHub: https://github.com/misbahsy/cli-agents/tree/main/skills/manim

Feedback welcome.



New Year Offer: Get unlimited access to Bloomberg business news, market insights and expert analysis, all for just $1.99/first month.
New Year Offer: Get unlimited access to Bloomberg business news, market insights and expert analysis, all for just $1.99/first month.











⚔️ Full Blown RPG in your browser: No Downloads ❌ Just Click and Go! ✅




Damped Oscillation: It's just the SHM equation wearing a "hoodie." Visualizing the decay envelope and deriving the differential equation Damped Oscillation: It's just the SHM equation wearing a "hoodie." Visualizing the decay envelope and deriving the differential equation
non-manim animation

AI-generated Manim code using parameters I can’t find in docs AI-generated Manim code using parameters I can’t find in docs
question

Hi everyone,
I’m relatively new to Manim and I ran into something confusing.

I tried generating some Manim code using an AI tool, and it produced code that uses parameters like azimuth_labels inside PolarPlane. When I run it, I get an error saying this argument is not supported, and when I search online, I can barely find any references to it.

So I’m wondering:

  • Have you experienced similar issues when using AI to generate Manim code?

  • What could be the reason AI suggests parameters or features that don’t seem to exist?

  • Are there any general tips on what to watch out for when using AI-generated code with Manim (or similar libraries)?

I’m not trying to blame the tool — just trying to understand how to use AI more effectively while learning Manim.

Thanks a lot!







Make your Tokyo night unforgettable. ATOM TOKYO – SHINJUKU 🔥 Open nightly. Doors open at 10 PM. Music, lights, and energy in the heart of Shinjuku.
media poster




first trying manim and what doing wrong error getting file not found first trying manim and what doing wrong error getting file not found
from manim import *


class Testing(Scene):
    def construct(self):
        name = Tex("abishek").to_edge(UL, buff=0.5)
        sq = Square(side_length=0.5, fill_color=RED, fill_opacity=1)
        tr = Triangle().scale(0.6).to_edge(DR)


        self.play(Write(name))
        self.play(Create(sq), run_time=2)  # <-- no DrawBorderThenFill
        self.play(Create(tr))
        self.wait()
          

Hey I built Stitcher. Generate and edit cool animations with just prompts for free. Hey I built Stitcher. Generate and edit cool animations with just prompts for free.

Please Try it Here: https://stitcher.cloud
Demo Video: https://youtu.be/sbUpZLrNudY

Features:

  1. Prompt-to-Animation Generation: Type what you want, get an animation. The system generates multiple scene variations that you can refine iteratively, just attach the original scene and prompt.

  2. Built-in Video Editor: Web-based editor using FFMPEG in backend. Stitch scenes together, make cuts, export the final render, all without leaving the browser.

  3. Full Pinterest-style social media. Users can like, comment, share, follow and browse trending animations. There's a leaderboard and a "backpack" system where you can save templates from the community and import them directly into your projects. You can also customize the templates! Just attach the template and prompt the agent.

  4. Added BYOT model for unlimited usage, and use the free tier with 10 free edits + 5 free generations.

Technical details (Coolest part):

  1. The whole rendering pipeline runs on worker pools with Redis queues. Workers pull jobs and render in parallel, auto scaling based on traffic and queue depth. I'm running everything on AWS free tier, two backend instances on EC2 behind a load balancer, frontend on Vercel and workers on ECS. Kept the backend stateless so it's easier to scale horizontally.

  2. I made a heap and added 50+ free tier gemini API's. Least used api key available in heap is fetched for each request. Added queues so agents do not compete for APIs and avoid errors in case of empty heap so agents just wait instead of erroring out. This distributes load and gives me 2k+ free RPD.

  3. There are 5 agents working in parallel to generate and edit the animations. The LLM's hallucinated too much initially, which I solved by adding a RAG, it fetches most relevant chunk from docs and passes it as context. Hallucinations dropped to near zero.

  4. Added a cache layer, All prompts get converted to embeddings. If a new prompt is similar enough to a cached one, it processes faster.

I am very very open to criticism and collaborations. Please shoot me a dm without a second thought. I know there's alot that could be improved.




🔮 I built a node-based Manim IDE with AI assistance — feedback welcome 🔮 I built a node-based Manim IDE with AI assistance — feedback welcome
made with manim

Hey folks 👋

I’ve been working on an open-source project called EfficientManim — a node-based desktop IDE for Manim.

The goal is to make it easier to build Manim scenes visually using nodes (Mobjects, Animations, Transforms) while still generating clean, standard, runnable Python code.

What it currently does:

  • Node-based scene editor

  • Visual linking of animations and transforms

  • Optional AI-assisted code generation

  • Outputs plain Manim code (no lock-in)

  • Built with Python + PySide6

Dev note (being transparent):
This was built using an AI-assisted workflow. I designed the architecture and UX, and used AI as a productivity tool, but all integration, debugging, and refactoring were done manually.

I’m mainly looking for:

  • Architectural feedback

  • UX suggestions

  • Edge cases I might be missing

  • Ideas or contributions

Repo: https://github.com/pro-grammer-SD/EfficientManim

Happy to answer questions and take new suggestions 🙂

🌟 UPDATES:

  1. Added a new gallery in the repo's README.

  2. I’m deploying this on Streamlit Cloud and could use extra hands. PRs are welcome, and I’m completely okay with LLM-assisted contributions.

  3. URL of web deployment: https://efficientmanimcloud.streamlit.app

  4. Source code of web deployment: https://github.com/pro-grammer-SD/EfficientManimCloud

  5. Added a simple and easy-to-use interface to create voiceovers for Animation nodes for more productivity.

  6. Added a thread*-efficient* LaTeX preview tab where you can test expressions, and once satisfied, seamlessly integrate them into an existing MathTex node with the quick interface.