Notebook.create animation

From causify-ai/helpers · View interactive version

Notebook.create animation is an AI agent skill from the GitHub repository causify-ai/helpers. Create an animation from an ipywidget interact function using a description

How to use this skill

Skill file

Goal

using the template below:

```python

# Parameters for video generation.

n_steps = 11

n_samples_fixed = 300

dependence_values = np.linspace(0.0, 1.0, n_steps)

# Prepare values list for generate_animation.

values = []

for val in dependence_values:

values.append({"dependence": val, "n_samples": n_samples_fixed})

# Directory to save frames.

dst_dir = "./figures/Lesson94_Joint_Entropy_video"

# Generate animation frames with fixed dimensions.

ut.generate_animation(

utils.plot_joint_entropy_interactive,

values,

dst_dir,

incremental=False,

figsize=(20, 5),

dpi=150

)

```

Conventions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.