{"id":26,"date":"2023-04-21T03:02:55","date_gmt":"2023-04-21T03:02:55","guid":{"rendered":"https:\/\/davidshobbies.com\/?p=26"},"modified":"2023-04-21T03:03:00","modified_gmt":"2023-04-21T03:03:00","slug":"generating-fractal-images-with-python-and-chatgpt-was-fun","status":"publish","type":"post","link":"https:\/\/davidshobbies.com\/?p=26","title":{"rendered":"Generating Fractal Images with Python and ChatGPT Was Fun"},"content":{"rendered":"\n<p>A few weeks ago when I was talking with some friends the topics of fractals and ChatGPT came up (along with some other things).  A few days later when I was going for a run I thought it might be neat to see if I could have ChatGPT write some Python code to draw images of fractals.  <\/p>\n\n\n\n<p>I&#8217;ll have to admit that I&#8217;ve been a terminal jockey for most of my life.  I&#8217;ve never written any GUI code that isn&#8217;t a web app.  Based on that I decided to go with a simple <a href=\"https:\/\/click.palletsprojects.com\/en\/8.1.x\/\">Click<\/a> application to handle selecting the different fractals.<\/p>\n\n\n\n<p>This was an interesting experience.  Most of the code works great, except that the Mandelbrodt set code stops drawing after a few minutes.  The program never actually crashes, it just stops doing anything.  The code it generates is pretty damned ugly too.  Pylint scores pretty much all if it at 0.  I have a branch created to clean it up, and I&#8217;ll probably work on it when I have some free time.<\/p>\n\n\n\n<p>Right now, at least for generating code, I&#8217;d call ChatGPT &#8220;fancy autocomplete&#8221; for lack of a better term.  I can see it being useful for generating boilerplate code and things along those lines, but although it could theoretically be used to generate some complicated code I really wouldn&#8217;t trust it with something I didn&#8217;t understand.<\/p>\n\n\n\n<p>Regardless, you can take a look at the <a href=\"https:\/\/github.com\/DavidRamage\/fractalizer\">code<\/a> and take a look for yourself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few weeks ago when I was talking with some friends the topics of fractals and ChatGPT came up (along with some other things). A<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Generating Fractal Images with Python and ChatGPT Was Fun - David&#039;s Hobbies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/davidshobbies.com\/?p=26\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generating Fractal Images with Python and ChatGPT Was Fun - David&#039;s Hobbies\" \/>\n<meta property=\"og:description\" content=\"A few weeks ago when I was talking with some friends the topics of fractals and ChatGPT came up (along with some other things). A\" \/>\n<meta property=\"og:url\" content=\"https:\/\/davidshobbies.com\/?p=26\" \/>\n<meta property=\"og:site_name\" content=\"David&#039;s Hobbies\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-21T03:02:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-21T03:03:00+00:00\" \/>\n<meta name=\"author\" content=\"David\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\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:\\\/\\\/davidshobbies.com\\\/?p=26#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/?p=26\"},\"author\":{\"name\":\"David\",\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/#\\\/schema\\\/person\\\/178ffd56b9731c5da84318cafedb52f7\"},\"headline\":\"Generating Fractal Images with Python and ChatGPT Was Fun\",\"datePublished\":\"2023-04-21T03:02:55+00:00\",\"dateModified\":\"2023-04-21T03:03:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/?p=26\"},\"wordCount\":259,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/davidshobbies.com\\\/?p=26#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/?p=26\",\"url\":\"https:\\\/\\\/davidshobbies.com\\\/?p=26\",\"name\":\"Generating Fractal Images with Python and ChatGPT Was Fun - David&#039;s Hobbies\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/#website\"},\"datePublished\":\"2023-04-21T03:02:55+00:00\",\"dateModified\":\"2023-04-21T03:03:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/#\\\/schema\\\/person\\\/178ffd56b9731c5da84318cafedb52f7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/?p=26#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/davidshobbies.com\\\/?p=26\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/?p=26#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/davidshobbies.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generating Fractal Images with Python and ChatGPT Was Fun\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/#website\",\"url\":\"https:\\\/\\\/davidshobbies.com\\\/\",\"name\":\"David&#039;s Hobbies\",\"description\":\"Nerdy stuff, for both work and play\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/davidshobbies.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/davidshobbies.com\\\/#\\\/schema\\\/person\\\/178ffd56b9731c5da84318cafedb52f7\",\"name\":\"David\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff5cfc9cfbf2b5bd689c140a28b8396fbc5853b4f593d166ecaf4a588c09338d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff5cfc9cfbf2b5bd689c140a28b8396fbc5853b4f593d166ecaf4a588c09338d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff5cfc9cfbf2b5bd689c140a28b8396fbc5853b4f593d166ecaf4a588c09338d?s=96&d=mm&r=g\",\"caption\":\"David\"},\"url\":\"https:\\\/\\\/davidshobbies.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generating Fractal Images with Python and ChatGPT Was Fun - David&#039;s Hobbies","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:\/\/davidshobbies.com\/?p=26","og_locale":"en_US","og_type":"article","og_title":"Generating Fractal Images with Python and ChatGPT Was Fun - David&#039;s Hobbies","og_description":"A few weeks ago when I was talking with some friends the topics of fractals and ChatGPT came up (along with some other things). A","og_url":"https:\/\/davidshobbies.com\/?p=26","og_site_name":"David&#039;s Hobbies","article_published_time":"2023-04-21T03:02:55+00:00","article_modified_time":"2023-04-21T03:03:00+00:00","author":"David","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/davidshobbies.com\/?p=26#article","isPartOf":{"@id":"https:\/\/davidshobbies.com\/?p=26"},"author":{"name":"David","@id":"https:\/\/davidshobbies.com\/#\/schema\/person\/178ffd56b9731c5da84318cafedb52f7"},"headline":"Generating Fractal Images with Python and ChatGPT Was Fun","datePublished":"2023-04-21T03:02:55+00:00","dateModified":"2023-04-21T03:03:00+00:00","mainEntityOfPage":{"@id":"https:\/\/davidshobbies.com\/?p=26"},"wordCount":259,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/davidshobbies.com\/?p=26#respond"]}]},{"@type":"WebPage","@id":"https:\/\/davidshobbies.com\/?p=26","url":"https:\/\/davidshobbies.com\/?p=26","name":"Generating Fractal Images with Python and ChatGPT Was Fun - David&#039;s Hobbies","isPartOf":{"@id":"https:\/\/davidshobbies.com\/#website"},"datePublished":"2023-04-21T03:02:55+00:00","dateModified":"2023-04-21T03:03:00+00:00","author":{"@id":"https:\/\/davidshobbies.com\/#\/schema\/person\/178ffd56b9731c5da84318cafedb52f7"},"breadcrumb":{"@id":"https:\/\/davidshobbies.com\/?p=26#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/davidshobbies.com\/?p=26"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/davidshobbies.com\/?p=26#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/davidshobbies.com\/"},{"@type":"ListItem","position":2,"name":"Generating Fractal Images with Python and ChatGPT Was Fun"}]},{"@type":"WebSite","@id":"https:\/\/davidshobbies.com\/#website","url":"https:\/\/davidshobbies.com\/","name":"David&#039;s Hobbies","description":"Nerdy stuff, for both work and play","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/davidshobbies.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/davidshobbies.com\/#\/schema\/person\/178ffd56b9731c5da84318cafedb52f7","name":"David","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ff5cfc9cfbf2b5bd689c140a28b8396fbc5853b4f593d166ecaf4a588c09338d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ff5cfc9cfbf2b5bd689c140a28b8396fbc5853b4f593d166ecaf4a588c09338d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff5cfc9cfbf2b5bd689c140a28b8396fbc5853b4f593d166ecaf4a588c09338d?s=96&d=mm&r=g","caption":"David"},"url":"https:\/\/davidshobbies.com\/?author=1"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davidshobbies.com\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidshobbies.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidshobbies.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidshobbies.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidshobbies.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":5,"href":"https:\/\/davidshobbies.com\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/davidshobbies.com\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/davidshobbies.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidshobbies.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidshobbies.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}