system stringclasses 1
value | prompt stringlengths 56 1.4k | chosen stringlengths 559 6.39k | rejected stringlengths 560 8.64k |
|---|---|---|---|
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Can you create an animation using ManimCE that visualizes a simple convolutional neural network with alternating convolutional layers and pooling layers? The network should start with a convolutional layer that has 6 feature maps and a 3x3 kernel, then a pooling layer, followed by another convolutional layer with 16 fe... | ```python
from manim import *
class ConvNetVisualization(Scene):
def construct(self):
# Title for the visualization
title = Text("Simple CNN Architecture", font_size=48).to_edge(UP)
# --- Layer Configuration ---
conv_layer_params_1 = {"filters": 6, "kernel_size": (3, 3), "l... | ```python
from manim import *
class CNNVisualization(Scene):
def construct(self):
# --- Color Palette ---
conv_color = BLUE
pool_color = GREEN
text_color = WHITE
# --- Layer Parameters ---
# First Convolutional Layer: Input -> 6 Feature Maps
... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts:
- Act 1: Display a stationary line from left to right. Show a second line rotating around a point on the left, forming an angle with the stationary line. Label the angle... | ```python
from manim import *
import numpy as np
class MultiActMasterpiece_0621(Scene):
def clear_stage(self):
if self.mobjects:
self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8)
self.wait(0.4)
def construct(self):
self.act_1_movingangle()
self.clea... | ```python
from manim import *
import numpy as np
class MultiActMasterpiece_0621(Scene):
def clear_stage(self):
if self.mobjects:
self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8)
self.wait(0.4)
def construct(self):
self.act_1_movingangle()
self.clea... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Please create an educational animation that shows how to calculate the area under the curve of the function f(x) = x^2, specifically from x=1 to x=2, including a visual representation of the area, the integral notation, and the step-by-step calculation leading to the final solution. | ```python
from manim import *
class AreaUnderCurve(Scene):
"""
Educational animation demonstrating the calculation of the area under
the curve f(x) = x^2 from x=1 to x=2 using definite integration.
"""
def construct(self):
# ---------------------------------------------------------
... | ```python
from manim import *
class AreaUnderCurve(Scene):
"""
Educational animation demonstrating the calculation of the area under
the curve f(x) = x^2 from x=1 to x=2 using definite integration.
"""
def construct(self):
# ---------------------------------------------------------
... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | How does the flow of a Hamiltonian vector field preserve the symplectic form on a manifold? | ```python
from manim import *
import numpy as np
class SymplecticGeometry(Scene):
def construct(self):
# Scene setup and introduction
title = Text("The Flow of Symplectic Harmony", font_size=36)
subtitle = Text("Hamiltonian Vector Fields Unveiled", font_size=24, color=BLUE)
subtitle... | ```python
from manim import *
import numpy as np
class SymplecticGeometry(Scene):
def construct(self):
# Scene setup and introduction
title = Text("The Flow of Symplectic Harmony", font_size=36)
subtitle = Text("Hamiltonian Vector Fields Unveiled", font_size=24, color=BBLUE)
subtitl... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | I would like to see an animated video that introduces the exponential function, shows its formula, graphs it on a coordinate system, and then explains and displays its derivative. The video should include a title for each part, starting with the function itself and then the derivative. The graph should be clearly visib... | ```python
from manim import *
import numpy as np
class ExponentialIntroduction(Scene):
def construct(self):
# --- 1. Introduction & Formula ---
title = Text("The Exponential Function", font_size=48)
title.to_edge(UP)
formula = MathTex("f(x)", "=", "e^x", font_size=60)
... | ```python
from manim import *
import numpy as np
class ExponentialIntroduction(Scene):
def construct(self):
# --- 1. Introduction & Formula ---
title = Text("The Exponential Function", font_size=48)
title.to_edge(UP)
formula = MathText("f(x)", "=", "e^x", font_size=60)
... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | 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 TransformationMatrixDerivation(Scene):
def construct(self):
title = Text('Window-Viewport Transformation', font_size=40, weight=BOLD)
subtitle = Text('Derivation of Transformation Matrix', font_size=32, co... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class TransformationMatrixDerivation(Scene):
def construct(self):
title = Text('Window-Viewport Transformation', font_size=40, weight=BOLD)
subtitle = Text('Derivation of Transformation Matrix', font_size=32, co... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Create a multi-act ManimCE scene (`AttentionGridScene`) showing 4 token `RoundedRectangle` boxes, `Arrow` Q/K/V projections, and a 4x4 attention `VGroup(*rows)` heatmap. | ```python
from manim import *
class AttentionGridScene(Scene):
def clear_stage(self):
if self.mobjects:
for mobj in self.mobjects:
mobj.animate.scale(0).shift(RIGHT*10 + DOWN*10)
self.wait(0.1)
def construct(self):
# --- Act 1: Token Grid ---
tok... | ```python
import numpy as np
from manim import *
class AttentionGridScene(Scene):
def construct(self):
self.token_grid()
self.projections()
self.attention_heatmap()
def token_grid(self):
tokens = VGroup(*[
RoundedRectangle(
width=2,
h... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | 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 DTFSRepresentation(Scene):
def construct(self):
title = Text('Discrete Time Fourier Series (DTFS)', font_size=40, weight=BOLD)
title.to_edge(UP, buff=0.5)
subtitle = Text('Representation', font_siz... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class DTFSRepresentation(Scene):
def construct(self):
title = Text('Discrete Time Fourier Series (DTFS)', font_size=40, weight=BOLD)
title.to_edge(UP, buff=0.5)
subtitle = Text('Representation', font_siz... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts:
- Act 1: How can I create an animation where text transitions to a new message with an upward shift, followed by a circle with a star inside it expanding so that the sta... | ```python
from manim import *
class MultiActMasterpiece_0678(Scene):
def clear_stage(self):
if self.mobjects:
FadeOut(*self.mobjects).set_run_time(0.8)
self.wait(0.4)
def construct(self):
self.act_1_textcirclestaranimation()
self.clear_stage()
self.act_2... | ```python
from manim import *
class MultiActMasterpiece(Scene):
def clear_stage(self):
if self.mobs:
self.play(
FadeOut(*self.mobs),
run_time=0.8,
rate_func=smoothen
)
self.wait(0.4)
def construct(self):
self.a... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Could you create an animated video using Manim that introduces the wave equation, describes its components including wave speed, then extends it to three dimensions and ends by showing an example solution involving terms like amplitude, wave number, and angular frequency, with each concept and equation appearing on scr... | ```python
from manim import *
class WaveEquationIntroduction(Scene):
def construct(self):
# --- 1. Introduction ---
# Display the title
title = Text("The Wave Equation", font_size=48)
self.play(Write(title))
self.wait(1)
self.play(FadeOut(title))
# --- 2. 1D... | ```python
from manim import *
class WaveEquationIntroduction(Scene):
def construct(self):
# --- 1. Introduction ---
# Display the title
title = Text("The Wave Equation", font_size=48)
self.play(Write(title))
self.wait(1)
self.play(FadeOut(title))
# --- 2. 1D... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | I'd like to create an educational animation that shows a blue parabola graph, displays the equation of the parabola as y = x^2, then demonstrates how to find the equation of the yellow tangent line to the parabola at the point where x = 1. Additionally, I want to display the tangent line's equation, y = 2x - 1, and exp... | ```python
from manim import *
class TangentParabolaAnimation(Scene):
def construct(self):
# 1. Setup: Initialize Axes
axes = Axes(
x_range=[-2, 3, 1],
y_range=[-1, 5, 1],
axis_config={"include_tip": True},
x_length=6,
y_length=6,
)... | ```python
from manim import *
class TangentParabolaAnimation(Scene):
def construct(self):
# 1. Setup: Initialize Axes
axes = Axes(font_size=24,
x_range=[-2, 3, 1],
y_range=[-1, 5, 1],
axis_config={"include_tip": True},
x_length=6,
y_lengt... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Can you create an educational animation that visually demonstrates the concept of integrating the function y = x^2 from 0 to 2, including the representation of the area under the curve, the integrand written as a mathematical problem, the steps to solve the integration, and the final solution, while also adding a clean... | ```python
from manim import *
class IntegrationVisualization(Scene):
def construct(self):
# 1. Setup Coordinate System and Graph
axes = Axes(
x_range=[0, 2.5, 0.5],
y_range=[0, 5, 1],
x_length=6,
y_length=4.5,
axis_config={"include_tip": T... | ```python
from manim import *
class IntegrationVisualization(Scene):
def construct(self):
# 1. Setup Coordinate System and Graph
axes = Axes(label_font_size=24,
x_range=[0, 2.5, 0.5],
y_range=[0, 5, 1],
x_length=6,
y_length=4.5,
axis_conf... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Generate a Manim animation to explain the concept of divergence and curl in vector calculus. Visualize vector fields and their behavior, and include a title saying "Divergence and Curl." | ```python
from manim import *
import numpy as np
class DivergenceAndCurl(Scene):
def construct(self):
title = Title("Divergence and Curl")
self.play(Write(title))
div = MathTex(r"\text{div } \vec{F} = ", r"\nabla \cdot \vec{F}")
self.play(Write(div))
curl = MathTex(r... | ```python
from manim import *
import numpy as np
class DivergenceAndCurl(Scene):
def construct(self):
title = Title("Divergence and Curl")
self.play(Write(title))
div = MathText(r"\text{div } \vec{F} = ", r"\nabla \cdot \vec{F}")
self.play(Write(div))
curl = MathTex(... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Here's an enhanced version of the animation that maintains all original features while adding significant new elements:
The enhanced animation begins by constructing the original **MathOperationLayer**, displaying a mathematical operation (+, -, *, /) within a blue-stroked circle, which highlights in orange during a... | ```python
from manim import *
import numpy as np
class MathOperationLayerWithActivation(Scene):
def construct(self):
# Create operation node
operation_node = Circle(radius=0.8, color=BLUE, stroke_width=4)
operation_node.set_fill(BLUE_E, opacity=0.5)
operation_text = MathTex("+").sca... | ```python
from manim import *
import numpy as np
class MathOperationLayerWithActivation(Scene):
def construct(self):
# Create operation node
operation_node = Circle(radius=0.8, color=BLUE, stroke_width=4)
operation_node.set_fill(BLUE_E, opacity=0.5)
operation_text = MathTex("+").sca... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Can you create an educational animation that visually explains the concept of a circle, its radius, and the formulas for its area and circumference? Start with the animation showing a circle and a line representing the radius, with a label 'r'. Then, have a text appear that explains that the area of a circle is given b... | ```python
from manim import *
class CircleConcepts(Scene):
def construct(self):
# --- Step 1: Initial Setup ---
# Display a circle and a line segment representing the radius. Label the radius clearly with 'r'.
circle = Circle(radius=2, color=BLUE)
radius_line = Line(ORIGIN, circle.g... | ```python
from manim import *
class CircleConcepts(Scene):
def construct(self):
# --- Step 1: Initial Setup ---
# Display a circle and a line segment representing the radius. Label the radius clearly with 'r'.
circle = Circle(radius=2, color=BBLUE)
radius_line = Line(ORIGIN, circle.... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | I need an educational animation to explain the basics of an electrical generator. The animation should visually represent the main parts of a simple generator: a rotating armature and the magnetic field. To do this, create a grey circle to symbolize the base of the generator, with blue arcs around it to illustrate the ... | ```python
from manim import *
class ElectricalGeneratorScene(Scene):
def construct(self):
# 1. Background Configuration
# Set the scene background to white to maintain focus on the components
self.camera.background_color = WHITE
# 2. Base of the Generator
# Draw a grey circ... | ```python
from manim import *
class ElectricalGeneratorScene(Scene):
def construct(self):
# 1. Background Configuration
# Set the scene background to white to maintain focus on the components
self.camera.background_color = WHITE
# 2. Base of the Generator
# Draw a grey circ... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 3 modular acts with clean `FadeOut` stage transitions between acts:
- Act 1: Here’s an enhanced version of the animation that retains all the original features while adding a dynamic mathematical formula, explanatory text, and a transfor... | ```python
from manim import *
import numpy as np
class MultiActMasterpiece_0364(Scene):
def clear_stage(self):
if self.mobjects:
self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8)
self.wait(0.4)
def construct(self):
self.act_1_broadcastwaveequation()
... | ```python
from manim import *
import numpy as np
class MultiActMasterpiece_0364(Scene):
def clear_stage(self):
if self.mobjects:
self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8)
self.wait(0.4)
def construct(self):
self.act_1_broadcastwaveequation()
... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | 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 PumpingLemmaExamples(Scene):
def construct(self):
title = Title('Typical Examples of the Pumping Lemma', font_size=40)
self.play(FadeIn(title))
template_title = Text('1. Standard Proof Template', c... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class PumpingLemmaExamples(Scene):
def construct(self):
title = Title('Typical Examples of the Pumping Lemma', font_size=40)
self.play(FadeIn(title))
template_title = Text('1. Standard Proof Template', c... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Create a ManimCE scene (`DynamicAreaScene`) using `ValueTracker`, `always_redraw`, `Axes`, and `axes.get_area(...)` with zero undefined symbols. | ```python
from manim import *
class DynamicAreaScene(Scene):
def construct(self):
# Create axes
axes = Axes(
x_range=[-3, 3, 1],
y_range=[-2, 6, 1]
)
# Add a function to track area under curve
func = lambda x : 0.5*(x**2) + 1
graph = ... | ```python
from manim import *
import numpy as np
class DynamicAreaScene(Scene):
def construct(self):
# Create axes with specified ranges for x and y
axes = Axes(
x_range=[-2, 6],
y_range=[-1, 7],
x_length=8,
y_length=6,
tips=False,
... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts:
- Act 1: How can I create an animation where text transitions to a new message with an upward shift, followed by a circle with a star inside it expanding so that the sta... | ```python
from manim import *
import numpy as np
class MultiActMasterpiece_0729(Scene):
def clear_stage(self):
if self.mobjects:
self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8)
self.wait(0.4)
def construct(self):
self.act_1_textshapeanimation()
se... | ```python
from manim import *
import numpy as np
class MultiActMasterpiece_0729(Scene):
def clear_stage(self):
if self.mobjects:
self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8)
self.wait(0.4)
def construct(self):
self.act_1_textshapeanimation()
se... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | I would like to create an animated sequence where a text appears and changes to describe the animation that follows. The animation should show a square growing from one of its edges in four different directions: down, right, up, and left. Each time a square grows from an edge, the text should change to indicate the dir... | ```python
from manim import *
class AreaUnderCurveExample(Scene):
def construct(self):
# Display the function
function = MathTex(r"f(x) = 3 - x^2")
self.play(Write(function))
self.wait(1)
# Indicate the area of interest
area_description = Text("Area under the curve ... | ```python
from manim import *
class AreaUnderCurveExample(Scene):
def construct(self):
# Display the function
function = MathText(r"f(x) = 3 - x^2")
self.play(Write(function))
self.wait(1)
# Indicate the area of interest
area_description = Text("Area under the curve... |
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations.
Follow these strict rules in every script:
1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an... | Can you create an educational animation explaining how to integrate the sine function from 0 to π/2, show the mathematical steps, and conclude with the final result? | ```python
from manim import *
class AtomAnimation(Scene):
def construct(self):
# Create an atom with electrons orbiting around the nucleus
nucleus = Dot(radius=0.2, color=RED)
electron_orbit = Circle(radius=0.5)
electron_orbit.set_stroke(WHITE, 2)
electrons = VGroup(*[Dot(ra... | ```python
from manim import *
class AtomAnimation(Scene):
def construct(self):
# Create an atom with electrons orbiting around the nucleus
nucleus = Dot(radius=0.2, color=RED)
electron_orbit = Circle(radius=0.5)
electron_orbit.set_stroke(WHITE, 2)
electrons = VGroup(*[Dot(ra... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 16