dsh-manim-card: Real-time Rendering of Manim Animations in the DSH Chat Stream

Introduction

The common workflow for creating math or presentation animations with Manim involves installing Python locally, writing scripts, and then exporting videos or opening a preview window. If the Manim code generated by the model in a conversation is left only as plain text in the chat history, you have to copy it yourself, set up the environment, and debug errors, which disrupts the rhythm of “chatting while verifying.”

DeepSeek Harness (DSH) breaks down capabilities into installable plugins. Below is an introduction to the community-maintained dsh-manim-card: it allows the model to write Python Manim code within the session, and a playable animation card appears directly in the chat stream, complete with the ability to view the source code.

What is this

dsh-manim-card (GitHub: snowowowo/dsh-manim-card, maintained by snowowowo) is a client-side plugin for DSH. Its positioning is: AI writes Manim code in the chat, and it renders on the spot within a card in the chat stream; the plugin runs independently, focusing solely on the matter of Manim cards in the chat stream.

Execution is completed within the browser, and runtime resources are distributed with the plugin. No local Python installation is required, nor does it depend on external rendering services. The current version of the project is 0.1.0, licensed under MIT.

Core Features

According to the repository README, the plugin mainly provides the following capabilities:

  1. Card embedded in the chat stream
    A title line and a canvas block, with playback and code viewing options on the right (the preview image also includes the title row and right-side buttons). After playback ends, it remains on the final frame and does not automatically loop or replay.

  2. Pre-flight check before presentation
    The code is run through an interpreter before being returned to the interface. Syntax errors or unsupported syntax will be fed back to the model immediately, facilitating correction within the same turn; no blank or incomplete cards will be left in the chat.

  3. No local Python required
    Rendering relies on browser-side runtime resources distributed with the package; implementation-wise, the plugin depends on manim-live (^0.3.0).

  4. Playback strategy
    The newly generated card will actually play once; cards that are remounted or from old sessions will directly display the final state. When the user manually clicks play, it overrides the aforementioned automatic rules.

Installation and Activation

Execute the official installation command in the plugin management of the DSH host:

dsh plugin add github:snowowowo/dsh-manim-card

Refresh the host page after installation. A “Manim Cards” section will appear in the settings panel. The README explains: the first rendering requires fetching runtime resources once (approx. 13 MB), after which it can be used offline.

The plugin runs with the permissions of the current DSH process. It is recommended to review the GitHub repository source code and LICENSE yourself before installing; distributed runtime resources and inline third-party components have separate license explanations, see THIRD-PARTY.md in the repository.

Typical Usage

Simply describe the animation you want to draw in natural language within the session. The example given in the README is:

Draw a unit circle with Manim

Once conditions are met, the card will appear in the chat stream. For more detailed interactions and settings, please refer to the online documentation (bilingual in Chinese and English):

Scenarios and Notes

Who is it for

  • Those discussing geometry or algorithm demos with models in DSH who want to see the Manim effect immediately rather than just receiving a block of code.
  • Those who do not wish to or find it inconvenient to maintain a full Manim/Python environment locally, but still want to quickly verify script ideas within a conversation.

Notes

  • The capability boundaries are subject to the in-browser interpreter and manim-live support; unsupported syntax will be fed back to the model via pre-flight checks rather than failing silently in the card.
  • The community plugin directory (such as the entry on SkillHub) has no official affiliation with DeepSeek / High-Flyer; star counts and iteration rhythm are subject to GitHub.

Conclusion

dsh-manim-card consolidates Manim from a “local project” into a card in the chat stream: it is playable, viewable, and undergoes pre-flight checks before presentation. If you want to install it or contribute code, you can start from the directory page and the repository:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye