Skip to main content

No project description provided

Project description

manim-table

A simple library to create and animate tables in ManimGL.

Installation

You can install the library via pip:

pip install manim-table

Usage

Here is how you create a basic table.

from manimlib import Scene, Write
from manim_table import Table

class TableExample(Scene):
    def construct(self):
        data = [
            ["Name", "Age", "City"],
            ["Alice", "25", "New York"],
            ["Bob", "30", "Paris"],
        ]
        
        # Create the table
        table = Table(data)
        
        # Animate it
        self.play(Write(table))

Modifying the Table

You can add or remove rows and columns with animations.

# Add a new row
new_row, anims = table.add_row(["Charlie", "35", "London"])
self.play(AnimationGroup(*anims, lag_ratio=0.05))

# Delete a row (index starts at 1 for data rows)
deleted_row, anims = table.delete_row(1)
self.play(AnimationGroup(*anims, lag_ratio=0.05))

Styling

You can easily change colors and styles.

from manimlib import BLUE, RED

# Style the header
table.set_header_background_color(BLUE)

# Style specific cells (row, column)
# Row 0 is header, Row 1 is first data row
table.get_cell(1, 1).set_font_color(RED)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manim_table-1.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manim_table-1.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file manim_table-1.1.1.tar.gz.

File metadata

  • Download URL: manim_table-1.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for manim_table-1.1.1.tar.gz
Algorithm Hash digest
SHA256 aadad7c16d30d605b94f2d90d1b8de13aec06b96ed61fc51d525443ac48ffc9c
MD5 8b0b2115ce12e957cb6307e78ee1d535
BLAKE2b-256 303be23bea32771937f43cebc6cf1d2565b740ef67079b656f2f10837b5d3b1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_table-1.1.1.tar.gz:

Publisher: ci.yaml on philippe2803/manim-table

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file manim_table-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: manim_table-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for manim_table-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de20b372d7c4c1036ee92eb635f99bf2a1ea96dc5d72e7c2d449c7254a320eaa
MD5 d5ad2711cd4191b6319ca76fca84936a
BLAKE2b-256 d07f98b9f0b888a11531b528f8a26e34ffaa1c9f18edc4798b95fc74abeee9e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_table-1.1.1-py3-none-any.whl:

Publisher: ci.yaml on philippe2803/manim-table

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page