
ChatGPT Code Interpreter(コードインタープリター) の紹介:Code Interpreterの使い方と活用事例20選
2023年7月7日、OpenAIはChatGPT Plusの新機能、Code Interpreter(コードインタープリター)のアクセスを全Plusユーザーに拡大すると発表しました。OpenAIが開発したChatGPTは、自然言語処理技術を活用して人間との会話を可能にしています。この記事では、ChatGPT Plusに新たに追加されたCode Interpreterの詳細と、そして実際にCode Interpreterを使用して何ができるのかについて解説します。
Code Interpreterとは?
Code Interpreterは、ChatGPTを拡張する新たな機能です。この機能を利用すると、Pythonを使ったコードの実行や、ファイルのアップロードが可能になります。
他にも、数学的な問題の解決からデータ分析と可視化、さらにはファイル形式の変換など、様々な活用ができます。
Code Interpreterの使い方
0. 前提として、ChatGPT Plusに登録している必要があります。

左下の角にあるユーザー名から「Settings」をクリックします。


次に「Beta features」をクリックします。

このメニューから、「Code Interpreter」を有効にします。
Code Interpreter 活用事例20選
ここからは、実際に「Code Interpreter」を使った活用例20選をご紹介していきます!
1. スプシのデータから顧客をセグメンテーション
1. Segment your customers in seconds
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
It takes a spreadsheet and then comes up with different segments of music markets - on its own.
This used to take hours of a human coding in R or Matlab.pic.twitter.com/K3BTvRHZzm
2. テキストからグラフの作成
2. Decompose seasonality simply via text
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
On its own, it figured out the exact seasonality in the price of bitcoin - in the blink of an eye.
This used to be an analysis you had to conduct.
Source: @TechMemeKing pic.twitter.com/6teSWOUchE
3. 位置情報をアップロードしてマップを作成
4. Easy Geo Charts
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
You can just upload location data and get a GIF of the thing visualized - in this case, lighthouses in the US twinkling.
You used to have to connect this to expensive software like Tableau.
Source: @emollick pic.twitter.com/1UOGBwRzv1
4. スプシデータからのグラフ作成
5. Basic descriptive charts in seconds
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
Just asking for "some basic visualizations" can get you all your data exploration steps that used to take hours in seconds.
You used to have to come up with the ideas yourself, even if the charts were easy to generate.
Source: @OpenAI pic.twitter.com/uHsfNGTNKG
5. ネット上のデータを元に追加インプットなしでグラフ作成(2021年までのデータ)
6. Graph public data without input
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
It can fetch data from public databases like the IMF and visualize it for you without any work.
This used to be a process of finding data, loading into your software, then formatting the chart. All is now done for you.
Source: @AiBreakfast pic.twitter.com/yxOMdjnQmP
6. レーダーチャートの作成
7. Automatic Radar Charts
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
It generated this hard-to-create chart by itself after analyzing this user's 300 hr Spotify playlist.
These used to only be available in certain software, and cumbersome to configure.
Source: @SHL0MS pic.twitter.com/MyfZGftWYT
7. ヒートマップの作成
8. Heatmaps With Ease
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
A CSV of SF crime data resulted in this heatmap with no guidance.
Source: @backus pic.twitter.com/YtqjInNibG
8. ログチャートを出力
9. Output the log chart automatically
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
Just ask ChatGPT to analyze a dataset and it'll figure out when a log transformation applies, and output it itself.
You used to have to do the transformation yourself and then chart it.
Source: @TechMemeKing pic.twitter.com/jlaqfi2U2z
9. コホート分析、コホートチャートの作成
10. Cohort chart with no effort
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
Just upload data and it will build your cohorts and chart it in seconds.
This used to be several steps of grouping and charting. Now it's done automatically.
Source: @danshipper pic.twitter.com/Xe0QnnLHJw
10. クラスタリングアルゴリズムを選び、デバッグを行う
11. Choose your clustering algorithm and debug
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
At scale clustering into groups of 100 used to be a tedious process in Python.
Code Interpreter does it all for you in seconds. And debugs its mistakes.
Source: @jmilinovich pic.twitter.com/ZAP4i493GR
11. 自然言語によるデータ分析(例えば'平均価格は何?'のような質問)
12. Natural language querying to reduce stakeholder requests
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
Data scientists used to always get distracted with simple questions from stakeholders like "what's the average list price?"
Now they can just do it in Code Interpreter.
Source: @JimSpiewakpic.twitter.com/lxKpTuVgbj
13. 関数の作図
13. Plot mathematical functions
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
You used to have to go into a math tool to create a simple plot, and then define all the elements of the formula.
Code Interpreter will make assumptions and do it without any guidance.
Source: @EasyGuideAI pic.twitter.com/oOsfinzUbR
14. データのクリーニング
14. Clean data
— Aakash Gupta 🚀 Product Growth Guy (@aakashg0) May 6, 2023
Data cleaning used to be a tedious task filled with human decisions.
Code Interpreter will make intelligent decisions for you, like remove unnecessary columns.
Source: @olliethedev pic.twitter.com/0BNnEnkkgd
15. 画像をアップロード&画像の色を抽出してパレットを作成
ChatGPT Code Interpreter is incredible! 🌟
— Pietro Schirano (@skirano) May 1, 2023
Its file uploading & downloading capabilities make it a super flexible tool for various tasks. 💼
Here it extracts colors from an image to create a palette.png 🎨
And automatically compresses large images when running out of memory. pic.twitter.com/i25yPujtBV
16. GIF ファイル の作成(マトリックス風GIF🤯)
ChatGPT Code Interpreter (alpha) renders an animated GIF: pic.twitter.com/2txArURcu1
— Riley Goodside (@goodside) April 28, 2023
17. ファイルの形式変換&編集(MP4に変換↓)
Basic video editing in ChatGPT, converting uploaded GIF to longer MP4 with slow zoom: pic.twitter.com/fmCPUBkedD
— Riley Goodside (@goodside) April 30, 2023
18. QRコードの作成
Code Interpreter will be available to all ChatGPT Plus users over the next week.
— OpenAI (@OpenAI) July 6, 2023
It lets ChatGPT run code, optionally with access to files you've uploaded. You can ask ChatGPT to analyze data, create charts, edit files, perform math, etc.
Plus users can opt in via settings. pic.twitter.com/IjH5JBqe5B
19. 画像の拡大
1/ 画像のサイズ変更
— いち (@IchiShiogao) July 7, 2023
Twitterアイコンで試してみました pic.twitter.com/GMIsLZBn9q
20. Bitcoin データの分析
ChatGPT code interpreter plug-in is OVERPOWERED🔥
— CodeHumor (@TechMemeKing) May 2, 2023
I asked it to analyze a Bitcoin dataset that I downloaded with my IPhone 👇🏼 pic.twitter.com/eCfHhPeQfC
まとめ
いかがだったでしょうか?本記事では、ChatGPTの新機能Code Interpreterについて解説しました。Code Interpreterを利用することで、よりChatGPTの活用の幅が広がります。これからもこの進化のスピードは加速することが予測されます。今後の動向に注目していきましょう。
これからも継続的に ChatGPT 関連の情報について発信していきますので、フォロー (@ctgptlb)よろしくお願いします。この革命的なテクノロジーの最前線に立つ機会をお見逃しなく!
ChatGPTが無料で使えるChatGPT研究所公式LINEボットはこちら: