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, animations = table.add_row(["Charlie", "35", "London"])
self.play(*animations)

# Delete a row (index starts at 1 for data rows)
deleted_row, shift_anims, resize_anims = table.delete_row(1)

self.play(FadeOut(deleted_row))
self.play(*shift_anims)
if resize_anims:
    self.play(*resize_anims)

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.0.1.tar.gz (8.2 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.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: manim_table-1.0.1.tar.gz
  • Upload date:
  • Size: 8.2 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.0.1.tar.gz
Algorithm Hash digest
SHA256 8a01974da474177a6a7933d1afc24d68c328df4998f638984899c684a5cbd368
MD5 5f441341794f6f445b99891124807c42
BLAKE2b-256 4e606cd840e3b85830954eacf6123b1d28312cb725f7e4a10921d7fbdfb114d6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: manim_table-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec474bc8377194a195a8a79a0d35a6f421714cf221f7d71e51c3165b151cd21d
MD5 61720f7740729e2b3fa29d662ffd005e
BLAKE2b-256 d93336e082145f81788ffe0d8b608244fbbd2348b259f0fb619b2a52d027b928

See more details on using hashes here.

Provenance

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