Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Elteoremadebeethoven/5124bcfd4681b5533f99a548108f81f5 to your computer and use it in GitHub Desktop.
Save Elteoremadebeethoven/5124bcfd4681b5533f99a548108f81f5 to your computer and use it in GitHub Desktop.
spyder_manim_test.py
# --------- IMPORTS
from manimlib.imports import *
from pathlib import Path
# ---------- FLAGS
RESOLUTION = ""
FLAGS = f"-pl {RESOLUTION}"
SCENE = "Test"
class Test(Scene):
def construct(self):
self.play(
Write(TextMobject("Hello world"))
)
if __name__ == '__main__':
script_name = f"{Path(__file__).resolve()}"
os.system(f"python -m manim {script_name} {SCENE} {FLAGS}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment