system stringclasses 1
value | prompt stringlengths 78 12.9k | chosen stringlengths 370 27.9k | rejected stringlengths 327 28k | category stringclasses 5
values | source stringclasses 8
values |
|---|---|---|---|---|---|
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm studying hardware acceleration and want a side-by-side animation of a tiny network running on GPU, TPU, and NPU. Visualize throughput, latency, memory bandwidth, and parallelism, plus a simple scheduler showing kernel launches and data transfers. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class HardwareAccelerationVisualization(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
class HardwareAccelerationVisualization(Scene):
def construct(self):
title = Text('Hardware Acceleration', font_size=48, color=BLUE)
subtitle = Text('Supercharging Computing Performance', font_size=28, color=GRAY)
subtitle.next_to(title, DOWN, buff=0.3)
... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a 30-second Manim scene that explains a probability-style bell curve with a moving camera, a tracked cutoff point, shaded area, and a small dashboard table that changes focus from tail to center mass. | ```python
from manim import *
class CameraProbabilityCurveDashboardVariation(MovingCameraScene):
def construct(self):
def density(x):
return 1.35 * np.exp(-((x - 0.5) ** 2) / 1.6)
title = Text("Tail Region Versus Central Mass", font_size=35).to_edge(UP)
axes = Axes(x_range=[-3,... | ```python
from manim import *
class CameraProbabilityCurveDashboardVariation(MovingCameraScene):
def construct(self):
def density(x):
return 1.35 * np.exp(-((x - 0.5) ** 2) / 1.6)
title = Text("Tail Region Versus Central Mass", font_size=35)
axes = Axes(x_range=[-3, 4, 1], y_ra... | spatial_layout_overlap | synthetic_hard_neg:sebastianboehler/autoresearch-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class ForestTraversal(Scene):
def construct(self):
title = Text('Traversal of a Forest', font_size=40, weight=BOLD).to_edge(UP, buff=0.3)
subtitle = Text('Traversal logic: Sequentially traverse each tree within ... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class ForestTraversal(Scene):
def construct(self):
title = Text('Traversal of a Forest', font_size=40, weight=BOLD)
subtitle = Text('Traversal logic: Sequentially traverse each tree within the forest.', font_siz... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm exploring affine transformations. Show a 2D grid of feature points, then apply scale (zoom) and translate (shift) as an affine transform, with before/after frames and a small matrix decomposition visualization explaining how the transform is composed. | ```python
from manim import *
class AffineTransformationScene(Scene):
def construct(self):
title = Text('Affine Transformations', font_size=48, color=BLUE)
subtitle = Text('in Geometry', font_size=32, color=YELLOW)
subtitle.next_to(title, DOWN)
title_group = VGroup(title, subtitle)... | ```python
from manim import *
class AffineTransformationScene(Scene):
def construct(self):
title = Text('Affine Transformations', font_size=48, color=BLUE)
subtitle = Text('in Geometry', font_size=32, color=YELLOW)
subtitle.next_to(title, DOWN)
title_group = VGroup(title, subtitle)... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create an educational ManimCE animation on 'Torus Topology' (Tantalizing Topology: Unlocking the Mystery of the Torus): How can the fundamental group of a torus illustrate its topological properties compared to other surfaces like a sphere or a plane?
Visual style guidance: Bold and vibrant colors that enhance the stru... | ```python
from manim import *
class TorusTopologyScene(Scene):
def construct(self):
# Title
title = Text("Tantalizing Topology: Unlocking the Mystery of the Torus", font_size=32)
self.play(Write(title))
self.wait(0.5)
self.play(FadeOut(title))
# Introduction... | ```python
from manim import *
class TorusTopologyScene(Scene):
def construct(self):
# Title
title = Text("Tantalizing Topology: Unlocking the Mystery of the Torus", font_size=32)
self.play(Write(title))
self.wait(0.5)
self.play(FadeOut(title))
# Introduction... | spatial_layout_overlap | synthetic_hard_neg:bespokelabs/bespoke-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a 30-second Manim scene that compares a slow orbit and a fast orbit around the same center. Use ChangeSpeed to vary pacing during the explanation, include staged captions, and make the transition in tempo visually obvious. | ```python
from manim import *
class ChangeSpeedOrbitComparisonStory(Scene):
def construct(self):
title = Text("Speed Changes Can Reshape Attention", font_size=34).to_edge(UP)
left_orbit = Circle(radius=1.2, color=BLUE_D).shift(LEFT * 2.5 + DOWN * 0.2)
right_orbit = Circle(radius=1.2, color=... | ```python
from manim import *
class ChangeSpeedOrbitComparisonStory(Scene):
def construct(self):
title = Text("Speed Changes Can Reshape Attention", font_size=34).to_edge(UP)
left_orbit = Circle(radius=1.2, color=BLUE_D).shift(LEFT * 2.5 + DOWN * 0.2)
right_orbit = Circle(radius=1.2, color=... | legacy_api_hallucination | synthetic_hard_neg:sebastianboehler/autoresearch-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Target audience: first-year undergrads in linear algebra; prerequisites: vectors, eigenvalues, and basic matrix multiplication.
Create a visual tour of the spectral theorem for real symmetric matrices: start with a 2D scene showing eigenvectors as principal axes, then a 3D ellipsoid deformation demonstrating how A maps... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class MainScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# ---------- Ti... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class MainScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# ---------- Ti... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about autograd graphs and want to visualize the backward() call as a signal propagating backward through the graph. Light up each operation node in sequence with a fading glow, show gradient arrows flowing along edges, and include a short overlay that summarizes the chain rule steps as they propagate. | ```python
from manim import *
class AutogradGraphVisualization(Scene):
def construct(self):
title = Text('Autograd Graph Visualization', font_size=48, color=BLUE)
subtitle = Text('Understanding Backpropagation', font_size=28, color=GRAY)
subtitle.next_to(title, DOWN, buff=0.3)
self... | ```python
from manim import *
class AutogradGraphVisualization(Scene):
def construct(self):
title = Text('Autograd Graph Visualization', font_size=48, color=BLUE)
subtitle = Text('Understanding Backpropagation', font_size=28, color=GRAY)
subtitle
self.play(Write(title), Write(subti... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning tensor algebra and want a tactile animation of reshaping a 2x3 tensor into 3x2.
Visualize elements as colored tiles marching from one grid to the other, preserving order, with a side panel showing new shape.
Include a moment to discuss strides and why reshape is a view in many libraries. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TensorReshapingScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TensorReshapingScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class SudokuModeling(Scene):
def construct(self):
title = Tex('\\textbf{Sudoku Modeling (A Sudoku Puzzle)}', font_size=44).to_edge(UP, buff=0.3)
subtitle = Tex('Applications of Propositional Logic', font_size=32... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class SudokuModeling(Scene):
def construct(self):
title = Tex('\\textbf{Sudoku Modeling (A Sudoku Puzzle)}', font_size=44)
subtitle = Tex('Applications of Propositional Logic', font_size=32, color=BLUE)
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm studying hardware acceleration and want a side-by-side animation of a tiny network running on GPU, TPU, and NPU. Visualize throughput, latency, memory bandwidth, and parallelism, plus a simple scheduler showing kernel launches and data transfers. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class HardwareAccelerationScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class HardwareAccelerationScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning how an MLP computes logits; please visualize a forward pass Input -> Linear1 -> Tanh -> Linear2 -> Logits, with the shapes displayed between layers (e.g., [B, D_in] -> [B, D_hidden] -> [B, D_hidden] -> [B, D_out]). Include a concrete example. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class MLPForwardPass(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)... | ```python
from manim import *
import numpy as np
class MLPForwardPass(Scene):
def construct(self):
title = Text('MLP Forward Pass Visualization', font_size=36, color=BLUE)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
self.wait(0.5)
input_layer = self.cr... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Here’s an enhanced version of the animation with additional features:
The scene begins with a green line extending diagonally from (-2, -2) to (2, 2), as in the original script, but now it is dynamically drawn with a smooth `Create` animation. Once the line is fully formed, a coordinate system fades in to provide sp... | ```python
from manim import *
class EnhancedLineToParabola(Scene):
def construct(self):
# Create the initial line y = x
line = Line(start=[-2, -2, 0], end=[2, 2, 0], color=GREEN)
line_label = MathTex("y = x", color=GREEN).to_corner(UR)
# Animate the line being drawn
... | ```python
from manim import *
class EnhancedLineToParabola(Scene):
def construct(self):
# Create the initial line y = x
line = Line(start=[-2, -2, 0], end=[2, 2, 0], color=GREEN)
line_label = TexMobject("y = x", color=GREEN).to_corner(UR)
# Animate the line being drawn
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm studying BN and want to visualize the forward pass of a BN layer with a mini-batch of 4 samples. Animate each sample's path through mean/variance estimation, scaling, and shifting by gamma/beta, then show the resulting outputs and a summary of batch statistics. | ```python
from manim import *
class BatchNormalizationForwardPass(Scene):
def construct(self):
title = Text('Batch Normalization', font_size=48, color=BLUE)
subtitle = Text('Forward Pass Visualization', font_size=32, color=WHITE)
title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3... | ```python
from manim import *
class BatchNormalizationForwardPass(Scene):
def construct(self):
title = Text('Batch Normalization', font_size=48, color=BLUE)
subtitle = Text('Forward Pass Visualization', font_size=32, color=WHITE)
title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Here’s an enhanced version of the animation with additional features:
The animation begins by smoothly drawing a blue rectangle (width=4, height=2) at the center of the screen using `Create()`, followed by a label "Rectangle" appearing below it in a matching color. As the rectangle pulses with a subtle glow effect, ... | ```python
from manim import *
class EnhancedRectangleAnimation(Scene):
def construct(self):
# Create initial rectangle
rect = Rectangle(width=4, height=2, color=BLUE)
rect_label = Tex("Rectangle", color=BLUE).next_to(rect, DOWN)
# Draw rectangle and label
self.play(... | ```python
from manim import *
class EnhancedRectangleAnimation(Scene):
def construct(self):
# Create initial rectangle
rect = Rectangle(width=4, height=2, color=BLUE)
rect_label = Tex("Rectangle", color=BLUE).next_to(rect, DOWN)
# Draw rectangle and label
self.play(... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching undergrads a course on AI-assisted coding and want a vivid visualization of how a GPT-based code generator like Copilot turns a natural-language prompt into code. Show the encoding of the prompt, the autoregressive token generation, and how repository context influences the next-token predictions. Include ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class GPTCodeGenScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# 1. Tit... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class GPTCodeGenScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# 1. Tit... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning number theory and want a visual demonstration of the Euclidean algorithm using rectangles and tiling. Start with two rectangles of sides a and b, repeatedly subtract the smaller from the larger and show the remainder tile the bigger rectangle, leading to the gcd. Include a step-by-step narration of how the... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class EuclideanAlgorithmScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
L... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class EuclideanAlgorithmScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
L... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad course on model capacity and want a 'capacity' slider that increases parameter count. Show training and development error forming a U-shaped curve as capacity grows, highlighting the bias-variance tradeoff. Animate multiple checkpoints with different regularization settings and annotate optima... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class BiasVarianceTradeoffScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_mode... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class BiasVarianceTradeoffScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_mode... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class DirectXIntro(Scene):
def construct(self):
context_text = Text('Graphics Rendering Pipeline | Overview of OpenGL/DirectX', font_size=16, color=GRAY).to_corner(UR)
self.add(context_text)
title = Titl... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class DirectXIntro(Scene):
def construct(self):
context_text = Text('Graphics Rendering Pipeline | Overview of OpenGL/DirectX', font_size=16, color=GRAY)
self.add(context_text)
title = Title('Introductio... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Display a square centered on the screen. Rotate the square 45 degrees, then transform it into a circle. Finally, change the circle’s fill to pink with 50% transparency. | ```python
from manim import *
class AnimatedSquareToCircle(Scene):
def construct(self):
circle = Circle() # create a circle
square = Square() # create a square
self.play(Create(square)) # show the square on screen
self.play(square.animate.rotate(PI / 4)) # rotate the square
... | ```python
from manim import *
class AnimatedSquareToCircle(Scene):
def construct(self):
circle = Circle() # create a circle
square = Square() # create a square
self.play(ShowCreation(square)) # show the square on screen
self.play(square.animate.rotate(PI / 4)) # rotate the squa... | legacy_api_hallucination | synthetic_hard_neg:SuienR/ManimBench-v1 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about neural saturations and backprop. I want to visualize Tanh activations near -1 and 1 where gradients vanish; show activations as they approach the extremes and shrink the gradient arrows to near zero, while middle values keep larger arrows. Include a short two-scene demonstration with gradient flow ov... | ```python
import math
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TanhGradientFlowScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
import math
from manim import *
class TanhGradientFlowScene(Scene):
def construct(self):
title = Text('Tanh Activations & Gradient Flow', font_size=40)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
axes = Axes(x_range=[-4, 4, 1], y_range=[-1.5, 1.5, 0.... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Here is the enhanced animation description with additional features:
The animation begins by constructing the coordinate axes and plotting the quadratic function f(x) = 0.1x² as a smooth green curve. The area under the curve between x=0.3 and x=4.5 is highlighted with a gradient fill transitioning from red to green. A... | ```python
from manim import *
import numpy as np
class QuadraticIntegralVisualization(Scene):
def construct(self):
# Create axes
axes = Axes(
x_range=[0, 5, 1],
y_range=[0, 2, 0.5],
axis_config={"color": BLUE},
)
axes_labels = axes.get_axis_labels... | ```python
from manim import *
import numpy as np
class QuadraticIntegralVisualization(Scene):
def construct(self):
# Create axes
axes = Axes(axis_color=BLUE,
x_range=[0, 5, 1],
y_range=[0, 2, 0.5],
axis_config={"color": BLUE},
)
axes_labels = axe... | invalid_axes_kwarg | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning optimization dynamics and want to see LR decay in action. Animate an optimizer step where the learning rate decays over epochs, with the step size shrinking like a staircase. Plot a loss contour and the descent path, and compare a constant LR vs. decayed LR across epochs. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class LRDecayDynamicsScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="ba... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class LRDecayDynamicsScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="ba... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Can you create a detailed animation that visually demonstrates how a simple convolutional neural network goes through the forward pass process using an example image I have? The animation should start by showing the image, followed by the layers of the network, including convolutional layers, max pooling, and feedforwa... | ```python
from manim import *
class DoubleIntegralExample(Scene):
def construct(self):
# Displaying the problem
problem = MathTex(r"\int_{0}^{1} \int_{0}^{\sqrt{1-y^{2}}} x^2 dx\,dy")
self.play(Write(problem))
self.wait(1)
# Explanation for inner integral
explanatio... | ```python
from manim import *
class DoubleIntegralExample(Scene):
def construct(self):
# Displaying the problem
problem = TexMobject(r"\int_{0}^{1} \int_{0}^{\sqrt{1-y^{2}}} x^2 dx\,dy")
self.play(Write(problem))
self.wait(1)
# Explanation for inner integral
explana... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | The following Manim CE scene failed to compile. Truncated traceback:
NameError: name 'shaded_area_missing' is not defined
Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts.
```python
from manim import *
class AreaUnderCurveExample(Scene):
def constru... | ```python
from manim import *
class AreaUnderCurveExample(Scene):
def construct(self):
# Displaying the function to integrate
function_text = MathTex(r"f(x) = x^2")
self.play(Write(function_text))
self.wait(1)
# Showing the area under the curve to be calculated
... | ```python
from manim import *
class AreaUnderCurveExample(Scene):
def construct(self):
# Displaying the function to integrate
function_text = TexMobject(r"f(x) = x^2")
self.play(Write(function_text))
self.wait(1)
# Showing the area under the curve to be calculated
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching undergrads optimization and want a vivid visual of simulated annealing that shows escaping local minima. I want a 3D energy landscape where a point explores neighboring states, hopping over barriers when the temperature is high and settling as T cools. Include the Metropolis acceptance step and a dynamic t... | ```python
from manim import *
import random
import math
class SimulatedAnnealingVisualization(Scene):
def construct(self):
title = Text('Simulated Annealing Visualization', font_size=36, color=BLUE)
subtitle = Text('An AI Optimization Technique', font_size=24, color=GRAY)
title.to_edge(UP,... | ```python
from manim import *
import random
import math
class SimulatedAnnealingVisualization(Scene):
def construct(self):
title = Text('Simulated Annealing Visualization', font_size=36, color=BLUE)
subtitle = Text('An AI Optimization Technique', font_size=24, color=GRAY)
title
sub... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about embedding layers and backpropagation. Visualize the embedding backward pass so that gradients flow only to the rows corresponding to the current batch indices, with other rows frozen. Display a matrix of embeddings, gradient arrows targeting active rows, and a clear before/after comparison. Include a... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class EmbeddingLayersAndBackpropagation(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class EmbeddingLayersAndBackpropagation(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Explain the spectral theorem for real symmetric matrices with visual intuition.
Visualize 2D and 3D transformations: show a unit circle mapped to an ellipse along eigen-directions, then decompose A = Q Λ Q^T and animate alignment with eigenvectors.
Add a slider to vary A's entries, display eigenvalues/eigenvectors, and... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class SpectralTheoremScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class SpectralTheoremScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation for an 11th grade chemistry lesson on fractional distillation in 16:9 format. Start with a title slide that says "Fractional Distillation" with a subtitle "Separating Mixtures Based on Boiling Points".
Then display the question: "What is the process called where a mixture of liquids is separa... | ```python
from manim import *
import numpy as np
import random
import math
class FractionalDistillation(Scene):
def construct(self):
# --- SCENE 1: TITLE ---
title = Text("Fractional Distillation", font_size=54, color=BLUE_B)
subtitle = Text("Separating Mixtures Based on Boiling Points", fo... | ```python
from manim import *
import numpy as np
import random
import math
class FractionalDistillation(Scene):
def construct(self):
# --- SCENE 1: TITLE ---
title = Text("Fractional Distillation", font_size=54, color=BLUE_B)
subtitle = Text("Separating Mixtures Based on Boiling Points", fo... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning vector calculus and want intuition for curl as rotation.
Animate a 3D vector field with a color map that encodes local rotation, plus a small loop illustrating circulation and the line integral.
Show a side-by-side visualization of the curl scalar field and how Stokes' theorem relates the loop integral to ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class CurlIntuitionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class CurlIntuitionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class MasterTheoremExamples(Scene):
def construct(self):
context_title = Text('Recursive and Divide-and-Conquer Strategies', font_size=24, color=GRAY)
context_title.to_edge(UP, buff=0.3)
section_title = ... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class MasterTheoremExamples(Scene):
def construct(self):
context_title = Text('Recursive and Divide-and-Conquer Strategies', font_size=24, color=GRAY)
context_title.to_edge(UP, buff=0.3)
section_title = ... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation for a Grade 12 Chemistry lesson on Lanthanoid Contraction with a 16:9 aspect ratio. Structure the video as follows:
SCENE 1 - Title and Introduction (0-3 seconds):
Display the title "Lanthanoid Contraction" in large text. Below it, show a brief subtitle: "Understanding Changes in Atomic Radius... | ```python
from manim import *
import numpy as np
import math
class LanthanoidContraction(Scene):
def construct(self):
# --- SCENE 1: Title and Introduction (0-3s) ---
# Time allocated: 3.0s
title = Text("Lanthanoid Contraction", font_size=54, color="#d4d4d4")
subtitle = Tex... | ```python
from manim import *
import numpy as np
import math
class LanthanoidContraction(Scene):
def construct(self):
# --- SCENE 1: Title and Introduction (0-3s) ---
# Time allocated: 3.0s
title = Text("Lanthanoid Contraction", font_size=54, color="#d4d4d4")
subtitle = Tex... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about neural saturations and backprop. I want to visualize Tanh activations near -1 and 1 where gradients vanish; show activations as they approach the extremes and shrink the gradient arrows to near zero, while middle values keep larger arrows. Include a short two-scene demonstration with gradient flow ov... | ```python
import math
from manim import *
class TanhGradientFlowScene(Scene):
def construct(self):
title = Text('Tanh Activations & Gradient Flow', font_size=40)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
axes = Axes(x_range=[-4, 4, 1], y_range=[-1.5, 1.5, 0.... | ```python
import math
from manim import *
class TanhGradientFlowScene(Scene):
def construct(self):
title = Text('Tanh Activations & Gradient Flow', font_size=40)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
axes = Axes(axis_color=BLUE, x_range=[-4, 4, 1], y_ran... | invalid_axes_kwarg | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching NLP embeddings and want to visualize nearest-neighbor search in a high-dimensional space.
Place a query embedding and animate distances to its closest neighbors, highlighting the top-k results with labels and distance bars.
Show a dynamic embedding space projection and a side plot tracking distance metrics... | ```python
from manim import *
class NLPEmbeddingsNearestNeighbor(Scene):
def construct(self):
title = Text('NLP Embeddings &', font_size=48, color=BLUE)
subtitle = Text('Nearest Neighbor Search', font_size=42, color=TEAL)
title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3)
... | ```python
from manim import *
class NLPEmbeddingsNearestNeighbor(Scene):
def construct(self):
title = Text('NLP Embeddings &', font_size=48, color=BLUE)
subtitle = Text('Nearest Neighbor Search', font_size=42, color=TEAL)
title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3)
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad calculus-informed ML course and want a clean manual derivation of the chain rule for f(g(h(x))). Show f∘g∘h with x, h(x), g(h(x)), f(g(h(x))), and animate gradients with respect to each intermediate variable, including a numeric check on a simple example. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class ChainRuleNested(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
#... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class ChainRuleNested(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
#... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation for an 8th grade advanced Social Studies class explaining State intervention in societal matters. The video should be 16:9 format and follow this structure:
1. Title slide: "State Intervention in Society" in large text, centered on screen
2. Display the question: "Provide an example of how th... | ```python
from manim import *
import numpy as np
class StateIntervention(Scene):
def construct(self):
# ---------------------------------------------------------
# SETUP
# ---------------------------------------------------------
self.camera.background_color = "#0f0f0f"
... | ```python
from manim import *
import numpy as np
class StateIntervention(Scene):
def construct(self):
# ---------------------------------------------------------
# SETUP
# ---------------------------------------------------------
self.camera.background_color = "#0f0f0f"
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching optimization visualization to undergrads and want a clear clip of gradient clipping in action. Show a single huge gradient vector being scaled down to a fixed norm, with a dashed circle representing the clipping bound. Animate multiple steps as the gradient approaches the bound and then is projected onto t... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class GradientClippingVisualization(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cac... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class GradientClippingVisualization(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cac... | invalid_axes_kwarg | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Construct a clean Manim CE scene initializing DecimalNumber with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used.
```python
from manim import *
import numpy as np
class ApiValidDecimalNumber332(Scene):
def construct(self):
obj =... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class ApiValidDecimalNumber332(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class ApiValidDecimalNumber332(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class RegionGrowing(Scene):
def construct(self):
title = Text('Region Segmentation: Region Growing', font_size=36, weight=BOLD)
title.to_edge(UP, buff=0.5)
underline = Underline(title, color=BLUE)
... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class RegionGrowing(Scene):
def construct(self):
title = Text('Region Segmentation: Region Growing', font_size=36, weight=BOLD)
title
underline = Underline(title, color=BLUE)
self.play(Write(titl... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class HapticFeedbackScene(Scene):
def construct(self):
context = Text('Embodied Intelligence: Human-Machine Interaction and Collaboration > Natural Interaction Interfaces', font_size=16, color=GRAY).to_edge(UP, buff=0.2... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class HapticFeedbackScene(Scene):
def construct(self):
context = Text('Embodied Intelligence: Human-Machine Interaction and Collaboration > Natural Interaction Interfaces', font_size=16, color=GRAY)
title = Text... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | As an undergraduate learning linear algebra, I want a visualization of the spectral theorem for real symmetric matrices.
Show how any vector decomposes into eigenvectors and how the matrix scales along those directions, with the eigenspaces highlighted in 3D.
I’d like a sequence of scenes: intuition first, then the alg... | ```python
from manim import *
class SpectralTheoremScene(Scene):
def construct(self):
title = Text('Spectral Theorem for Real Symmetric Matrices', font_size=36)
title.to_edge(UP)
self.play(Write(title), run_time=2.0)
self.wait(0.5)
self.play(FadeOut(title))
section_... | ```python
from manim import *
class SpectralTheoremScene(Scene):
def construct(self):
title = Text('Spectral Theorem for Real Symmetric Matrices', font_size=36)
title
self.play(Write(title), run_time=2.0)
self.wait(0.5)
self.play(FadeOut(title))
section_title = Text... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about how pre-activations change shape; animate a histogram that starts bell-curved and gradually becomes skewed as a parameter shifts, with annotations on skewness, mean shift, and tails, plus a quick note on implications for activation. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import random
import numpy as np
class PreActivationSkewnessScene(VoiceoverScene):
def construct(self):
# Set up speech service
self.set_speech_service(
GTTSSer... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import random
import numpy as np
class PreActivationSkewnessScene(VoiceoverScene):
def construct(self):
# Set up speech service
self.set_speech_service(
GTTSSer... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a 30-second Manim scene that explains a 2D vector field with a probe particle. Show the background field, sample arrows at three points, and then move one probe along a curved path while a traced path builds up. | ```python
from manim import *
class VectorFieldProbeWalkthrough(Scene):
def construct(self):
def field_fn(point):
return np.array([0.8 - 0.25 * point[1], 0.35 * point[0], 0.0])
def scaled_tip(point, scale=0.85):
vector = field_fn(point)
norm = max(np.linalg.norm... | ```python
from manim import *
class VectorFieldProbeWalkthrough(Scene):
def construct(self):
def field_fn(point):
return np.array([0.8 - 0.25 * point[1], 0.35 * point[0], 0.0])
def scaled_tip(point, scale=0.85):
vector = field_fn(point)
norm = max(np.linalg.norm... | spatial_layout_overlap | synthetic_hard_neg:sebastianboehler/autoresearch-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning the gamma distribution and want a visualization that builds intuition for its shape changes.
Animate how the pdf, mean, and variance evolve when you vary shape k and scale theta, with side-by-side plots.
Include a demonstration that sums of exponentials yield a gamma distribution and show implications for ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import math
class GammaDistributionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import math
class GammaDistributionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad algebra course and want a dynamic visualization of the quadratic formula and discriminant. Animate the parabola y equals a x^2 + b x + c as a b c vary and reveal real vs complex roots depending on D equals b^2 - 4 a c. Include a parameter sweep showing real roots D greater or equal zero and co... | ```python
from manim import *
class QuadraticFormulaScene(Scene):
def construct(self):
title = Text('Quadratic Formula', font_size=48, color=BLUE)
subtitle = Text('& The Discriminant', font_size=36, color=YELLOW)
subtitle.next_to(title, DOWN)
full_title = VGroup(title, subtitle)
... | ```python
from manim import *
class QuadraticFormulaScene(Scene):
def construct(self):
title = Text('Quadratic Formula', font_size=48, color=BLUE)
subtitle = Text('& The Discriminant', font_size=36, color=YELLOW)
subtitle.next_to(title, DOWN)
full_title = VGroup(title, subtitle)
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | The following Manim CE scene failed to compile. Truncated traceback:
AttributeError: VGroup object has no attribute 'c2p'
Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts.
```python
from manim import *
class TracedPathExample(Scene):
def construct(s... | ```python
from manim import *
class TracedPathExample(Scene):
def construct(self):
square = Square(color=PURPLE)
trace_path = TracedPath(square.get_center)
self.add(square, trace_path)
self.play(square.animate.shift(RIGHT*3), run_time=2)
self.wait(0.5)
self.play(squa... | ```python
from manim import *
class TracedPathExample(Scene):
def construct(self):
square = Square(color=PURPLE)
trace_path = TracedPath(square.get_center)
self.add(square, trace_path)
self.play(square.animate, run_time=2)
self.wait(0.5)
self.play(square.animate, run... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | The following Manim CE script crashed with this traceback:
```text
ValueError: latex error converting to dvi. Unicode character ₁ (U+2081) not supported.
```
Fix the bug and provide the corrected, fully compilable Manim CE code:
```python
from manim import *
import numpy as np
class ApiValidDecimalMatrix289(Scene):... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class ApiValidDecimalMatrix289(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class ApiValidDecimalMatrix289(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class FunctionLecture(Scene):
def construct(self):
title_1 = Tex('\\textbf{Theorem 19 (Function Composition)}').to_edge(UP)
title_1.set_color(BLUE)
text_1 = Tex('Let $F: A \\to B$ and $G: B \\to C$ be fu... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class FunctionLecture(Scene):
def construct(self):
title_1 = Tex('\\textbf{Theorem 19 (Function Composition)}')
title_1.set_color(BLUE)
text_1 = Tex('Let $F: A \\to B$ and $G: B \\to C$ be functions.')
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps.
```python
from manim import *
import numpy as np
import sympy as sp
class SciComputeScene1423(Scene):
def construct(self):
import sympy as sp
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import sympy as sp
MARGIN = 0.5
class SciComputeScene1423(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import sympy as sp
MARGIN = 0.5
class SciComputeScene1423(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Here’s an enhanced version of the animation with additional features:
The animation begins by smoothly drawing a blue circle at the center of the screen using `Create(circle)`, followed by the simultaneous appearance of a red equilateral triangle (with vertices at (-1,-1), (1,-1), and (0,1)) using `DrawBorderThenFill(... | ```python
from manim import *
class CircleTriangleTransformation(Scene):
def construct(self):
# Create shapes
circle = Circle(color=BLUE, radius=1.5)
triangle = Polygon(
[-1, -1, 0],
[1, -1, 0],
[0, 1, 0],
color=RED,
fill_opacity=0... | ```python
from manim import *
class CircleTriangleTransformation(Scene):
def construct(self):
# Create shapes
circle = Circle(color=BLUE, radius=1.5)
triangle = Polygon(
[-1, -1, 0],
[1, -1, 0],
[0, 1, 0],
color=RED,
fill_opacity=0... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an NLP course and want to illustrate a causal mask matrix used in Transformers. Visualize a square attention mask where the upper triangle is filled with -inf and the lower triangle with 0. Animate the mask being applied to an attention score matrix, show how logits are masked, and highlight the effect on ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class CausalMaskScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# -------... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class CausalMaskScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# -------... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create an interactive Manim CE animation demonstrating: Orbital mechanics simulation using add_updater with dt. Use updaters and ValueTracker. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
MARGIN = 0.5
class OrbitalMechanicsUpdater(VoiceoverScene):
def construct(self):
# [SETUP]
self.set_speech_service(GTTSService(transcription_model="base"))
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
MARGIN = 0.5
class OrbitalMechanicsUpdater(VoiceoverScene):
def construct(self):
# [SETUP]
self.set_speech_service(GTTSService(transcription_model="base"))
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching a course on video processing and want a rich visualization of a video pipeline: decoding, color-space conversion, filtering, and compression. Show frames flowing through stages, with metrics like frame rate and latency, and a 2D/3D array representing buffers. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class VideoProcessingPipelineScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class VideoProcessingPipelineScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation for an 11th grade advanced Political Science lesson on the Indian Constitution and Social Transformation. The video should be in 16:9 format and follow this structure:
1. Title slide: Display "The Indian Constitution and Social Transformation" centered on screen with a subtle background color.... | ```python
from manim import *
import numpy as np
class ConstitutionSocialTransformation(Scene):
def construct(self):
# Setting the background color explicitly as requested for the theme
self.camera.background_color = "#0f0f0f"
# 1. Title Slide
title = Text(
"The Indian ... | ```python
from manim import *
import numpy as np
class ConstitutionSocialTransformation(Scene):
def construct(self):
# Setting the background color explicitly as requested for the theme
self.camera.background_color = "#0f0f0f"
# 1. Title Slide
title = Text(
"The Indian ... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching undergrads ML and want a vivid visualization of how a forward hook and a backward hook intercept activations and gradients. Show the forward path with activations flowing to a hook node, color-coded by stage, and then the backward path capturing gradients routed back to the module. Include a side diagram l... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class HooksVisualizationScene(MovingCameraScene, VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model=... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class HooksVisualizationScene(MovingCameraScene, VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model=... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Here’s an enhanced version of the animation with additional features:
The animation begins by constructing the axes with labeled *x* and *y* axes, followed by the gradual plotting of the quadratic function *f(x) = x²* in red. As the curve appears, Riemann rectangles fill the area under it from *x = 0* to *x = 2*, co... | ```python
from manim import *
class RiemannSumVisualization(Scene):
def construct(self):
# Create axes
axes = Axes(
x_range=[0, 2.5, 0.5],
y_range=[0, 5, 1],
x_length=7,
y_length=5,
axis_config={"color": BLUE},
x_axis_config={
... | ```python
from manim import *
class RiemannSumVisualization(Scene):
def construct(self):
# Create axes
axes = Axes(
x_range=[0, 2.5, 0.5],
y_range=[0, 5, 1],
x_length=7,
y_length=5,
axis_config={"color": BLUE},
x_axis_config={
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm studying how training time scales with depth and want a bar chart showing linear growth. Animate bars for depth on the x-axis and training time on the y-axis, with a line showing the expected linear trend. Add a debiasing overhead bar to contrast constant factors and show a brief caption about assumptions. Include ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TrainingTimeScalingScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TrainingTimeScalingScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Display a red 3D helical spring-like curve winding upward along the z-axis, defined by the parametric equations \((1.2 \cos(u), 1.2 \sin(u), 0.05u)\) for \(u\) ranging from \(-3\tau\) to \(5\tau\), overlaid on a 3D coordinate axis. The camera is set to an angled perspective, and the scene appears without animation. | ```python
from manim import *
class ThreeDParametricSpring(ThreeDScene):
def construct(self):
curve1 = ParametricFunction(
lambda u: (
1.2 * np.cos(u),
1.2 * np.sin(u),
u * 0.05
), color=RED, t_range = (-3*TAU, 5*TAU, 0.01)
).s... | ```python
from manim import *
class ThreeDParametricSpring(Scene):
def construct(self):
curve1 = ParametricFunction(
lambda u: (
1.2 * np.cos(u),
1.2 * np.sin(u),
u * 0.05
), color=RED, t_range = (-3*TAU, 5*TAU, 0.01)
).set_sha... | wrong_3d_scene_base | synthetic_hard_neg:SuienR/ManimBench-v1 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation for an Economics lesson on Human Capital Formation at the intermediate level (Grade 11). The video should be 16:9 aspect ratio and follow a classroom presentation style.
Start by displaying the title "Human Capital Formation" with a subtitle "Understanding Human Development" at the top of the ... | ```python
from manim import *
import numpy as np
class HumanCapitalFormation(Scene):
def construct(self):
# 1. Introduction
# Background is set by default to dark in Manim usually, but ensuring it fits the theme
self.camera.background_color = "#0f0f0f"
# Title Setup
... | ```python
from manim import *
import numpy as np
class HumanCapitalFormation(Scene):
def construct(self):
# 1. Introduction
# Background is set by default to dark in Manim usually, but ensuring it fits the theme
self.camera.background_color = "#0f0f0f"
# Title Setup
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I teach an upper-level linear algebra course and want a rich Manim animation to build intuition for QR decomposition and least squares.
Show Gram–Schmidt on a 3D point cloud, visualize orthogonality step by step, then fit a plane to data with least-squares and animate the residuals.
Include multiple scenes: decompositi... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class QRDecompositionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
class QRDecompositionScene(Scene):
def construct(self):
title = Text('QR Decomposition & Least Squares', font_size=40)
self.play(Write(title), run_time=2.0)
self.wait(0.5)
self.play(title.animate.scale(0.7).to_edge(UP))
axes = Axes(x_range=[0, ... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a step-by-step educational Manim CE lecture scene explaining: Proof of Pythagorean Theorem via geometric rearrangement.
```python
from manim import *
import numpy as np
class PedagogicalScene481(Scene):
def construct(self):
title = Title("Pythagorean Theorem: $a^2 + b^2 = c^2$")
formula = M... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class PedagogicalScene481(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class PedagogicalScene481(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching a graduate course on autonomous safety systems. Build a visualization of a safety monitor for driving: fusion of radar/LiDAR/camera, anomaly detection, and a real-time alert state machine, with a simulated road scene and failure modes. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class SafetyMonitoringScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# ─... | ```python
from manim import *
class SafetyMonitoringScene(Scene):
def construct(self):
title = Text('Safety Monitoring in Autonomous Systems', font_size=36)
subtitle = Text('Ensuring Reliability and Trust in AI', font_size=24, color=BLUE)
title_group = VGroup(title, subtitle).arrange(DOWN,... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | The following Manim CE scene failed to compile. Truncated traceback:
NameError: name 'electron_2_missing' is not defined
Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts.
```python
from manim import *
class ElementSymbol(Scene):
def construct(self):... | ```python
from manim import *
class ElementSymbol(Scene):
def construct(self):
symbol = Tex("He", color=WHITE, font_size=144)
electron_orbit = Ellipse(width=3.6, height=2.2, color=YELLOW_C).shift(DOWN*0.5)
electron_1 = Dot(color=RED, radius=0.1).shift(LEFT*1.8)
electron_2 = Dot(colo... | ```python
from manim import *
class ElementSymbol(Scene):
def construct(self):
symbol = Tex("He", color=WHITE, font_size=144)
electron_orbit = Ellipse(width=3.6, height=2.2, color=YELLOW_C)
electron_1 = Dot(color=RED, radius=0.1)
electron_2 = Dot(color=RED, radius=0.1)
elem... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm exploring Transformer variants Mixtral and want to visualize how mixtures of experts route attention across tokens and layers.
Show gating decisions, sparsity patterns, and a few example sentences illustrating routing paths.
Demonstrate the effect on computation speed and memory, with comparisons to standard multih... | ```python
from manim import *
class MixturesOfExpertsAttentionVisualization(Scene):
def construct(self):
title = Text('Mixtures of Experts', font_size=48, color=BLUE_D)
subtitle = Text('Attention Visualization', font_size=36, color=BLUE_C)
subtitle.next_to(title, DOWN)
self.play(Wr... | ```python
from manim import *
class MixturesOfExpertsAttentionVisualization(Scene):
def construct(self):
title = Text('Mixtures of Experts', font_size=48, color=BLUE_D)
subtitle = Text('Attention Visualization', font_size=36, color=BLUE_C)
subtitle
self.play(Write(title), run_time=... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Display 3D axes. Set the camera orientation to a specific angle. Show the text "This is a 3D text" fixed in the upper left corner of the frame. | ```python
from manim import *
class FixedInFrameMObjectTest(ThreeDScene):
def construct(self):
axes = ThreeDAxes()
self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)
text3d = Text("This is a 3D text")
self.add_fixed_in_frame_mobjects(text3d)
text3d.to_corner(... | ```python
from manim import *
class FixedInFrameMObjectTest(Scene):
def construct(self):
axes = ThreeDAxes()
self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)
text3d = Text("This is a 3D text")
self.add_fixed_in_frame_mobjects(text3d)
text3d.to_corner(UL)
... | wrong_3d_scene_base | synthetic_hard_neg:SuienR/ManimBench-v1 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Why do different symplectic structures exist in four-dimensional spaces and how are they differentiated by the exotic smooth structures of 4-manifolds? | ```python
from manim import *
class SymplecticGeometryScene(Scene):
def construct(self):
# Title
title = Text("Unraveling the Dance: Symplectic Geometry", font_size=32)
subtitle = Text("in Four Dimensions", font_size=28)
subtitle.next_to(title, DOWN)
title_group = VGroup(tit... | ```python
from manim import *
class SymplecticGeometryScene(Scene):
def construct(self):
# Title
title = Text("Unraveling the Dance: Symplectic Geometry", font_size=32)
subtitle = Text("in Four Dimensions", font_size=28)
subtitle
title_group = VGroup(title, subtitle)
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation for a high school biology lesson on population density. The video should be 16:9 format.
Start with a title screen displaying "Population Density in Ecology" centered on the screen with a subtitle "Grade 12 Biology" below it.
Next, show the main question in large readable text: "What is the t... | ```python
from manim import *
import numpy as np
import random
import math
class PopulationDensityScene(Scene):
def construct(self):
# ---------------------------------------------------------
# 1. Title Screen
# ---------------------------------------------------------
title = Text... | ```python
from manim import *
import numpy as np
import random
import math
class PopulationDensityScene(Scene):
def construct(self):
# ---------------------------------------------------------
# 1. Title Screen
# ---------------------------------------------------------
title = Text... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching a course on numerical stability in neural nets and want to visualize log_softmax on a vector, emphasizing the max-subtraction trick and how it prevents overflow.
```python
from manim import *
import numpy as np
class AOSTrajectoryScene342(Scene):
def construct(self):
# Show `log_softmax` appl... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
MARGIN = 0.5
class AOSTrajectoryScene342(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_frac
max_... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
MARGIN = 0.5
class AOSTrajectoryScene342(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_frac
max_... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an advanced ML class and want to illustrate the effective rank of activations in a layer. Animate the singular value spectrum and show how many dimensions contribute meaningfully. Display a dynamic bar or heatmap of explained variance as you progressively keep top-k components. Provide intuitive captions a... | ```python
from manim import *
import numpy as np
MARGIN = 0.5
class EffectiveRankVisualization(VoiceoverScene):
def construct(self):
# [SETUP]
self.set_speech_service(GTTSService(transcription_model="base"))
# Simulate singular values (decaying spectrum typical of neural activatio... | ```python
from manim import *
import numpy as np
MARGIN = 0.5
class EffectiveRankVisualization(VoiceoverScene):
def construct(self):
# [SETUP]
self.set_speech_service(GTTSService(transcription_model="base"))
# Simulate singular values (decaying spectrum typical of neural activatio... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create an educational ManimCE animation on 'Wilson's Theorem' (Wilson's Theorem Unveiled: Looping Through Primes on the Circle): How can Wilson's Theorem be visually represented using modular arithmetic on the unit circle?
Visual style guidance: A minimalist, elegant visual style with a deep blue and gold color scheme.... | ```python
from manim import *
class WilsonsTheoremScene(Scene):
def construct(self):
# Set background color
self.camera.background_color = "#0A1A2A"
# Title
title = Text("Wilson's Theorem Unveiled", color=GOLD)
subtitle = Text("Looping Through Primes on the Circle",... | ```python
from manim import *
class WilsonsTheoremScene(Scene):
def construct(self):
# Set background color
self.camera.background_color = "#0A1A2A"
# Title
title = Text("Wilson's Theorem Unveiled", color=GOLD)
subtitle = Text("Looping Through Primes on the Circle",... | legacy_api_hallucination | synthetic_hard_neg:bespokelabs/bespoke-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about how pre-activations change shape; animate a histogram that starts bell-curved and gradually becomes skewed as a parameter shifts, with annotations on skewness, mean shift, and tails, plus a quick note on implications for activation. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import random
import numpy as np
class PreActivationSkewnessScene(VoiceoverScene):
def construct(self):
# Set up speech service
self.set_speech_service(
GTTSSer... | ```python
from manim import *
import random
import numpy as np
class PreActivationSkewnessScene(Scene):
def construct(self):
title = Text('Pre-Activations & Histogram Skewness', font_size=40, color=BLUE)
subtitle = Text('Understanding Neural Network Behavior', font_size=24, color=GRAY)
sub... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning how running mean and variance converge to population statistics. Animate two lines that start apart and gradually settle toward a fixed population line as more data streams in, with a timeline of sample count and labels for bias correction. Show how train vs eval behavior depends on those limits and includ... | ```python
import random
from manim import *
class ConvergenceRunningMeanVariance(Scene):
def construct(self):
self.camera.background_color = '#1a1a2e'
title = Text('Convergence of Running Mean & Variance', font_size=36, color='#eee')
subtitle = Text('Incremental Statistics for Machine Lear... | ```python
import random
from manim import *
class ConvergenceRunningMeanVariance(Scene):
def construct(self):
self.camera.background_color = '#1a1a2e'
title = Text('Convergence of Running Mean & Variance', font_size=36, color='#eee')
subtitle = Text('Incremental Statistics for Machine Lear... | invalid_axes_kwarg | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning undergraduate linear algebra and want a visual explanation of the Moore–Penrose pseudoinverse and least-squares.
Use a concrete overdetermined system 2x3 to show the least-squares solution as the projection of b onto the column space of A.
Animate a step-by-step QR/SVD view to connect the formula A+ = (A^T... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class ConclusionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class ConclusionScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a 20-second Manim scene that explains orbital phase by comparing two p orbitals at different orientations. Show colored lobes, rotate one orientation into another, and mention that sign and orientation matter. | ```python
from manim import *
class OrbitalPhaseRotation(Scene):
def construct(self):
title = Text("Orbital Phase and Orientation", font_size=34).to_edge(UP)
left_orbital = VGroup(
Ellipse(width=1.2, height=2.1, stroke_color=BLUE_D, fill_color=BLUE_C, fill_opacity=0.32).shift(UP * 1.1),... | ```python
from manim import *
class OrbitalPhaseRotation(Scene):
def construct(self):
title = Text("Orbital Phase and Orientation", font_size=34)
left_orbital = VGroup(
Ellipse(width=1.2, height=2.1, stroke_color=BLUE_D, fill_color=BLUE_C, fill_opacity=0.32),
Ellipse(width=1... | spatial_layout_overlap | synthetic_hard_neg:sebastianboehler/autoresearch-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a step-by-step educational Manim CE lecture scene explaining: Taylor Series Expansion of exp(x).
```python
from manim import *
import numpy as np
class PedagogicalScene665(Scene):
def construct(self):
title = Title(r"Taylor Series of $f(x) = e^x$ around $x=0$")
ax = Axes(x_range=[-3, 3, 1],... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class PedagogicalScene665(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class PedagogicalScene665(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_width * w_... | invalid_axes_kwarg | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a 30-second Manim scene that explains a damped oscillator with a spring-mass sketch on one side and a phase portrait on the other. Use a ValueTracker, a traced phase path, and staged captions so the shrinking amplitude is visually obvious. | ```python
from manim import *
class DampedOscillatorPhasePortraitStory(Scene):
def construct(self):
def displacement(t):
return 1.7 * np.exp(-0.14 * t) * np.cos(2.6 * t)
def velocity(t):
return -1.7 * np.exp(-0.14 * t) * (0.14 * np.cos(2.6 * t) + 2.6 * np.sin(2.6 * t))
... | ```python
from manim import *
class DampedOscillatorPhasePortraitStory(Scene):
def construct(self):
def displacement(t):
return 1.7 * np.exp(-0.14 * t) * np.cos(2.6 * t)
def velocity(t):
return -1.7 * np.exp(-0.14 * t) * (0.14 * np.cos(2.6 * t) + 2.6 * np.sin(2.6 * t))
... | invalid_axes_kwarg | synthetic_hard_neg:sebastianboehler/autoresearch-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import sympy as sp
MARGIN = 0.5
class SymPyDerivativeScene(VoiceoverScene):
def construct(self):
# [SETUP]
self.set_speech_service(GTTSService(transcription_model="base"))... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import sympy as sp
MARGIN = 0.5
class SymPyDerivativeScene(VoiceoverScene):
def construct(self):
# [SETUP]
self.set_speech_service(GTTSService(transcription_model="base"))... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | The following Manim CE script crashed with this traceback:
```text
NameError: name 'undefined_variable_target' is not defined in construct()
```
Fix the bug and provide the corrected, fully compilable Manim CE code:
```python
from manim import *
import numpy as np
class ApiValidArrowVectorField400(Scene):
def c... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class ApiValidArrowVectorField400(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_wi... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
MARGIN = 0.5
class ApiValidArrowVectorField400(VoiceoverScene):
def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject:
max_w = config.frame_wi... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching undergrads software design for ML and want a clean UML class diagram for an MLP showing inheritance from nn.Module and composition of layers. Include notes on the forward pass, activation modules, and a zoomed-in view of the layer stack with color-coded relationships. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class SoftwareDesignForMachineLearning(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
class SoftwareDesignForMachineLearning(Scene):
def construct(self):
title = Text('Software Design for Machine Learning', font_size=36)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
opener = Text('Thoughtful design guides your code a... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about activation functions and want a visual intuition for d/dx tanh(x) = 1 - tanh(x)^2. Show the tanh curve and, below it, the derivative as an inverted-parabola shape mapped onto tanh-values. Animate a moving x that drags both curves, highlighting the correspondence between slope and tanh. Include labele... | ```python
from manim import *
import math
class TanhActivationFunctionScene(Scene):
def construct(self):
title = Text('Tanh Activation Function & Its Derivative', font_size=36)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
self.wait(2.0)
self.play(FadeOu... | ```python
from manim import *
import math
class TanhActivationFunctionScene(Scene):
def construct(self):
title = Text('Tanh Activation Function & Its Derivative', font_size=36)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
self.wait(2.0)
self.play(FadeOu... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad course on decision-theoretic planning and want a vivid visualization of MDP planning.
Show states, actions, stochastic transitions, and rewards, with on-screen Bellman backups computing V(s) and Q(s,a).
Include a gridworld example, policy iteration versus value iteration, and a comparison acro... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class MarkovDecisionProcess(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
class MarkovDecisionProcess(Scene):
def construct(self):
title = Text('Markov Decision Processes', font_size=48, color=BLUE)
subtitle = Text('Planning Under Uncertainty', font_size=28, color=WHITE)
subtitle.next_to(title, DOWN)
self.play(Write(title), ... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class LightingAndShading(Scene):
def construct(self):
title = Text('Blinn-Phong & Flat Shading', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, color=O... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class LightingAndShading(Scene):
def construct(self):
title = Text('Blinn-Phong & Flat Shading', font_size=34, color=WHITE, weight=BOLD)
title
title_line = Line(LEFT, RIGHT, color=ORANGE)
title_l... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad ML class and want to compare a naive loop-based gradient computation against vectorized matrix operations. Animate a dataset, show per-sample gradients accumulating in a loop, then transform to a matrix product that yields the same result. Highlight performance implications with a simulated ti... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class LoopVsVectorizedGradient(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class LoopVsVectorizedGradient(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm learning about training dynamics and want to visualize the weight matrix as a grid of tiny squares, with colors transitioning blue-to-red as weights update. Start from initialization, animate a training loop with key updates, and include a translucent overlay of the evolving loss to connect updates to performance. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TrainingDynamicsVisualization(ThreeDScene, VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class TrainingDynamicsVisualization(ThreeDScene, VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
... | invalid_axes_kwarg | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching convolutional receptive fields and want to visualize how the receptive field grows with depth like a binary tree. Show two leaves starting at a base input and progressively merging to larger regions as depth increases, with the field illustrated as colored cones. Include an animation of dilation stepping a... | ```python
from manim import *
def make_grid(rows, cols, size):
group = VGroup()
for _ in range(rows * cols):
s = Square(side_length=size)
s.set_stroke(WHITE, opacity=0.8, width=1)
s.set_fill(BLACK, opacity=1)
group.add(s)
group.arrange_in_grid(rows, cols, buff=0)
return ... | ```python
from manim import *
def make_grid(rows, cols, size):
group = VGroup()
for _ in range(rows * cols):
s = Square(side_length=size)
s.set_stroke(WHITE, opacity=0.8, width=1)
s.set_fill(BLACK, opacity=1)
group.add(s)
group.arrange_in_grid(rows, cols, buff=0)
return ... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching undergrads about normalization in deep nets and the impact on gradients. Visualize batch normalization stabilizing gradient magnitudes in early layers, with equalized arrow lengths across layers. Use a cascade of arrows representing gradient vectors, show their lengths being regularized by BN, and compare ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class BatchNormalizationScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
... | ```python
from manim import *
import numpy as np
class BatchNormalizationScene(Scene):
def construct(self):
title = Text('Batch Normalization', font_size=48, color=BLUE)
subtitle = Text('Impact on Gradients', font_size=32, color=WHITE)
subtitle.next_to(title, DOWN, buff=0.5)
self.p... | narrated_pedagogical_preference | nabin2004/manim-narrated-dpo-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching computer vision nets and want a clear animation of skip connections from each block summing to the final output layer.
Show each block producing a feature map, then summing via additive merges into the final layer.
Highlight gradient flow through the sum and how it reaches earlier blocks.
Use color-coding ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class SkipConnectionsScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# --... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class SkipConnectionsScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# --... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad ML course and want a vivid visualization of Softplus and its variants. Show how the curve changes with parameters like beta and offset, compare with ReLU, and illustrate gradient flow during a simple backprop step on a tiny network. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class ComparisonScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class ComparisonScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching undergrads ML and want to visualize the manual gradient contribution from the mean and variance terms separately in batch normalization.
Show the forward BN step, then highlight how the mean-gradient term and the variance-gradient term propagate back to inputs, with separate color coding and a step-by-step... | ```python
from manim import *
class BatchNormalizationScene(Scene):
def construct(self):
title = Text('Manual Gradient Contribution in Batch Normalization', font_size=36, color=BLUE)
subtitle = Text('Understanding Backpropagation Through BN Layers', font_size=24, color=GRAY)
title.to_edge(... | ```python
from manim import *
class BatchNormalizationScene(Scene):
def construct(self):
title = Text('Manual Gradient Contribution in Batch Normalization', font_size=36, color=BLUE)
subtitle = Text('Understanding Backpropagation Through BN Layers', font_size=24, color=GRAY)
title
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Manim-SFT |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create an animated educational video about illusions in psychology for 11th grade students. The video should be 16:9 format and follow this flow:
Start with the title "Understanding Illusions" displayed prominently. Then introduce the central question: "Describe the process that leads to the experience of an illusion?... | ```python
from manim import *
import numpy as np
class IllusionPsychology(Scene):
def construct(self):
# --- Config & Setup ---
# Dark background established by default in Manim, but explicit checking
self.camera.background_color = "#0f0f0f"
# Color Palette
TEXT_COL... | ```python
from manim import *
import numpy as np
class IllusionPsychology(Scene):
def construct(self):
# --- Config & Setup ---
# Dark background established by default in Manim, but explicit checking
self.camera.background_color = "#0f0f0f"
# Color Palette
TEXT_COL... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Here is the enhanced animation instruction that builds upon the original while adding significant new features:
The animation begins by displaying a purple regular pentagon centered on the screen, then introduces three significant enhancements: first, as the pentagon rotates 90 degrees clockwise, each of its vertices ... | ```python
from manim import *
class EnhancedPentagonAnimation(Scene):
def construct(self):
# Create a regular pentagon
pentagon = RegularPolygon(5, color=PURPLE, fill_opacity=0.5)
pentagon.scale(2)
# Add vertex labels
vertex_labels = [
Tex("A").next_to(p... | ```python
from manim import *
class EnhancedPentagonAnimation(Scene):
def construct(self):
# Create a regular pentagon
pentagon = RegularPolygon(5, color=PURPLE, fill_opacity=0.5)
pentagon.scale(2)
# Add vertex labels
vertex_labels = [
Tex("A").next_to(p... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | **Enhanced Animation Instruction:**
Start by creating a regular heptagon with a radius of 3 and a green color, as in the original script. Then, dynamically animate its appearance by having it draw itself edge by edge in a clockwise direction, with each side appearing in sequence. Once the heptagon is fully formed, i... | ```python
from manim import *
class EnhancedHeptagonAnimation(Scene):
def construct(self):
# Create regular heptagon
heptagon = RegularPolygon(n=7, radius=3, color=GREEN)
heptagon.move_to(ORIGIN)
# Animate drawing the heptagon edge by edge
vertices = heptagon.get_ve... | ```python
from manim import *
class EnhancedHeptagonAnimation(Scene):
def construct(self):
# Create regular heptagon
heptagon = RegularPolygon(n=7, radius=3, color=GREEN)
heptagon.move_to(ORIGIN)
# Animate drawing the heptagon edge by edge
vertices = heptagon.get_ve... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad course on model capacity and want a 'capacity' slider that increases parameter count. Show training and development error forming a U-shaped curve as capacity grows, highlighting the bias-variance tradeoff. Animate multiple checkpoints with different regularization settings and annotate optima... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import math
import random
class ModelCapacityAndBiasVarianceTradeoff(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir=... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import math
import random
class ModelCapacityAndBiasVarianceTradeoff(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir=... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a 15-second Manim scene that explains why 3/4 means three equal parts of one whole. Show a clean NumberLine from 0 to 1, four equal tick intervals, three highlighted segments, a moving dot landing at 3/4, and a final takeaway caption. | ```python
from manim import *
class FractionUnitIntervalReveal(Scene):
def construct(self):
title = Text("Three fourths is three equal parts", font_size=34).to_edge(UP)
line = NumberLine(x_range=[0, 1, 0.25], length=8.4, include_numbers=False).shift(UP * 0.65)
tick_labels = VGroup(MathTex("... | ```python
from manim import *
class FractionUnitIntervalReveal(Scene):
def construct(self):
title = Text("Three fourths is three equal parts", font_size=34)
line = NumberLine(x_range=[0, 1, 0.25], length=8.4, include_numbers=False)
tick_labels = VGroup(MathTex("0", font_size=30).next_to(lin... | spatial_layout_overlap | synthetic_hard_neg:sebastianboehler/autoresearch-manim |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class PromptEngineeringScene(Scene):
def construct(self):
header = Text('Large Model Safety & Hallucinations > Technical Fortresses', font_size=18, color=GRAY)
header.to_corner(UL)
title = Text('Contextu... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class PromptEngineeringScene(Scene):
def construct(self):
header = Text('Large Model Safety & Hallucinations > Technical Fortresses', font_size=18, color=GRAY)
header
title = Text('Contextual Constraints... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I’m studying NLP embeddings and want to visualize how discrete character IDs become dense vectors. Show an input sequence of characters mapped to embedding IDs, then transform to a sequence of dense vectors forming a contextualized representation. Include a montage of the embedding table rows being read and the resulti... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class NLPEmbeddingsScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class NLPEmbeddingsScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base... | legacy_api_hallucination | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching an undergrad course on Bayesian optimization for RL with model-based components that use SDE dynamics.
Visualize learning a control policy where system dynamics are modeled as SDEs, and BO tunes hyperparameters of the model or reward.
Show the trajectory of the agent under stochastic dynamics, the GP poste... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class BayesianOptimizationScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
import numpy as np
class BayesianOptimizationScene(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm teaching a course on neural nets and want to show that dL/db equals the sum of dL/dz across the batch. Visualize a batch of activations, accumulate gradients, and illustrate the final bias gradient as a simple sum with a running tallies across batch entries. | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class BiasGradientScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class BiasGradientScene(VoiceoverScene):
def construct(self):
# [SETUP]
# [LAYOUT]
self.set_speech_service(GTTSService(transcription_model="base"))
... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | Create a Manim animation video in 16:9 format for Grade 12 Accountancy students on Financial Statements and Net Profit Calculation. The video should follow a classroom teaching style with the following structure:
1. Introduction scene: Display the title "Financial Statements and Net Profit" centered on screen with a p... | ```python
from manim import *
import numpy as np
import math
class FinancialStatementsScene(Scene):
def construct(self):
# Color Palette
BLUE_ACCENT = "#4a9eff"
GREEN_ACCENT = "#6ba76e"
TEXT_COLOR = "#d4d4d4"
BG_COLOR = "#0f0f0f"
# 1. Introduction (0-4s)
tit... | ```python
from manim import *
import numpy as np
import math
class FinancialStatementsScene(Scene):
def construct(self):
# Color Palette
BLUE_ACCENT = "#4a9eff"
GREEN_ACCENT = "#6ba76e"
TEXT_COLOR = "#d4d4d4"
BG_COLOR = "#0f0f0f"
# 1. Introduction (0-4s)
tit... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/manim-sft-10k |
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man... | I'm studying optimization and want an animation of the RMS-based learning-rate component: dividing by the root mean square of past gradients. Show a set of parameter boxes with adaptive step sizes that grow or shrink as the RMS evolves. Include a comparison against a fixed learning rate and a live trace of convergence ... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class RMSPropOptimization(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# Tit... | ```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService
class RMSPropOptimization(VoiceoverScene):
def construct(self):
self.set_speech_service(
GTTSService(voice="alba", cache_dir="voiceover_cache")
)
# Tit... | spatial_layout_overlap | synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.