manim-express


Namemanim-express JSON
Version 0.3.8 PyPI version JSON
download
home_pagehttps://github.com/beidongjiedeguang/manim-express
SummaryAnimation engine for explanatory math videos
upload_time2021-07-18 13:25:48
maintainer
docs_urlNone
authorK.y
requires_python
licenseMIT
keywords computer vision mathematics physics machine learning neural networks
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # manim_express
[![image](https://img.shields.io/badge/Pypi-0.3.8-green.svg)](https://pypi.org/project/manim_express)
[![image](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/)
[![image](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![image](https://img.shields.io/badge/author-kunyuan-orange.svg?style=flat-square&logo=appveyor)](https://github.com/beidongjiedeguang)

## Requirements
```python
manim_kunyuan >= 0.23
sparrow_tool
fake_headers
requests
# helium
# pyperclip
```

------------------------
## Install

```bash
pip install manim_express
```

The above steps will automatically install packages `manim_express` and  `manimlib`(my fork version) for you. Then you can code with them anywhere.  


# Quick start

* Render an animation: [3b1b:SquareToCircle](https://3b1b.github.io/manim/getting_started/quickstart.html#add-animations)

  ```python
  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 on the keyboard and move the mouse to change the three-dimensional perspective.
  * hold down the `s` key on the keyboard and move the mouse to pan the screen
  * hold down the `z` 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`


* `manim_express` vs `Matplotlib`:  
  In some cases, you may need to install [LaTeX](https://www.latex-project.org/get/#tex-distributions) to render `tex` fonts.  
  Fortunately, online latex compilation option is available. Just set `SceneArgs.use_online_tex=True`

  ```python
  from manimlib import *
  from manim_express import *
  import numpy as np
  SceneArgs.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

* Wiki  
  https://flyingframes.readthedocs.io/en/latest/index.html 
  https://3b1b.github.io/manim/

  https://manim.wiki/  
  https://manim.wiki/shaders/

* 3B1B videos:  
  https://github.com/3b1b/videos





# Examples
* GOA model
  <img src="data/pic/GOA.PNG" width = "900"/>


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/beidongjiedeguang/manim-express",
    "name": "manim-express",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Computer Vision,Mathematics,Physics,Machine Learning,Neural Networks",
    "author": "K.y",
    "author_email": "beidongjiedeguang@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/82/96/4bb817daf8d6882484eca9d6f52e3917da09887ad11e87b08492d15be441/manim_express-0.3.8.tar.gz",
    "platform": "",
    "description": "# manim_express\n[![image](https://img.shields.io/badge/Pypi-0.3.8-green.svg)](https://pypi.org/project/manim_express)\n[![image](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/)\n[![image](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![image](https://img.shields.io/badge/author-kunyuan-orange.svg?style=flat-square&logo=appveyor)](https://github.com/beidongjiedeguang)\n\n## Requirements\n```python\nmanim_kunyuan >= 0.23\nsparrow_tool\nfake_headers\nrequests\n# helium\n# pyperclip\n```\n\n------------------------\n## Install\n\n```bash\npip install manim_express\n```\n\nThe above steps will automatically install packages `manim_express` and  `manimlib`(my fork version) for you. Then you can code with them anywhere.  \n\n\n# Quick start\n\n* Render an animation: [3b1b:SquareToCircle](https://3b1b.github.io/manim/getting_started/quickstart.html#add-animations)\n\n  ```python\n  from manimlib import *\n  from manim_express import EagerModeScene\n\n  scene = EagerModeScene()\n  circle = Circle()\n  circle.set_fill(BLUE, opacity=0.5)\n  circle.set_stroke(BLUE_E, width=4)\n\n  square = Square()\n  scene.play(ShowCreation(square))\n  scene.play(ReplacementTransform(square, circle))\n\n  scene.hold_on()\n  ```\n\n  Operating graphics:\n  * hold down the `d` key on the keyboard and move the mouse to change the three-dimensional perspective.\n  * hold down the `s` key on the keyboard and move the mouse to pan the screen\n  * hold down the `z` on the keyboard while scrolling the middle mouse button to zoom the screen\n  * scroll the middle mouse button to move the screen up and down\n  * reset camera view by pressing `r`\n  * close the window and exit the program by pressing `q`\n\n\n* `manim_express` vs `Matplotlib`:  \n  In some cases, you may need to install [LaTeX](https://www.latex-project.org/get/#tex-distributions) to render `tex` fonts.  \n  Fortunately, online latex compilation option is available. Just set `SceneArgs.use_online_tex=True`\n\n  ```python\n  from manimlib import *\n  from manim_express import *\n  import numpy as np\n  SceneArgs.use_online_tex = True # Use online latex compiler\n\n  theta = np.linspace(0, 2*np.pi, 200)\n  x = np.cos(theta)\n  y = np.sin(theta)\n\n  # matplotlib\n  # import matplotlib.pyplot as plt\n  # plt.plot(x, y, color='green', linewidth=2)\n  # plt.axis(\"equal\")\n  # plt.show()\n\n  # manim_express\n  scene = EagerModeScene()\n  scene.plot(x, y, color=GREEN, width=2, scale_ratio=1)\n  scene.show_plot()\n\n  scene.hold_on()\n  ```\n\n\n\n\n\n# Resources\n\n* Wiki  \n  https://flyingframes.readthedocs.io/en/latest/index.html \n  https://3b1b.github.io/manim/\n\n  https://manim.wiki/  \n  https://manim.wiki/shaders/\n\n* 3B1B videos:  \n  https://github.com/3b1b/videos\n\n\n\n\n\n# Examples\n* GOA model\n  <img src=\"data/pic/GOA.PNG\" width = \"900\"/>\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Animation engine for explanatory math videos",
    "version": "0.3.8",
    "split_keywords": [
        "computer vision",
        "mathematics",
        "physics",
        "machine learning",
        "neural networks"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "589406f1f2596e5be808c61b4ebe2d5f",
                "sha256": "91cd8c77b32a2ed4d3b3c0ea3301cef2c9067cf9c078a1b77c54b340872fb44b"
            },
            "downloads": -1,
            "filename": "manim_express-0.3.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "589406f1f2596e5be808c61b4ebe2d5f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 40535,
            "upload_time": "2021-07-18T13:25:46",
            "upload_time_iso_8601": "2021-07-18T13:25:46.151853Z",
            "url": "https://files.pythonhosted.org/packages/32/52/cc0198a38fe6f76321da847a183082ebd4b4e4d3c538f55e2e8cff4077f0/manim_express-0.3.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "a292ab0031e62e84e1e2c364c571eee8",
                "sha256": "0fb9827a6e270a9f5eeca79ce79c160bda2cf4b9f717a979c3968bff9ed4ba2e"
            },
            "downloads": -1,
            "filename": "manim_express-0.3.8.tar.gz",
            "has_sig": false,
            "md5_digest": "a292ab0031e62e84e1e2c364c571eee8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 35516,
            "upload_time": "2021-07-18T13:25:48",
            "upload_time_iso_8601": "2021-07-18T13:25:48.378950Z",
            "url": "https://files.pythonhosted.org/packages/82/96/4bb817daf8d6882484eca9d6f52e3917da09887ad11e87b08492d15be441/manim_express-0.3.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-07-18 13:25:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "beidongjiedeguang",
    "github_project": "manim-express",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "manim-express"
}
        
K.y
Elapsed time: 0.29492s