{"id":6234,"date":"2022-04-26T12:02:50","date_gmt":"2022-04-26T03:02:50","guid":{"rendered":"https:\/\/gri.jp\/media\/?p=6234"},"modified":"2022-04-26T12:02:50","modified_gmt":"2022-04-26T03:02:50","slug":"github-copilot%e3%81%a7python%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/gri.jp\/media\/entry\/6234","title":{"rendered":"GitHub Copilot\u3067Python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u81ea\u52d5\u5316\u3057\u3066\u307f\u308b"},"content":{"rendered":"<div id=\"rtoc-mokuji-wrapper\" class=\"rtoc-mokuji-content frame1 animation-fade rtoc_open noto-sans\" data-id=\"6234\">\n<div id=\"rtoc-mokuji-title\" class=\"rtoc_left\"><button class=\"rtoc_open_close rtoc_open\"><\/button><span>\u76ee\u6b21<\/span><\/div>\n<ul class=\"rtoc-mokuji mokuji_none level-1\">\n<li class=\"rtoc-item\"><a href=\"#rtoc-1\">GitHub Copilot\u3068\u306f\uff1f<\/a><\/li>\n<li class=\"rtoc-item\"><a href=\"#rtoc-2\">GitHub Copilot\u306e\u59cb\u3081\u65b9<\/a><\/li>\n<li class=\"rtoc-item\"><a href=\"#rtoc-3\">\u7c21\u5358\u306bCopilot\u3092\u8a66\u3059<\/a><\/li>\n<li class=\"rtoc-item\"><a href=\"#rtoc-4\">ForecastFlow\u306e\u30b3\u30fc\u30c9\u3067Copilot\u3092\u8a66\u3059<\/a><\/li>\n<li class=\"rtoc-item\"><a href=\"#rtoc-5\">\u304a\u308f\u308a\u306b<\/a><\/li>\n<\/ul>\n<\/div>\n<h2 id=\"rtoc-1\" >GitHub Copilot\u3068\u306f\uff1f<\/h2>\n<p><a href=\"https:\/\/copilot.github.com\/\" target=\"_blank\" rel=\"noopener\">GitHub Copilot<\/a>\u306fAI\u304c\u4eca\u66f8\u3044\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d9a\u304d\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002OpenAI Codex\u3068\u3044\u3046GPT-3\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f\u30e2\u30c7\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001GitHub\u3068OpenAI\u304c\u5171\u540c\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u57f7\u7b46\u6642\u70b9\u3067\u306f\u30c6\u30af\u30cb\u30ab\u30eb\u30d7\u30ec\u30d3\u30e5\u30fc\u306e\u72b6\u614b\u3067\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u306f\u3069\u306e\u8a00\u8a9e\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u304c\u3001Python\u306f\u7279\u306b\u5f97\u610f\u306a\u8a00\u8a9e\u306e\u4e00\u3064\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<h2 id=\"rtoc-2\" >GitHub Copilot\u306e\u59cb\u3081\u65b9<\/h2>\n<p>GitHub Copilot\u306eTechnical Preview\u306f\u73fe\u5728\u7121\u6599\u3067\u4f7f\u3048\u308b\u306e\u3067\u3059\u304c\u3001\u5229\u7528\u306b\u9806\u756a\u5f85\u3061\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u79c1\u306fhttps:\/\/copilot.github.com\/\u304b\u3089GitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u3067Sign Up\u3057\u307e\u3057\u305f\u3002<br \/>\n\u9806\u756a\u304c\u56de\u3063\u3066\u304f\u308b\u307e\u3067\u6570\u30f6\u6708\u304b\u304b\u304b\u308b\u306e\u3067\u901a\u77e5\u304c\u304f\u308b\u307e\u3067\u5f85\u3061\u307e\u3057\u3087\u3046\u3002<br \/>\n\u79c1\u306e\u5834\u5408\u3001\u300cWelcome to GitHub Copilot Technical Preview!\u300d\u3068\u3044\u3046\u4ef6\u540d\u3067\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u3066\u9806\u756a\u304c\u6765\u307e\u3057\u305f\u3002<\/p>\n<p>VSCode\u3067\u306f\u9806\u756a\u5f85\u3061\u3068\u62e1\u5f35\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3060\u3051\u3067\u4f7f\u3044\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u9806\u756a\u304c\u6765\u305f\u3089<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=GitHub.copilot\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 id=\"rtoc-3\" >\u7c21\u5358\u306bCopilot\u3092\u8a66\u3059<\/h2>\n<h3>\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u3092\u66f8\u3044\u3066\u3082\u3089\u3046<\/h3>\n<p>\u3068\u308a\u3042\u3048\u305a\u6709\u540d\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u66f8\u3044\u3066\u3082\u3089\u3044\u307e\u3059\u3002<br \/>\n\u95a2\u6570\u540d\u3068\u5f15\u6570\u307e\u3067\u66f8\u3044\u3066\u307f\u308b\u3068&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6244 size-full\" src=\"https:\/\/gri.jp\/media\/wp\/wp-content\/uploads\/2022\/03\/copilot_quick_sort-1.png\" alt=\"\" width=\"912\" height=\"271\" \/><br \/>\n\u3059\u3050\u306b\u305d\u308c\u3089\u3057\u3044\u30b3\u30fc\u30c9\u304c\u63d0\u6848\u3055\u308c\u307e\u3057\u305f\uff01<br \/>\n\u305d\u306e\u307e\u307e\u3067\u3082\u52d5\u304d\u305d\u3046\u306a\u306e\u3067\u9069\u5f53\u306b\u52d5\u304b\u3057\u3066\u307f\u308b\u3068<\/p>\n<pre class=\"language-python\"><code>&gt;&gt;&gt; quick_sort([3, 2, 1, 5, 10, 20, 13])\r\n[1, 2, 3, 5, 10, 13, 20]<\/code><\/pre>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3061\u3083\u3093\u3068\u30bd\u30fc\u30c8\u3055\u308c\u3066\u307e\u3059\u3002<\/p>\n<h3>\u7e70\u308a\u8fd4\u3057\u306e\u30b3\u30fc\u30c9\u3067\u63d0\u6848\u3057\u3066\u3082\u3089\u3046<\/h3>\n<p>\u540c\u3058\u69cb\u9020\u3092\u4f55\u5ea6\u3082\u66f8\u304f\u306e\u3063\u3066\u9762\u5012\u3060\u3057\u81ea\u52d5\u5316\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u3066\u3044\u308b\u3068\u305d\u3046\u3044\u3046\u5834\u9762\u306f\u591a\u3044\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fdict\u3092\u8981\u7d20\u3068\u3057\u3066\u3082\u3064list\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6245 size-full\" src=\"https:\/\/gri.jp\/media\/wp\/wp-content\/uploads\/2022\/03\/copilot_users.png\" alt=\"\" width=\"1040\" height=\"762\" \/><br \/>\n\u671f\u5f85\u901a\u308a\u3067\u3059\u3002<br \/>\nusername\u306e\u982d\u6587\u5b57\u304cA\u2192B\u2192C\u2192D\u3068\u3044\u3046\u898f\u5247\u3082\u6e80\u305f\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u306b\u7d9a\u3044\u3066\u3001username\u307e\u3067\u5165\u308c\u308b\u3068organization\u304cGRI\u3068\u306a\u308b\u3088\u3046\u306b\u63d0\u6848\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<h2 id=\"rtoc-4\" >ForecastFlow\u306e\u30b3\u30fc\u30c9\u3067Copilot\u3092\u8a66\u3059<\/h2>\n<p>\u3053\u3053\u307e\u3067\u306f\u4f8b\u3068\u3057\u3066\u4e00\u822c\u7684\u3059\u304e\u3066\u3042\u307e\u308aCopilot\u306e\u826f\u3055\u304c\u308f\u304b\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u6b21\u306f<a href=\"https:\/\/pypi.org\/project\/forecastflow\/\" target=\"_blank\" rel=\"noopener\">ForecastFlow\u306ePython\u30d1\u30c3\u30b1\u30fc\u30b8<\/a>\u3092VSCode\u3067\u958b\u3044\u305f\u72b6\u614b\u3067\u305d\u306e\u4e2d\u8eab\u3092\u7de8\u96c6\u3057\u306a\u304c\u3089Copilot\u306e\u52d5\u4f5c\u3092\u8a66\u3057\u307e\u3059\u3002<br \/>\n\u203b\u4ee5\u964d\u306e\u30b3\u30fc\u30c9\u306f\u3042\u304f\u307e\u3067\u4f8b\u793a\u306e\u305f\u3081\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u306f\u4f7f\u7528\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<h3>\u30af\u30e9\u30b9\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u2460<\/h3>\n<p>DataSource\u30af\u30e9\u30b9\u306bdelete\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6246 size-full\" src=\"https:\/\/gri.jp\/media\/wp\/wp-content\/uploads\/2022\/03\/copilot_delete.png\" alt=\"\" width=\"1034\" height=\"694\" \/><br \/>\n\u305d\u308c\u3089\u3057\u3044\u30b3\u30fc\u30c9\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n_v3.delete_data_source\u3068\u3044\u3046\u95a2\u6570\u306f\u5b58\u5728\u3057\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3082\u3057\u3042\u308c\u3070\u52d5\u304d\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<h3>\u30af\u30e9\u30b9\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u2461<\/h3>\n<p>Project\u30af\u30e9\u30b9\u306b_create_data_source_from_bq\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30e1\u30bd\u30c3\u30c9\u540d\u3057\u304b\u5165\u529b\u3057\u3066\u306a\u3044\u306e\u3067\u3059\u304c\u3001BigQuery\u306e\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6247 size-full\" src=\"https:\/\/gri.jp\/media\/wp\/wp-content\/uploads\/2022\/03\/copilot_create_ds_bq.png\" alt=\"\" width=\"1170\" height=\"1046\" \/><br \/>\n\u30b3\u30fc\u30c9\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\nBigQuery\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306eID\u3082\u3061\u3083\u3093\u3068\u5f15\u6570\u306b\u5165\u308c\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nBigQuery\u306e\u77e5\u8b58\u3082\u5c11\u3057\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h3>\u4f8b\u5916\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<p>\u4f8b\u5916\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n<code>class Not<\/code>\u307e\u3067\u6253\u3061\u8fbc\u3080\u3068\u7d9a\u304d\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6248 size-full\" src=\"https:\/\/gri.jp\/media\/wp\/wp-content\/uploads\/2022\/03\/copilot_not_found.png\" alt=\"\" width=\"815\" height=\"384\" \/><br \/>\nDataSource\u3084Model\u3001Prediction\u3068\u3044\u3046\u30ea\u30bd\u30fc\u30b9\u304cForecastFlow\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u7406\u89e3\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"rtoc-5\" >\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u306fGitHub Copilot\u3092\u8a66\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u3046\u3044\u3046\u30c4\u30fc\u30eb\u306f\u7684\u5916\u308c\u306a\u51fa\u529b\u3092\u3055\u308c\u308b\u3068\u7d50\u69cb\u30a4\u30e9\u30a4\u30e9\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001Copilot\u306f\u305d\u3053\u305d\u3053\u4f7f\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u7de8\u96c6\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u306a\u304f\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3082\u8e0f\u307e\u3048\u3066\u7d9a\u304d\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u308b\u3068\u3053\u308d\u3082\u3059\u3054\u3044\u3067\u3059\u3088\u306d\u3002<br \/>\n\u305d\u3057\u3066\u3053\u3053\u307e\u3067\u9ad8\u5ea6\u306a\u30e2\u30c7\u30eb\u306a\u306e\u306b1-2\u79d2\u3068\u304b\u304b\u306a\u308a\u77ed\u3044\u6642\u9593\u3067\u51fa\u529b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u305f\u307e\u306b\u306fCopilot\u3068\u4e00\u7dd2\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u307f\u308b\u3068\u697d\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub Copilot\u3068\u306f\uff1f GitHub Copilot\u306fAI\u304c\u4eca\u66f8\u3044\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d9a\u304d\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002OpenAI Codex\u3068\u3044\u3046GPT-3\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f\u30e2\u30c7\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001GitHub\u3068O<\/p>\n","protected":false},"author":12,"featured_media":3911,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144,83,138,100,130],"tags":[],"class_list":["post-6234","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-ai","category-tips","category-technical","category-try"],"acf":[],"meta_field":{"_edit_lock":["1650945190:1"],"_edit_last":["1"],"_oembed_9fbe04e0205fe5d3aa8d98ccff00ec53":["{{unknown}}"],"hidden_toppage":["0"],"_hidden_toppage":["field_61933136630d2"],"note_url":[""],"_note_url":["field_61243c8278b90"],"_thumbnail_id":["3911"],"_wp_old_date":["2022-04-19"],"_pv_count":["a:24:{i:12;i:377;i:13;i:451;i:16;i:563;i:17;i:460;i:10;i:467;i:11;i:427;i:8;i:203;i:14;i:512;i:23;i:222;i:5;i:106;i:6;i:103;i:2;i:181;i:22;i:273;i:19;i:307;i:21;i:301;i:9;i:345;i:3;i:169;i:18;i:397;i:0;i:194;i:1;i:214;i:15;i:512;i:20;i:280;i:4;i:112;i:7;i:116;}"],"pv_count":["7292"]},"_links":{"self":[{"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/posts\/6234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/comments?post=6234"}],"version-history":[{"count":9,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/posts\/6234\/revisions"}],"predecessor-version":[{"id":6801,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/posts\/6234\/revisions\/6801"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/media\/3911"}],"wp:attachment":[{"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/media?parent=6234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/categories?post=6234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gri.jp\/media\/wp-json\/wp\/v2\/tags?post=6234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}