This project visualizes daily ChatGPT activity as a GitHub-style contribution heatmap, showing the number of conversations per day.
The original version of ai-heatmap is from author Chip Huyen(@chiphuyen) and the repo aie-book (every AI engineer building real-world applications should read this book).
- Converts exported ChatGPT conversation data into a heatmap.
- Displays activity counts by day, similar to GitHub contribution graphs.
Before you begin, ensure you have the following installed:
Python 3.8+
matplotlib
numpy
- Visit your ChatGPT account settings.
- Navigate to Data Controls.
- Click Export Data and follow the instructions.
- You will receive a
.zip
file in your email. Download and extract it. - Locate the
conversations.json
file from the extracted data.
- Visit your Claude account settings.
- Click Export Data and follow the instructions.
- You will receive a
.zip
file in your email. Download and extract it. - Locate the
conversations.json
file from the extracted data.
-
Open the Jupyter Notebook:
jupyter notebook
-
Load the
chatgpt_heatmap.ipynb
file. -
Update the
json_file_path
variable with the path to yourconversations.json
file:json_file_path = "path_to_your_conversations.json"
-
Run all cells to generate the heatmap.
- Color Map: Modify the
ListedColormap
in the script to adjust heatmap colors. - Borders: Adjust
edgecolors
andlinewidths
in thepcolormesh
function.
You can do the same for Claude, as both have the file named conversations.json.