{"id":6346,"date":"2021-07-14T17:09:57","date_gmt":"2021-07-14T15:09:57","guid":{"rendered":"https:\/\/www.mathweb.fr\/euclide\/?p=6346"},"modified":"2021-07-14T17:13:10","modified_gmt":"2021-07-14T15:13:10","slug":"manim-un-module-python-pour-faire-des-animations","status":"publish","type":"post","link":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/","title":{"rendered":"Manim, un module Python pour faire des animations"},"content":{"rendered":"\n<p>Manim est un module Python pour faire des animations &#8220;simplement&#8221;. Tout est relatif&#8230; Il m&#8217;a fallu quand-m\u00eame quelques heures pour comprendre la logique du bousin. Mais au final, on peut faire des choses bien sympathiques&#8230; comme par exemple cette animation:<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" autoplay controls preload=\"auto\" src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/Mathweb.mp4\"><\/video><\/figure>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Au menu sur cette page...<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#Manim_Python_installation\" >Manim Python: installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#Manim_Python_un_exemple\" >Manim Python: un exemple<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#Un_code_Manim_Python\" >Un code Manim Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#La_compilation\" >La compilation<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#La_logique\" >La logique<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#Un_deuxieme_exemple_avec_LaTeX\" >Un deuxi\u00e8me exemple avec \\(\\LaTeX\\)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#Le_code_de_la_video_du_debut\" >Le code de la vid\u00e9o du d\u00e9but<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Manim_Python_installation\"><\/span>Manim Python: installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Pour plus de d\u00e9tails, regardez la page <a href=\"https:\/\/docs.manim.community\/en\/stable\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.manim.community\/en\/stable\/index.html<\/a>.<\/p>\n\n\n\n<p>En gros, il suffit d&#8217;aller en mode console de son OS et de taper:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install manim<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Manim_Python_un_exemple\"><\/span>Manim Python: un exemple<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Le module Manim est orient\u00e9 objet, ce qui est \u00e0 mon avis une bonne chose pour comprendre facilement le fonctionnement.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Un_code_Manim_Python\"><\/span>Un code Manim Python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from manim import *\n\nclass SquareToCircle(Scene):\n    def construct(self):\n        circle = Circle()\n        square = Square()\n        square.flip(RIGHT)\n        square.rotate(-3 * TAU \/ 8)\n        circle.set_fill(PINK, opacity=0.5)\n\n        self.play(Create(square))\n        self.play(Transform(square, circle))\n        self.play(FadeOut(square))<\/pre>\n\n\n\n<p>Sauvegardons ce fichier sous le nom &#8220;example.py&#8221;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"La_compilation\"><\/span>La compilation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Elle se passe en mode console OS (et non console Python, attention !).<\/p>\n\n\n\n<p>Pour effectuer des tests successifs jusqu&#8217;\u00e0 obtention de la vid\u00e9o que l&#8217;on veut, je vous conseille de cr\u00e9er une vid\u00e9o basse r\u00e9solution :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manim -p -ql example.py SquareToCircle<\/code><\/pre>\n\n\n\n<p>L&#8217;option &#8220;-p&#8221; permet de lancer la vid\u00e9o tout de suite apr\u00e8s sa cr\u00e9ation.<\/p>\n\n\n\n<p>L&#8217;option &#8220;-ql&#8221; g\u00e9n\u00e8re une vid\u00e9o basse r\u00e9solution.<\/p>\n\n\n\n<p>La syntaxe sera toujours :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manim &lt;options&gt; &lt;fichier.py&gt; &lt;classe&gt;<\/code><\/pre>\n\n\n\n<p>Attention: cette ligne de commande doit \u00eatre lanc\u00e9e \u00e0 partir du dossier dans lequel se trouve le fichier. Sinon, il faudra indiquer le chemin complet du fichier.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"512\" style=\"aspect-ratio: 978 \/ 512;\" width=\"978\" controls src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/Compilation.mp4\"><\/video><\/figure>\n\n\n\n<p>Selon le code contenu dans la classe, cette \u00e9tape peut \u00eatre plus ou moins longue.<\/p>\n\n\n\n<p>Le r\u00e9sultat est alors la vid\u00e9o suivante:<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"480\" style=\"aspect-ratio: 854 \/ 480;\" width=\"854\" controls src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/SquareToCircle.mp4\"><\/video><\/figure>\n\n\n\n<p>Pour une vid\u00e9o de r\u00e9solution optimale, oubliez le &#8220;-ql&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"La_logique\"><\/span>La logique<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Elle est relativement simple: on cr\u00e9e un objet (un texte normal, un objet \\(\\LaTeX\\), un cercle, un point, un carr\u00e9, un rectangle, &#8230;):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cercle = Circle(&lt;options>)<\/pre>\n\n\n\n<p>Par d\u00e9faut, il est au centre de la vid\u00e9o. On peut le placer o\u00f9 l&#8217;on veut avec la commande &#8220;shift&#8221;; par exemple:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cercle.shift(LEFT)<\/pre>\n\n\n\n<p>pour le placer \u00e0 gauche, ou bien:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cercle.shift(3 * LEFT)<\/pre>\n\n\n\n<p>pour le d\u00e9caler de 3 fois la longueur qui s\u00e9pare le centre de son c\u00f4t\u00e9 gauche.<\/p>\n\n\n\n<p>Ensuite, on lui fait tout ce que l&#8217;on veut (il faut bien s\u00fbr avoir en t\u00eate toutes les m\u00e9thodes possibles&#8230; et donc regarder bien attentivement la documentation).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Un_deuxieme_exemple_avec_LaTeX\"><\/span>Un deuxi\u00e8me exemple avec \\(\\LaTeX\\)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class MovingFrameBox(Scene):\n    def construct(self):\n        text=MathTex(\n            \"\\\\frac{d}{dx}f(x)g(x)=\",\"f(x)\\\\frac{d}{dx}g(x)\",\"+\",\n            \"g(x)\\\\frac{d}{dx}f(x)\"\n        )\n        self.play(Write(text))\n        framebox1 = SurroundingRectangle(text[1], buff = .1)\n        framebox2 = SurroundingRectangle(text[3], buff = .1)\n        self.play(\n            Create(framebox1),\n        )\n        self.wait()\n        self.play(\n            ReplacementTransform(framebox1,framebox2),\n        )\n        self.wait()<\/pre>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"480\" style=\"aspect-ratio: 854 \/ 480;\" width=\"854\" controls src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/MovingFrameBox.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Le_code_de_la_video_du_debut\"><\/span>Le code de la vid\u00e9o du d\u00e9but<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-file aligncenter\"><a href=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/example.py\">example<\/a><a href=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/example.py\" class=\"wp-block-file__button\" download>T\u00e9l\u00e9charger<\/a><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manim est un module Python pour faire des animations &#8220;simplement&#8221;. Tout est relatif&#8230; Il m&#8217;a fallu quand-m\u00eame quelques heures pour comprendre la logique du bousin. Mais au final, on peut faire des choses bien sympathiques&#8230; comme par exemple cette animation:<\/p>\n","protected":false},"author":1,"featured_media":6352,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[300],"class_list":["post-6346","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-animations"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Manim, un module Python pour faire des animations - Mathweb.fr<\/title>\n<meta name=\"description\" content=\"Manim est un module Python pour faire des animations. Il est bas\u00e9 sur la Programmation Orient\u00e9e Objet (POO), ce qui le rend accessible.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manim, un module Python pour faire des animations - Mathweb.fr\" \/>\n<meta property=\"og:description\" content=\"Manim est un module Python pour faire des animations. Il est bas\u00e9 sur la Programmation Orient\u00e9e Objet (POO), ce qui le rend accessible.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/\" \/>\n<meta property=\"og:site_name\" content=\"Mathweb.fr\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-14T15:09:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-14T15:13:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/head-articles-python-manim.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"740\" \/>\n\t<meta property=\"og:image:height\" content=\"198\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"St\u00e9phane Pasquet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"St\u00e9phane Pasquet\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/\"},\"author\":{\"name\":\"St\u00e9phane Pasquet\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"headline\":\"Manim, un module Python pour faire des animations\",\"datePublished\":\"2021-07-14T15:09:57+00:00\",\"dateModified\":\"2021-07-14T15:13:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/\"},\"wordCount\":379,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/head-articles-python-manim.jpg\",\"keywords\":[\"animations\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/\",\"name\":\"Manim, un module Python pour faire des animations - Mathweb.fr\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/head-articles-python-manim.jpg\",\"datePublished\":\"2021-07-14T15:09:57+00:00\",\"dateModified\":\"2021-07-14T15:13:10+00:00\",\"description\":\"Manim est un module Python pour faire des animations. Il est bas\u00e9 sur la Programmation Orient\u00e9e Objet (POO), ce qui le rend accessible.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/head-articles-python-manim.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/head-articles-python-manim.jpg\",\"width\":740,\"height\":198,\"caption\":\"animations python module manim\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2021\\\/07\\\/14\\\/manim-un-module-python-pour-faire-des-animations\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manim, un module Python pour faire des animations\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#website\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/\",\"name\":\"Mathweb.fr\",\"description\":\"Math\u00e9matiques, LaTeX et Python\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\",\"name\":\"St\u00e9phane Pasquet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\",\"contentUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\",\"width\":74,\"height\":77,\"caption\":\"St\u00e9phane Pasquet\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Manim, un module Python pour faire des animations - Mathweb.fr","description":"Manim est un module Python pour faire des animations. Il est bas\u00e9 sur la Programmation Orient\u00e9e Objet (POO), ce qui le rend accessible.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/","og_locale":"fr_FR","og_type":"article","og_title":"Manim, un module Python pour faire des animations - Mathweb.fr","og_description":"Manim est un module Python pour faire des animations. Il est bas\u00e9 sur la Programmation Orient\u00e9e Objet (POO), ce qui le rend accessible.","og_url":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/","og_site_name":"Mathweb.fr","article_published_time":"2021-07-14T15:09:57+00:00","article_modified_time":"2021-07-14T15:13:10+00:00","og_image":[{"width":740,"height":198,"url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/head-articles-python-manim.jpg","type":"image\/jpeg"}],"author":"St\u00e9phane Pasquet","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"St\u00e9phane Pasquet","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#article","isPartOf":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/"},"author":{"name":"St\u00e9phane Pasquet","@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"headline":"Manim, un module Python pour faire des animations","datePublished":"2021-07-14T15:09:57+00:00","dateModified":"2021-07-14T15:13:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/"},"wordCount":379,"commentCount":4,"publisher":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"image":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/head-articles-python-manim.jpg","keywords":["animations"],"articleSection":["Python"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/","url":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/","name":"Manim, un module Python pour faire des animations - Mathweb.fr","isPartOf":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#primaryimage"},"image":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/head-articles-python-manim.jpg","datePublished":"2021-07-14T15:09:57+00:00","dateModified":"2021-07-14T15:13:10+00:00","description":"Manim est un module Python pour faire des animations. Il est bas\u00e9 sur la Programmation Orient\u00e9e Objet (POO), ce qui le rend accessible.","breadcrumb":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#primaryimage","url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/head-articles-python-manim.jpg","contentUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/07\/head-articles-python-manim.jpg","width":740,"height":198,"caption":"animations python module manim"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mathweb.fr\/euclide\/2021\/07\/14\/manim-un-module-python-pour-faire-des-animations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.mathweb.fr\/euclide\/"},{"@type":"ListItem","position":2,"name":"Manim, un module Python pour faire des animations"}]},{"@type":"WebSite","@id":"https:\/\/www.mathweb.fr\/euclide\/#website","url":"https:\/\/www.mathweb.fr\/euclide\/","name":"Mathweb.fr","description":"Math\u00e9matiques, LaTeX et Python","publisher":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mathweb.fr\/euclide\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":["Person","Organization"],"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69","name":"St\u00e9phane Pasquet","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp","url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp","contentUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp","width":74,"height":77,"caption":"St\u00e9phane Pasquet"},"logo":{"@id":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp"}}]}},"_links":{"self":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts\/6346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/comments?post=6346"}],"version-history":[{"count":0,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts\/6346\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/media\/6352"}],"wp:attachment":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/media?parent=6346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/categories?post=6346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/tags?post=6346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}