
Security News
Knip Hits 500 Releases with v5.62.0, Improving TypeScript Config Detection and Plugin Integrations
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
A Manim plugin designed to animate common data structures and algorithms
Manim DSA, short for Manim Data Structures & Algorithms, is a Manim plugin designed to animate common data structures and algorithms. Whether you are an educator looking to enhance your lectures, a student seeking to better understand these concepts, or a content creator making educational videos, Manim DSA provides a robust toolkit to bring abstract concepts to life.
To install Manim DSA, you can use pip
:
pip install manim-dsa
If you don't have Manim installed, please refer to the official Manim documentation for installation instructions.
Simply use the following line of code to import the package:
from manim_dsa import *
The following is an example Scene
where an array, a stack and a graph are created.
from manim import *
from manim_dsa import *
class Example(Scene):
def construct(self):
graph = {
'A': [('C', 11), ('D', 7)],
'B': [('A', 5), ('C', 3)],
'C': [('A', 11), ('B', 3)],
'D': [('A', 7), ('C', 4)],
}
nodes_and_positions = {
'A': LEFT * 1.5,
'B': UP * 2,
'C': RIGHT * 1.5,
'D': DOWN * 2,
}
mArray = (
MArray([1, 2, 3], style=MArrayStyle.BLUE)
.add_indexes()
.scale(0.9)
.add_label(Text("Array", font="Cascadia Code"))
.to_edge(LEFT, 1)
)
mStack = (
MStack([3, 7, 98, 1], style=MStackStyle.GREEN)
.scale(0.8)
.add_label(Text("Stack", font="Cascadia Code"))
.move_to(ORIGIN)
)
mGraph = (
MGraph(graph, nodes_and_positions, MGraphStyle.PURPLE)
.add_label(Text("Graph", font="Cascadia Code"))
.to_edge(RIGHT, 1)
)
self.play(Create(mArray))
self.play(Create(mStack))
self.play(Create(mGraph))
self.wait()
The result is as follows:
https://github.com/user-attachments/assets/05307dc9-65d9-4262-ae32-3fb53068c8e4
Documentation is in progress at ReadtheDocs.
If you need help installing or using Manim DSA, or you need to submit a bug report or feature request, please open an issue.
Contributions are welcome! Whether it’s reporting a bug, suggesting new features, or submitting pull requests, any help is greatly appreciated.
To demonstrate the value of Manim DSA, we ask that you cite Manim DSA in your work. Currently, the best way to cite Manim DSA is to go to the repository page (if you aren't already) and click the "cite this repository" button on the right sidebar. This will generate a citation in your preferred format, and will also integrate well with citation managers. For guidance on how to properly cite Manim, please refer to the Manim GitHub page.
Manim DSA is licensed under the MIT License. You are free to use, modify, and distribute this software as long as you include the original license.
FAQs
A Manim plugin to animate common data structures.
We found that manim-dsa demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.