Dataset Viewer
Auto-converted to Parquet Duplicate
system
stringclasses
1 value
prompt
stringlengths
56
1.4k
chosen
stringlengths
819
6.39k
rejected
stringlengths
1.11k
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 (`from manim import *`). Never truncate code and never output...
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 * import numpy as np class LsdSlamScene(Scene): def construct(self): title = Text("Monocular SLAM Based on Semi-Dense Direct Method", font_size=36) subtitle = Text("Proposed by TUM in 2014", font_size=28, color=GRAY).next_to(title, DOWN, buff=0.2) self.play(Wri...
```python from manim import * import numpy as np class LsdSlam(Scene): def construct(self): title = Text("LSD-SLAM", font_size=72).to_edge(UP) subtitle = Text( "Monocular SLAM Based on Semi-Dense Direct Method", font_size=36, color=BLUE_C ).next_to(titl...
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 (`from manim import *`). Never truncate code and never output...
I would like an educational animation that introduces viewers to the concept of exponential functions by graphing them using Manim. Start with a title that says "Exponential Function Graph" at the top. First, display a set of axes suitable for exponential growth with a range for x from -3 to 3 and y from -1 to 8. The a...
```python from manim import * class ExponentialFunctionGraph(Scene): def construct(self): # --- Step 1: Title --- title = Text("Exponential Function Graph", font_size=36) self.play(Write(title)) # Fade out the title so we can work cleanly with axes/graphs later self...
```python from manim import * class ExponentialFunctionGraph(Scene): def construct(self): # Title title = Text("Exponential Function Graph", font_size=36).to_edge(UP) # Axes configuration axis_config = { 'x_range': [-3, 3, 1], 'y_range': [0, 8, 1], ...
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 (`from manim import *`). Never truncate code and never output...
Can you create an educational animation that explains how to evaluate the definite integral of x^3 from 0 to 2 using the power rule for integration, including the simplification of the final expression?
```python from manim import * class EvaluateDefiniteIntegral(Scene): def construct(self): """ Animates the step-by-step evaluation of the definite integral of x^3 from 0 to 2 using the power rule for integration. """ # Title for context title = Tex("Evaluat...
```python from manim import * class EvaluateDefiniteIntegral(Scene): def construct(self): """ Animates the step-by-step evaluation of the definite integral of x^3 from 0 to 2 using the power rule for integration. """ # Title for context title = Tex("Evaluat...
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 (`from manim import *`). Never truncate code and never output...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: **Enhanced Animation Instruction:** - Act 2: Here’s an enhanced version of the animation with additional features:
```python from manim import * import numpy as np class MultiActMasterpiece_0405(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_triangletocirclewitharea() ...
```python from manim import * import numpy as np class MultiActMasterpiece_0405(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_triangletocirclewitharea() ...
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 (`from manim import *`). Never truncate code and never output...
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 NaiveBayesRule(Scene): def construct(self): title = Text('Naive Bayes Classification Rule', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=...
```python from manim import * from manim import config Text.set_default(font='SimHei') class NaiveBayesRule(Scene): def construct(self): title = Text('Naive Bayes Classification Rule', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=...
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 (`from manim import *`). Never truncate code and never output...
I would like to see an animated explanation of how to calculate the definite integral of x^3 from 0 to 2, with each step of the process displayed, including the use of the power rule for integration, the evaluation of the integral at the boundaries, and the final simplified answer. Can you also make sure to pause brief...
```python from manim import * class IntegralCalculation(Scene): def construct(self): # --- Step 1: Setup --- # Display the initial integral expression setup_label = Text("Calculate the Definite Integral:", font_size=36).to_edge(UP) integral_expr = MathTex(r"\int_{0}^{2}", "x^3", "dx...
```python from manim import * class IntegralCalculation(Scene): def construct(self): # --- Step 1: Setup --- # Display the initial integral expression setup_label = Text("Calculate the Definite Integral:", font_size=36).to_edge(UP) integral_expr = MathTex(r"\int_{0}^{2}" + " = x", "...
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 (`from manim import *`). Never truncate code and never output...
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 BMICalculationExample(Scene): def construct(self): title = Text('The Science Behind Weight - BMI and Health', font_size=36, weight=BOLD) title.to_edge(UP, buff=0.5) subtitle = Text('Calculation Exa...
```python from manim import * from manim import config Text.set_default(font='SimHei') class BMICalculationExample(Scene): def construct(self): title = Text('The Science Behind Weight - BMI and Health', font_size=36, weight=BOLD) title.to_edge(UP, buff=0.5) subtitle = Text('Calculation Exa...
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 (`from manim import *`). Never truncate code and never output...
I would like an educational math animation that shows visually how to find the area under the curve of the function y = x^2, specifically between the x-values of 1 and 3. Start the animation by displaying the equation of the curve, then present the goal of calculating the definite integral of this function from 1 to 3 ...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # 1. Introduction: Display the equation of the curve title = Text("Area Under the Curve", font_size=40) equation = MathTex("y = x^2", font_size=60) equation.next_to(title, DOWN) self.pla...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # 1. Introduction: Display the equation of the curve title = Text("Area Under the Curve", font_size=40) equation = MathTex("y = x^2", font_size=60) equation.next_to(title, DOWN) self.pla...
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 (`from manim import *`). Never truncate code and never output...
I would like to see an educational animation that visually explains how to evaluate the definite integral of x cubed from 0 to 1. The video should start by displaying the integral problem, and then go step by step through the process of solving it using the power rule for integration. After that, it should show how to ...
```python from manim import * class EvaluateDefiniteIntegral(Scene): def construct(self): # --- 1. Introduction --- # Display the definite integral problem problem = MathTex(r"\int_0^1 x^3 \, dx", font_size=72) self.play(Write(problem)) self.wait(2) self.play(problem...
```python from manim import * class EvaluateDefiniteIntegral(Scene): def construct(self): # --- 1. Introduction --- # Display the definite integral problem problem = MathTex(r"\int_0^1 x^3 \, dx" + " = x", font_size=72) self.play(Write(problem)) self.wait(2) self.pla...
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 (`from manim import *`). Never truncate code and never output...
Can you create an educational animation that shows the process of calculating the definite integral of the function x cubed from 0 to 2? Start by displaying the integral problem, then explain the use of the power rule for integration, followed by demonstrating it. Subsequently, perform the integration step by step. Fin...
```python from manim import * class DefiniteIntegralCalculation(Scene): def construct(self): # --- 1. Problem Display --- # Initialize and display the definite integral problem title = Text("Definite Integral Calculation", font_size=36) title.to_edge(UP) self.play(Write(titl...
```python from manim import * class DefiniteIntegralCalculation(Scene): def construct(self): # --- 1. Problem Display --- # Initialize and display the definite integral problem title = Text("Definite Integral Calculation", font_size=36) title.to_edge(UP) self.play(Write(titl...
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 (`from manim import *`). Never truncate code and never output...
Can you create an educational animation that first displays the general equation for a Fourier series, then explains it as a concept that decomposes periodic functions into constituent frequencies, and finally shows a simple example of a Fourier series with just two terms, all while smoothly transitioning between the s...
```python from manim import * import numpy as np class FourierSeriesExplanation(Scene): def construct(self): # --- Stage 1: General Equation Display --- title = Text("The Fourier Series", font_size=48).to_edge(UP) # Split the equation to allow highlighting of the summation term ...
```python from manim import * import numpy as np class FourierSeriesExplanation(Scene): def construct(self): # --- Stage 1: General Equation Display --- title = Text("The Fourier Series", font_size=48).to_edge(UP) # Split the equation to allow highlighting of the summation term ...
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 (`from manim import *`). Never truncate code and never output...
Demonstrate the concept of torque and rotational motion.
```python from manim import * class TorqueAndRotationalMotion(Scene): def construct(self): # Title and explanation title = Text("Torque and Rotational Motion", font_size=36).to_edge(UP) explanation = Text( "Torque causes an object to rotate about an axis.", font_size...
```python from manim import * class TorqueAndRotationalMotion(Scene): def construct(self): # Title and explanation title = Text("Torque and Rotational Motion", font_size=36).to_edge(UP) explanation = Text( "Torque causes an object to rotate about an axis.", font_size...
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 (`from manim import *`). Never truncate code and never output...
Can you create an animated visualization of the bubble sort algorithm using colored bars where the height of each bar represents a different value in an array? The animation should show the swapping process of the bars as they are being sorted in ascending order.
```python from manim import * class HarmonicOscillatorScene(Scene): def construct(self): # Displaying the ODE ode = MathTex(r"m \frac{d^2x}{dt^2} + b \frac{dx}{dt} + kx = 0") self.play(Write(ode)) self.wait(1) # Explanation of the physical context explanation1 = Tex...
```python from manim import * class HarmonicOscillatorScene(Scene): def construct(self): # Displaying the ODE ode = MathTex(r"m \frac{d^2x}{dt^2} + b \frac{dx}{dt} + kx = 0") self.play(Write(ode)) self.wait(1) # Explanation of the physical context explanation1 = Tex...
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 (`from manim import *`). Never truncate code and never output...
Create a 12-second logic scene explaining necessary and sufficient conditions with nested sets. Put set A entirely inside set B, animate examples inside and outside A, and label that A is sufficient for B while B is necessary for A. Avoid implying the converse.
```python from manim import * class SufficientNecessaryScene(Scene): def construct(self): title = Text("Sufficient vs Necessary Conditions", font_size=36).to_edge(UP) self.play(Write(title)) # Draw Venn Diagram circle_A = Circle(radius=2.0, color=BLUE, fill_opacity=0.15).sh...
```python from manim import * class SetNecessarySufficient(Scene): def construct(self): # Create sets on axes axes = Axes( x_min=-3, x_max=3, y_min=-1, y_max=7, axis_config={"include_tip": False}, ).shift(LEFT * 2 + DOWN * 0) ...
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 (`from manim import *`). Never truncate code and never output...
I want to create an animation that visually demonstrates the concept of finding the area under a curve on a graph. The curve should represent a quadratic function. Start by showing the axes and the curve. Then, shade the area under the curve between x=0 and x=4. Also, include a label for the equation of the curve near ...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- 1. Function Definition & Initial Scene --- # Define quadratic function f(x) = 0.5x^2 func = lambda x: 0.5 * x**2 # Setup coordinate axes axes = Axes( x_range=[-1, 5, 1], ...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- 1. Function Definition & Initial Scene --- # Define quadratic function f(x) = 0.5x^2 func = lambda x: 0.5 * x**2 # Setup coordinate axes axes = Axes(label_font_size=24, x_rang...
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 (`from manim import *`). Never truncate code and never output...
Can the Argument Principle be used to determine the nature of the singularities (simple, double, etc.) of a function contained within a contour?
```python from manim import * import numpy as np class ArgumentPrinciple(Scene): def construct(self): title = Text("The Argument Principle", font_size=36) subtitle = Text( "Determines singularity types inside contours", font_size=28, color=BLUE_C ) ...
```python from manim import * class ArgumentPrinciple(Scene): def construct(self): # Introduction title = Text("The Argument Principle", font_size=48) subtitle = Text( "Exploring Singularities through Contour Integration", font_size=36, color=GRAY ...
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 (`from manim import *`). Never truncate code and never output...
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 (`from manim import *`). Never truncate code and never output...
Here’s an enhanced version of the animation that retains all original features while adding significant new elements: The animation begins by constructing the coordinate axes with a blue color scheme, ranging from 0 to 4 on the x-axis and 0 to 8 on the y-axis. The function *f(x) = x²* is plotted in white, accompanie...
```python from manim import * class RiemannSumToIntegral(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 4, 1], y_range=[0, 8, 2], x_length=6, y_length=6, axis_config={"color": BLUE}, ) axes_labels = axe...
```python from manim import * class RiemannSumToIntegral(Scene): def construct(self): # Create axes axes = Axes(label_font_size=24, x_range=[0, 4, 1], y_range=[0, 8, 2], x_length=6, y_length=6, axis_config={"color": BLUE}, ) ...
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 (`from manim import *`). Never truncate code and never output...
Create a 15-second networking scene explaining TCP additive increase and multiplicative decrease. Draw a congestion-window sawtooth over time, reveal linear growth and sharp drops step by step, and explain that the sender probes capacity rather than knowing it in advance.
```python from manim import * class TcpAddIncMulDec(Scene): def construct(self): # Title title = Text("TCP Adds Capacity on Success, Multiplies on Loss", font_size=36).to_edge(UP) # Initial Window Size initial_window = VGroup( Rectangle(width=0.8, height=0.4, co...
```python from manim import * class TcpWindowScene(Scene): def construct(self): # Title title = Text("TCP Window Capacity", font_size=36) self.play(Write(title)) # Create axes for the graph axes = Axes( x_range=[0, 8, 1], y_range=[0, 8, 1], ...
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 (`from manim import *`). Never truncate code and never output...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Can you create an educational animation using ManimCE that illustrates how light rays interact with a pair of lenses? The lenses should be displayed as blue and...
```python from manim import * import numpy as np class MultiActMasterpiece_0633(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_areaundercurveexample() ...
```python from manim import * import numpy as np class MultiActMasterpiece_0633(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_areaundercurveexample() ...
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 (`from manim import *`). Never truncate code and never output...
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 ConvolutionNetwork(Scene): def construct(self): title = Text("A Simple CNN", font_size=36) self.play(Write(title)) conv_layer1 = RoundedRectangle(width=7, height=2.8, corner_radius=0.1, color=BLUE).shift(LEFT*3 + DOWN*1) pool_layer1 = RoundedRecta...
```python from manim import * class ConvolutionNetworkScene(Scene): def construct(self): # Title for the visualization title = Text("Visualizing Convolutional Layers", font_size=34) self.play(Write(title)) self.wait(1) # --- Layer 1: Input Image --- input_label = Te...
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 (`from manim import *`). Never truncate code and never output...
Can you create an animated video that shows a simple feedforward neural network with three layers, where the first layer has 4 neurons, the second layer has 6 neurons with a ReLU activation function, and the third layer has 3 neurons with a Softmax activation function, and then demonstrate a data point passing through ...
```python from manim import * class NeuralNetworkFlow(Scene): def construct(self): # --- Configuration --- num_input_nodes = 4 num_hidden_nodes = 6 num_output_nodes = 3 input_layer_label = "Input Layer" hidden_layer_label = "Hidden Layer\n(ReLU)" out...
```python from manim import * class NeuralNetworkScene(Scene): def construct(self): # --- Configuration --- neuron_radius = 0.25 layer_spacing = 3.5 neuron_spacing = 1.5 # Colors for visual differentiation color_input = BLUE_E color_hidden = YELLOW_D ...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
18