MIT License

项目介绍

kilacoda/chanim 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 179 个 Star、15 次 Fork。

仓库全名
kilacoda/chanim
开源许可证
MIT License
Star 数
179
Fork 数
15
未关闭 Issue
10

README 摘要

Chanim [!Warning] This repository is archived and not being developed on as of January 11th, 2026. I stopped working on Manim a couple years ago, and also just lost interest in my chemistry videos project. There's also better ways to represent chemical structures and even 3D molecular diagrams in manim people have developed in the meantime (which I'd link to, but were unfortunately wiped out in the recent deletion…

完整内容见 GitHub 原始 README 或本页 。

常见问题

chanim 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 179 个 Star。

chanim 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 chanim 的源码?

可以直接克隆仓库:git clone https://github.com/kilacoda/chanim.git,默认分支为 master;安装与运行步骤见仓库 README。

chanim 最近还在维护吗?

仓库最近一次更新为 1月12日,当前有 10 个未关闭 Issue;Star 数为 179,可作为社区活跃度的参考。

关于

Animation engine for explanatory chemistry videos

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
214
价值分
111
活跃状态
归档

语言占比

Python

README

Chanim

Warning 警告

This repository is archived and not being developed on as of January 11th, 2026. I stopped working on Manim a couple years ago, and also just lost interest in my chemistry videos project. There’s also better ways to represent chemical structures and even 3D molecular diagrams in manim people have developed in the meantime (which I’d link to, but were unfortunately wiped out in the recent deletion of the Manim discord). Hopefully you are able to rediscover those and use them according to your needs.

Thank you for all the support provided on this repository and on YouTube over the past years. It’s always surprising to me when I get a notification for someone starring this repo or commenting on my videos lol, but I do sincerely appreciate it.

This is an extension to Manim library (initially created by 3Blue1Brown), for making videos regarding chemistry.

A Hindi version of this README is available here.

A Chinese version of this README is available here.

Installation (pip)

pip install chanim

Installation (Source)

  1. Install the external dependencies for manim as described here according to your OS.
  2. Clone the contents of this repository.
  3. Open a terminal in the cloned directory and run pip install -e ., or if you prefer to use poetry instead, poetry install. This’ll install manim for you as well if you don’t already have it installed. (you’ll still need to setup the external dependencies though)

That’s about it. You can now do from chanim import <*|object_name> like any regular Python package.

Usage

Here’s a little example of it working.

from chanim import *

class ChanimScene(Scene):
    def construct(self):
        ## ChemWithName creates a chemical diagram with a name label
        chem = ChemWithName("*6((=O)-N(-CH_3)-*5(-N=-N(-CH_3)-=)--(=O)-N(-H_3C)-)", "Caffeine")

        self.play(chem.creation_anim())
        self.wait()

Type this into a python (.py) file. I’ll assume you named it chem.py

In your command prompt/terminal write this (assuming you’re in your project directory):

manim -p -qm chem.py ChanimScene

This’ll render your Scene and preview it in your default player (in medium quality).

https://user-images.githubusercontent.com/65204531/124297601-dcafcf80-db78-11eb-936b-cdc913c91f25.mp4

Congrats! You’ve written and played your first animation with chanim (or “chanimation” should I say)

Explore the code and docs (coming soon!) for more on how to use chanim.

Abilities

Currently chanim only supports drawing compounds and reactions along with a few chemfig commands (Chemfig is a latex package that can draw chemical molecules and is used by chanim internally. The documentation is available here) but more is to come! If you have a suggestion, file an issue with a proper tag.

A Quick Note

There may be some faulty code and a lot of this may not be well made/documented. Feel free to file an issue if something doesn’t work properly.

评论

暂无评论