Skip to main content

manim_express

image image image image

Requirements

manim_kunyuan >= 0.31
sparrow_tool
fake_headers
requests
# helium
# pyperclip

中文说明 | English

Install

pip install manim_express

The above steps will automatically install packages manim_express and manimlib for you. Then you can code with them anywhere.

Quick start

  • Render an animation: 3b1b:SquareToCircle

    from manimlib import *
    from manim_express import EagerModeScene
    
    scene = EagerModeScene()
    circle = Circle()
    circle.set_fill(BLUE, opacity=0.5)
    circle.set_stroke(BLUE_E, width=4)
    
    square = Square()
    scene.play(ShowCreation(square))
    scene.play(ReplacementTransform(square, circle))
    
    scene.hold_on()
    

    Operating graphics:

    • hold down the d key or mouse left on the keyboard and move the mouse to change the three-dimensional perspective.
    • hold down the s key or mouse right on the keyboard and move the mouse to pan the screen
    • hold down the z or ctrl on the keyboard while scrolling the middle mouse button to zoom the screen
    • scroll the middle mouse button to move the screen up and down
    • reset camera view by pressing r
    • close the window and exit the program by pressing q or tab
    • pause the animation by pressing space or ctrl
    • previews animation clip by pressing LEFT
    • next animation clip: RIGHT
    • replay current animation clip: DOWN
  • manim_express vs Matplotlib:
    In some cases, you may need to install LaTeX to render tex fonts.
    Fortunately, online latex compilation option is available. Just set SceneArgs.use_online_tex=True

    from manimlib import *
    from manim_express import *
    import numpy as np
    CONFIG.use_online_tex = True # Use online latex compiler
    
    theta = np.linspace(0, 2*np.pi, 200)
    x = np.cos(theta)
    y = np.sin(theta)
    
    # matplotlib
    # import matplotlib.pyplot as plt
    # plt.plot(x, y, color='green', linewidth=2)
    # plt.axis("equal")
    # plt.show()
    
    # manim_express
    scene = EagerModeScene()
    scene.plot(x, y, color=GREEN, width=2, scale_ratio=1)
    scene.show_plot()
    
    scene.hold_on()
    

Resources

Examples

  • Bezier curve
  • GOA model

  • Apply function

  • Double pendulum

Download files

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

Source Distribution

manim_express-0.5.0.tar.gz (18.1 MB view details)

Uploaded Source

Built Distribution

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

manim_express-0.5.0-py3-none-any.whl (169.4 kB view details)

Uploaded Python 3

File details

Details for the file manim_express-0.5.0.tar.gz.

File metadata

  • Download URL: manim_express-0.5.0.tar.gz
  • Upload date:
  • Size: 18.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for manim_express-0.5.0.tar.gz
Algorithm Hash digest
SHA256 6a918e6d4d85a09b803a331f456542a36ae5c90d5644762b231d80355c79dc6b
MD5 897873b8053da8aae83fc2ded9c2afa4
BLAKE2b-256 c9b34dd17c5822640430e91e530029782e0e4f9669be143c36dc4b30320e112b

See more details on using hashes here.

File details

Details for the file manim_express-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: manim_express-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 169.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for manim_express-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85d67e92eba80ff4a680d3b41e00ac5f05a0e1bf99bcf567815b49b97b39b2ef
MD5 2c74146b6db45449ccb7d5675a54a4e9
BLAKE2b-256 7a7ef4e77b00d2ef6234a823743745af52229f2c487f1afe64b780dda053c28a

See more details on using hashes here.

Supported by

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