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.0.tar.gz (8.7 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.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: manim_table-1.1.0.tar.gz
  • Upload date:
  • Size: 8.7 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.0.tar.gz
Algorithm Hash digest
SHA256 d99000cd6d51e2bf1d4bf947f28f05e55cf8b69fc74acf4761b17cd608965c5b
MD5 1fc9a1b7684bf1d5bf47d156d34506fb
BLAKE2b-256 65b22e0ea28cfb8142a4cd7e60502788c31adaee02b1bf4b3da93ff6ba4a9833

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_table-1.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: manim_table-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 692975d19d04c39902c16de586e8ae2151f34d36e73cf112d0fc9ec321def6e1
MD5 0a8de90374a98739e9386758f087c080
BLAKE2b-256 eaf9348772d9276f8825b9ddbaaa298e68b02b5c2b94bd6a1ab3ca5f06804782

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_table-1.1.0-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