{"id":1863,"date":"2019-12-23T14:28:20","date_gmt":"2019-12-23T13:28:20","guid":{"rendered":"https:\/\/www.mathweb.fr\/euclide\/?p=1863"},"modified":"2021-12-06T15:58:31","modified_gmt":"2021-12-06T14:58:31","slug":"un-beau-sapin-de-noel-en-python","status":"publish","type":"post","link":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/","title":{"rendered":"Un beau sapin de No\u00ebl en Python"},"content":{"rendered":"\n<p>Pour illustrer cette p\u00e9riode de No\u00ebl, et pour rester tout de m\u00eame dans la th\u00e9matique de mon site, rien de tel qu&#8217;un code Python pour faire un beau sapin de No\u00ebl&#8230; <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg\" alt=\"sapin no\u00ebl python\" class=\"wp-image-7167\" srcset=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg 640w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python-300x225.jpg 300w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python-600x450.jpg 600w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption>Sapin de No\u00ebl r\u00e9alis\u00e9 \u00e0 l&#8217;aide de Python<\/figcaption><\/figure><\/div>\n\n\n\n<p>Parce qu&#8217;un sapin pourri du genre:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"659\" src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2019\/12\/sapin1.png\" alt=\"\" class=\"wp-image-1864\" srcset=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2019\/12\/sapin1.png 1009w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2019\/12\/sapin1-300x196.png 300w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2019\/12\/sapin1-600x392.png 600w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2019\/12\/sapin1-768x502.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><figcaption>Sapin de No\u00ebl bien pourri<\/figcaption><\/figure><\/div>\n\n\n\n<p>non merci!<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Moi, je voulais un beau sapin de No\u00ebl en Python ! Je me suis donc mis \u00e0 fouiller Internet, et je suis tomb\u00e9 sur la page  <a href=\"https:\/\/perso.crans.org\/besson\/infoMP\/TPs\/solutions\/_modules\/sapinNoel.html\">https:\/\/perso.crans.org\/besson\/infoMP\/TPs\/solutions\/_modules\/sapinNoel.html<\/a>. Malheureusement, le script ne fonctionne pas totalement&#8230; L&#8217;auteur nous promet une animation, mais quand on lance le script, l&#8217;animation ne se cr\u00e9e pas car la partie concernant l&#8217;animation est a priori obsol\u00e8te. Et j&#8217;ai beau chercher, je ne trouve pas comment modifier simplement ce script pour faire clignoter les boules.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2019\/12\/sapinNoel.gif\" alt=\"sapin no\u00ebl python\" class=\"wp-image-1865\"\/><\/figure><\/div>\n\n\n\n<p>J&#8217;ai donc \u00e9pur\u00e9 le script afin qu&#8217;il dessine au moins un arbre statique, et cela donne :<\/p>\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=\"\">\"\"\" Script original : Arnaud Basson\n- URL : https:\/\/perso.crans.org\/besson\/infoMP\/TPs\/solutions\/sapinNoel.html\n- *Date :* No\u00ebl 2015 ! (24 d\u00e9cembre 2015),\n- *Licence :* MIT Licence (http:\/\/lbesson.mit-license.org).\n\"\"\"\n\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib.collections as coll\n\ndef simil(u, v):\n    b = u\n    a = 1j*(u-v)\n    def f(z):\n        return a * z + b\n    return f\n\nf1 = simil(0.2j, 0.2j + 0.5*np.exp(1j*np.pi\/7))\nf2 = simil(0.22j, 0.22j + 0.45j*np.exp(1j*60*np.pi\/180))\nf3 = simil(0.55j, 0.55j + 0.35*np.exp(1j*30*np.pi\/180))\nf4 = simil(0.57j, 0.57j + 0.3j*np.exp(1j*np.pi\/3))\nf5 = simil(0.7j, 1.2j-0.01)\n\ndef iterer(n):\n    L = [0, 0.7j]\n    L1 = L[:]\n    for _ in range(n):\n        L2 = []\n        for f in [f1, f2, f3, f4, f5]:\n            L2.extend([f(z) for z in L1])\n        L.extend(L2)\n        L1 = L2\n    return L\n\ndef tracer(n):\n    L = iterer(n)\n    pts = [(z.real, z.imag) for z in L]\n    fig = plt.figure()\n    segments = coll.LineCollection(zip(pts[::2], pts[1::2]), color='darkgreen')\n    ax = plt.gca()\n    ax.add_collection(segments)\n    nb = 30\n    l = len(L)\n    p = l\/\/nb if l >= nb else 1\n    x = [z.real for z in L[1::p]]\n    y = [z.imag for z in L[1::p]]\n    couleurs = ['red', 'blue', 'yellow']\n    c = [couleurs[k % len(couleurs)] for k in range(len(x))]\n    sca = plt.scatter(x, y, s=60, c=c, zorder=2)\n    plt.axis('equal')\n    plt.ylim(0, 1.45)\n    plt.xticks([])\n    plt.yticks([])\n    plt.show()\n\ntracer(7)<\/pre>\n\n\n\n<p>Si vous avez une suggestion pour cr\u00e9er une animation, n&#8217;h\u00e9sitez-pas \u00e0 la proposer !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pour illustrer cette p\u00e9riode de No\u00ebl, et pour rester tout de m\u00eame dans la th\u00e9matique de mon site, rien de tel qu&#8217;un code Python pour faire un beau sapin de No\u00ebl&#8230; Parce qu&#8217;un sapin pourri du genre: non merci!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[152,153],"class_list":["post-1863","post","type-post","status-publish","format-standard","hentry","category-python","tag-noel","tag-sapin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Un beau sapin de No\u00ebl en Python - Mathweb.fr<\/title>\n<meta name=\"description\" content=\"Un sapin de No\u00ebl en Python: le code que je vous pr\u00e9sente ici est inspir\u00e9 d&#039;un autre code propos\u00e9 par Arnaud Basson. Il a \u00e9t\u00e9 \u00e9pur\u00e9.\" \/>\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\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Un beau sapin de No\u00ebl en Python - Mathweb.fr\" \/>\n<meta property=\"og:description\" content=\"Un sapin de No\u00ebl en Python: le code que je vous pr\u00e9sente ici est inspir\u00e9 d&#039;un autre code propos\u00e9 par Arnaud Basson. Il a \u00e9t\u00e9 \u00e9pur\u00e9.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Mathweb.fr\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-23T13:28:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-06T14:58:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/\"},\"author\":{\"name\":\"St\u00e9phane Pasquet\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"headline\":\"Un beau sapin de No\u00ebl en Python\",\"datePublished\":\"2019-12-23T13:28:20+00:00\",\"dateModified\":\"2021-12-06T14:58:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/\"},\"wordCount\":195,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/sapin_noel_python.jpg\",\"keywords\":[\"no\u00ebl\",\"sapin\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/\",\"name\":\"Un beau sapin de No\u00ebl en Python - Mathweb.fr\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/sapin_noel_python.jpg\",\"datePublished\":\"2019-12-23T13:28:20+00:00\",\"dateModified\":\"2021-12-06T14:58:31+00:00\",\"description\":\"Un sapin de No\u00ebl en Python: le code que je vous pr\u00e9sente ici est inspir\u00e9 d'un autre code propos\u00e9 par Arnaud Basson. Il a \u00e9t\u00e9 \u00e9pur\u00e9.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/sapin_noel_python.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/sapin_noel_python.jpg\",\"width\":640,\"height\":480},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2019\\\/12\\\/23\\\/un-beau-sapin-de-noel-en-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Un beau sapin de No\u00ebl en Python\"}]},{\"@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":"Un beau sapin de No\u00ebl en Python - Mathweb.fr","description":"Un sapin de No\u00ebl en Python: le code que je vous pr\u00e9sente ici est inspir\u00e9 d'un autre code propos\u00e9 par Arnaud Basson. Il a \u00e9t\u00e9 \u00e9pur\u00e9.","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\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/","og_locale":"fr_FR","og_type":"article","og_title":"Un beau sapin de No\u00ebl en Python - Mathweb.fr","og_description":"Un sapin de No\u00ebl en Python: le code que je vous pr\u00e9sente ici est inspir\u00e9 d'un autre code propos\u00e9 par Arnaud Basson. Il a \u00e9t\u00e9 \u00e9pur\u00e9.","og_url":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/","og_site_name":"Mathweb.fr","article_published_time":"2019-12-23T13:28:20+00:00","article_modified_time":"2021-12-06T14:58:31+00:00","og_image":[{"url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg","type":"","width":"","height":""}],"author":"St\u00e9phane Pasquet","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"St\u00e9phane Pasquet","Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#article","isPartOf":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/"},"author":{"name":"St\u00e9phane Pasquet","@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"headline":"Un beau sapin de No\u00ebl en Python","datePublished":"2019-12-23T13:28:20+00:00","dateModified":"2021-12-06T14:58:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/"},"wordCount":195,"commentCount":0,"publisher":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"image":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg","keywords":["no\u00ebl","sapin"],"articleSection":["Python"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/","url":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/","name":"Un beau sapin de No\u00ebl en Python - Mathweb.fr","isPartOf":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#primaryimage"},"image":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg","datePublished":"2019-12-23T13:28:20+00:00","dateModified":"2021-12-06T14:58:31+00:00","description":"Un sapin de No\u00ebl en Python: le code que je vous pr\u00e9sente ici est inspir\u00e9 d'un autre code propos\u00e9 par Arnaud Basson. Il a \u00e9t\u00e9 \u00e9pur\u00e9.","breadcrumb":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#primaryimage","url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg","contentUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2021\/12\/sapin_noel_python.jpg","width":640,"height":480},{"@type":"BreadcrumbList","@id":"https:\/\/www.mathweb.fr\/euclide\/2019\/12\/23\/un-beau-sapin-de-noel-en-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.mathweb.fr\/euclide\/"},{"@type":"ListItem","position":2,"name":"Un beau sapin de No\u00ebl en Python"}]},{"@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\/1863","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=1863"}],"version-history":[{"count":0,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts\/1863\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/media?parent=1863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/categories?post=1863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/tags?post=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}