Skip to content

Instantly share code, notes, and snippets.

@uwezi
Created July 13, 2025 08:13
Show Gist options
  • Save uwezi/7a722dc972a88b7b7c9df55ca7878e90 to your computer and use it in GitHub Desktop.
Save uwezi/7a722dc972a88b7b7c9df55ca7878e90 to your computer and use it in GitHub Desktop.
[command line arguments] How to use command line arguments inside a Manim scene. #manim #sys #commandline #tempconfig
from manim import *
import sys
class clitest(Scene):
def construct(self):
args = VGroup(
Text(arg)
for arg in self.argv
).arrange(DOWN)
self.add(args)
with tempconfig({"quality": "low_quality", "preview": True}):
scene = clitest()
scene.argv = sys.argv
scene.render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment