{"id":25,"date":"2023-01-17T20:01:24","date_gmt":"2023-01-17T20:01:24","guid":{"rendered":"https:\/\/ribaldoneelia.com\/?p=25"},"modified":"2024-11-15T12:35:34","modified_gmt":"2024-11-15T12:35:34","slug":"copilot-chatgpt-and-python","status":"publish","type":"post","link":"https:\/\/ribaldoneelia.com\/index.php\/2023\/01\/17\/copilot-chatgpt-and-python\/","title":{"rendered":"Copilot and Python"},"content":{"rendered":"\n<p>I have been programming in Python for a few years now and have been able to experience its full potential, unlike other languages you can create very high-level structures or go down to interfacing with USB or writing bits to memory. In fact anything you want to program is possible with Python.<\/p>\n\n\n\n<p>That said, I recently stumbled upon <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/features\/copilot\" target=\"_blank\">Copilot<\/a> , a tool that writes code for you given a comment, an example:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-video\"><video autoplay loop preload=\"auto\" src=\"https:\/\/ribaldoneelia.com\/wp-content\/uploads\/2023\/01\/Copilot1.mp4\" playsinline><\/video><\/figure>\n\n\n\n<p>he tool also gives autocomplete suggestions as seen in the video.<\/p>\n\n\n\n<p>Let&#8217;s look at a more complicated example, here we want to format an excel sheet with a dark blue header and alternating white and light blue subsequent rows:<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video autoplay loop preload=\"auto\" src=\"https:\/\/ribaldoneelia.com\/wp-content\/uploads\/2023\/01\/Copilot2.mp4\" playsinline><\/video><\/figure>\n\n\n\n<p>Done! It&#8217;s incredible, I probably  have to spent half of hour to write the same code.<\/p>\n\n\n\n<p>For the moment it&#8217;s enough, my first post is very small as my time slot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been programming in Python for a few years now and have been able to experience its full potential,<\/p>\n<p><a href=\"https:\/\/ribaldoneelia.com\/index.php\/2023\/01\/17\/copilot-chatgpt-and-python\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Copilot and Python<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":9,"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ribaldoneelia.com\/index.php\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}