Loading repository data…
Loading repository data…
kurodaritsu / repository
A vscode template project workspace for manim animations
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
For manim animators who doesn't want to install package managers and dependencies (e.g. FFmpeg, LaTeX) in their local machine to have a working manim environment.
This workspace utilizes Dev Containers that handle manim installation, dependencies, and updates. The container uses manim Docker image.
With this template, you only need to install VS Code and Docker (if working locally) to use manim
This Dev Container also comes with FFmpeg and LaTeX for rendering Math text and Manim Sideview VS Code Extension. For details on using the extension, visit the extension page.
You can also use this container to run manim on JupyterLab. For details, see Using the Workspace - Jupyter Lab
If you want to immediately start working on a project on a cloud environment using only your installed VS Code, try going through these steps below.
Open this repository in a codespace:
Create a manim Scene, and enjoy working on your environment
[!NOTE] Using Codespaces would consume Codespace Credits on your accounts. To learn more about Codespaces, visit What are GitHub Codespaces - Billing for Codespaces
[!TIP] To re-open your existing codespace when you launch VS Code again, open a Command Palette (
F1/Ctrl + Shift + P/Cmd + Shift + P), search forCodespaces: Connect to Codespace..., and select your existing codespace
If you wanted to work on a project locally without consuming credits, you can go through these steps to have an isolated local environment.
[!IMPORTANT] You must have Docker and Visual Studio Code with Dev Containers extension installed
Create your own repository from this template.
Clone or Download your created repository.
git clone https://github.com/{YOUR_GH_USERNAME}/{YOUR_REPO_NAME}.git
In VS Code, Open the Command Palette (F1 / Ctrl + Shift + P / Cmd + Shift + P)
Search and select Dev Containers: Open Folder in Container...
Select the folder that was cloned or downloaded to your computer.
When the setup if finished, create a manim Scene and enjoy working on your environment.
[!NOTE] If you've downloaded the repository, make sure to extract the contents in your
.zipfile before opening in the container.
[!TIP] To re-open the container when you launch VS Code again, follow Steps 3-6
You can use one (or both) methods to create and render animations in manim, depending on your preference.
Open up a Scene in your Dev Container Environment.
Open the Command Palette (F1 / Ctrl + Shift + P / Cmd + Shift + P) and look for "Manim: Render a New Scene"
Select the scene from your current file that you wanted to render.
The output file would be autoplayed on the right side of your VS Code window.
[!TIP] You can modify your settings in VS Code to automatically render the current scene on saving the
.pyfile.
[!TIP] For more details on how to use Manim Sideview, visit Manim Sideview repository
In your Dev Container environment, open a terminal (Ctrl + `).
Run the command jupyter lab.
Open one of the http:// URLs given in the terminal to your browser.
From the Jupyter Lab environment, create a notebook and enjoy creating animations from here.
[!TIP] To shutdown your current Jupyter Lab server, press
Ctrl + Con the same terminal, or go toFile -> Shut Downin Jupyter Lab window. To view currently running servers, runjupyter server liston a terminal.
[!TIP] For more examples using
manimon notebooks, visit: https://github.com/ManimCommunity/jupyter_examples