{"id":7788,"date":"2023-10-04T10:51:04","date_gmt":"2023-10-04T18:51:04","guid":{"rendered":"https:\/\/live-cometml.pantheonsite.io\/?p=7788"},"modified":"2025-04-24T17:06:06","modified_gmt":"2025-04-24T17:06:06","slug":"how-to-integrate-seaborn-and-matplotlib-in-comet","status":"publish","type":"post","link":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/","title":{"rendered":"How to Integrate Seaborn and Matplotlib in Comet"},"content":{"rendered":"\n<link rel=\"canonical\" href=\"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\">\n\n\n\n<div class=\"fh fi fj fk fl\">\n<div class=\"ab ca\">\n<div class=\"ch bg et eu ev ew\">\n<figure class=\"lw lx ly lz ma mb lt lu paragraph-image\">\n<div class=\"mc md eb me bg mf\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mg mh c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png\" alt=\"\" width=\"700\" height=\"467\"><\/figure><div class=\"lt lu lv\"><picture><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"1e28\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\"><a class=\"af nf\" href=\"https:\/\/www.comet.com\/site\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">Comet<\/a> is an experimentation platform that allows you to keep track of your machine learning experiment. Another intriguing fact about Comet is that we can use it to perform exploratory data analysis. Comet integrates with popular Python visualization libraries which can help us achieve our EDA goals.<\/p>\n<p id=\"dc6a\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">We will learn how to integrate <strong class=\"be ng\">Seaborn<\/strong> and <strong class=\"be ng\">Matplotlib<\/strong> with Comet in this tutorial. We will accomplish this by running some EDA on an online e-commerce dataset and logging the visualization to the Comet experimentation website or platform. Without further ado let\u2019s get started.<\/p>\n<p id=\"2d3a\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">So, to begin our journey, we must ensure that the following libraries are present on our machines:<\/p>\n<ul class=\"\">\n<li id=\"2a5e\" class=\"mi mj fo be b mk ml mm mn mo mp mq mr ms nh mu mv mw ni my mz na nj nc nd ne nk nl nm bj\" data-selectable-paragraph=\"\">Pandas Library<\/li>\n<li id=\"1374\" class=\"mi mj fo be b mk nn mm mn mo no mq mr ms np mu mv mw nq my mz na nr nc nd ne nk nl nm bj\" data-selectable-paragraph=\"\">Seaborn and Matplotlib Libraries<\/li>\n<li id=\"d17d\" class=\"mi mj fo be b mk nn mm mn mo no mq mr ms np mu mv mw nq my mz na nr nc nd ne nk nl nm bj\" data-selectable-paragraph=\"\">The comet_ml library.<\/li>\n<\/ul>\n<p id=\"8d14\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">If you don\u2019t have the Comet library installed on your machine you can do that by typing the following command on your command prompt.<\/p>\n<pre class=\"ns nt nu nv nw nx ny nz oa ax ob bj\"><span id=\"9003\" class=\"oc od fo ny b ho oe of l ie og\" data-selectable-paragraph=\"\">pip install comet_ml<\/span><\/pre>\n<p id=\"bb75\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">\u2014 or \u2014<\/p>\n<pre class=\"ns nt nu nv nw nx ny nz oa ax ob bj\"><span id=\"c08e\" class=\"oc od fo ny b ho oe of l ie og\" data-selectable-paragraph=\"\">conda install -c comet_ml<\/span><\/pre>\n<p id=\"4ba9\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">Now that those libraries have been put in place. The next thing will be to obtain the dataset. So the dataset I will be using in this tutorial is from UCL and can be downloaded <a class=\"af nf\" href=\"https:\/\/archive-beta.ics.uci.edu\/ml\/datasets?name=Online+Retail+II\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>. This is a dataset that contains information about transactions that occurred in an online retail store in the United Kingdom between December 1, 2009, and December 9, 2011.<\/p>\n<h2 id=\"c337\" class=\"oc od fo be oh oi oj ok ol om on oo op ms oq or os mw ot ou ov na ow ox oy oz bj\" data-selectable-paragraph=\"\">Loading Dataset<\/h2>\n<p id=\"4d9c\" class=\"pw-post-body-paragraph mi mj fo be b mk pa mm mn mo pb mq mr ms pc mu mv mw pd my mz na pe nc nd ne fh bj\" data-selectable-paragraph=\"\">Let\u2019s import the necessary libraries and load the dataset into a DataFrame.<\/p>\n<pre>import pandas as pd\nimport seaborn as sns\nimport matplotlib.pyplot as plt\n\ndf = pd.read_excel(\"online_retail_II.xlsx\")\n\ndf.head()<\/pre>\n<figure class=\"ns nt nu nv nw mb lt lu paragraph-image\">\n<div class=\"mc md eb me bg mf\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mg mh c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*lLuTtAPjvNKe6Hl79ByP_Q.png\" alt=\"\" width=\"700\" height=\"141\"><\/figure><div class=\"lt lu pi\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*lLuTtAPjvNKe6Hl79ByP_Q.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<h1 id=\"094c\" class=\"pj od fo be oh pk pl pm ol pn po pp op pq pr ps pt pu pv pw px py pz qa qb qc bj\" data-selectable-paragraph=\"\">Exploratory Data Analysis (EDA)<\/h1>\n<p id=\"ebf4\" class=\"pw-post-body-paragraph mi mj fo be b mk pa mm mn mo pb mq mr ms pc mu mv mw pd my mz na pe nc nd ne fh bj\" data-selectable-paragraph=\"\">After you\u2019ve loaded your data into a dataframe. The next step will be to perform exploratory data analysis on it.<\/p>\n<p id=\"269c\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">EDA is essential because it provides insight into the nature of your data. You will gain all of the necessary insights from your data using EDA. EDA informs you if your data is missing or if there are any inconsistent values in your data so that you can process it later. We\u2019ll do some EDA in this tutorial to make sure the article isn\u2019t too bogus.<\/p>\n<p id=\"6600\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">Let us now look at the countries that purchased the most from the store during the time period. We\u2019ll take a look at the top 10 and visualize the information. In this part, we will be using Matplotlib.<\/p>\n<pre>mask_df = df[\"Country\"].value_counts().head(10)\nfig1 = plt.figure(figsize=(12, 10))\nplt.bar(x = mask_df.index, height=mask_df, color=\"sienna\")\nplt.xlabel(\"Country\")\nplt.ylabel(\"Counts\")\nplt.title(\"Numbers of Orders from Countries Over the Years\")\nplt.xticks(rotation=45);<\/pre>\n<figure class=\"ns nt nu nv nw mb lt lu paragraph-image\">\n<div class=\"mc md eb me bg mf\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mg mh c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*m5L5z5LHvFZxXipgontTEQ.png\" alt=\"\" width=\"700\" height=\"620\"><\/figure><div class=\"lt lu qd\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*m5L5z5LHvFZxXipgontTEQ.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*m5L5z5LHvFZxXipgontTEQ.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*m5L5z5LHvFZxXipgontTEQ.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*m5L5z5LHvFZxXipgontTEQ.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*m5L5z5LHvFZxXipgontTEQ.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*m5L5z5LHvFZxXipgontTEQ.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*m5L5z5LHvFZxXipgontTEQ.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*m5L5z5LHvFZxXipgontTEQ.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"ccfe\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">The next EDA we might want to look at is which months had the highest number of sales over the years. To achieve this we can do so by looking at the distribution of the Invoice date column.<\/p>\n<pre>fig2 = plt.figure(figsize=(12, 10))\nsns.histplot(df[\"InvoiceDate\"], color=\"darkslategrey\", bins=50)\nplt.title(\"Distribution of the Invoice Date\");<\/pre>\n<figure class=\"ns nt nu nv nw mb lt lu paragraph-image\">\n<div class=\"mc md eb me bg mf\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mg mh c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*O9t1sZQwkPyAdPYhsr436g.png\" alt=\"\" width=\"700\" height=\"575\"><\/figure><div class=\"lt lu qe\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*O9t1sZQwkPyAdPYhsr436g.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*O9t1sZQwkPyAdPYhsr436g.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*O9t1sZQwkPyAdPYhsr436g.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*O9t1sZQwkPyAdPYhsr436g.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*O9t1sZQwkPyAdPYhsr436g.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*O9t1sZQwkPyAdPYhsr436g.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*O9t1sZQwkPyAdPYhsr436g.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*O9t1sZQwkPyAdPYhsr436g.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<h1 id=\"d179\" class=\"pj od fo be oh pk pl pm ol pn po pp op pq pr ps pt pu pv pw px py pz qa qb qc bj\" data-selectable-paragraph=\"\">Logging the Viz to the Comet Platform<\/h1>\n<p id=\"7c3b\" class=\"pw-post-body-paragraph mi mj fo be b mk pa mm mn mo pb mq mr ms pc mu mv mw pd my mz na pe nc nd ne fh bj\" data-selectable-paragraph=\"\">After we\u2019ve completed our visualization, the next thing will be to log the visualization to the Comet platform. In this tutorial, we will create a new project using Comet\u2019s experiment library.<\/p>\n<p id=\"32ae\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">To proceed with this phase, you will need an API key from Comet. If you haven\u2019t already signed up for their platform, click <a class=\"af nf\" href=\"https:\/\/www.comet.com\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a> to do so. You can find your API key by clicking on your profile picture, then going to the settings icon, and finally scrolling down, as shown below.<\/p>\n<figure class=\"ns nt nu nv nw mb lt lu paragraph-image\">\n<div class=\"mc md eb me bg mf\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mg mh c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D6HKWxTLnqmW5tkI79XJBw.png\" alt=\"\" width=\"700\" height=\"303\"><\/figure><div class=\"lt lu qf\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*D6HKWxTLnqmW5tkI79XJBw.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*D6HKWxTLnqmW5tkI79XJBw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*D6HKWxTLnqmW5tkI79XJBw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*D6HKWxTLnqmW5tkI79XJBw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*D6HKWxTLnqmW5tkI79XJBw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*D6HKWxTLnqmW5tkI79XJBw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*D6HKWxTLnqmW5tkI79XJBw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*D6HKWxTLnqmW5tkI79XJBw.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"ae8b\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">Once that\u2019s done we can now create our experiment and log the visualization. To achieve that we can do that by typing this whole code.<\/p>\n<pre># import comet-ml at the top of your file\nfrom comet_ml import Experiment\n\n# Create an experiment with your api key\nexperiment = Experiment(\n api_key=\"YOUR API KEY XXXX\",\n project_name=\"Matplotlib Demo\",\n workspace=\"ibrahim-ogunbiyi\",\n)\n\nexperiment.log_figure(figure_name=\"Matplotlib Viz\", figure=fig1)\nexperiment.log_figure(figure_name= \"Seaborn Viz\", figure=fig2)<\/pre>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"ab ca qg qh qi qj\" role=\"separator\"><\/div>\n\n\n\n<div class=\"fh fi fj fk fl\">\n<div class=\"ab ca\">\n<div class=\"ch bg et eu ev ew\">\n<blockquote class=\"qo\"><p id=\"6181\" class=\"qp qq fo be qr qs qt qu qv qw qx ne dv\" data-selectable-paragraph=\"\">Want to try Comet for yourself? <a class=\"af nf\" href=\"https:\/\/bit.ly\/3DqBUci\" target=\"_blank\" rel=\"noopener ugc nofollow\">Try for free today!<\/a><\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"ab ca qg qh qi qj\" role=\"separator\"><\/div>\n\n\n\n<div class=\"fh fi fj fk fl\">\n<div class=\"ab ca\">\n<div class=\"ch bg et eu ev ew\">\n<p id=\"e965\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">Now let\u2019s go over the following code in chunks:<\/p>\n<pre># import comet-ml at the top of your file\nfrom comet_ml import Experiment\n\n# Create an experiment with your api key\nexperiment = Experiment(\n api_key=\"YOUR API KEY XXXX\",\n project_name=\"Matplotlib Demo\",\n workspace=\"ibrahim-ogunbiyi\",\n)<\/pre>\n<p id=\"859e\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">In the above code, we imported the <code class=\"cw qy qz ra ny b\">Experiment<\/code> library from <code class=\"cw qy qz ra ny b\">comet_ml<\/code> . Now we then instantiated it and then assign it to a variable called <code class=\"cw qy qz ra ny b\">experiment<\/code>. The <code class=\"cw qy qz ra ny b\">Experiment<\/code> library requires some parameters which are your API key, what you wish to name your project, and the name of your workspace. The workspace name can be found from the Comet platform such as:<\/p>\n<figure class=\"ns nt nu nv nw mb lt lu paragraph-image\">\n<div class=\"mc md eb me bg mf\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mg mh c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*V2OnXT6SNOoxknWSOQYyDA.png\" alt=\"\" width=\"700\" height=\"204\"><\/figure><div class=\"lt lu rb\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*V2OnXT6SNOoxknWSOQYyDA.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*V2OnXT6SNOoxknWSOQYyDA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*V2OnXT6SNOoxknWSOQYyDA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*V2OnXT6SNOoxknWSOQYyDA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*V2OnXT6SNOoxknWSOQYyDA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*V2OnXT6SNOoxknWSOQYyDA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*V2OnXT6SNOoxknWSOQYyDA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*V2OnXT6SNOoxknWSOQYyDA.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<div><\/div>\n<\/div>\n<\/figure>\n<pre>experiment.log_figure(figure_name=\"Matplotlib Viz\", figure=fig1)\nexperiment.log_figure(figure_name= \"Seaborn Viz\", figure=fig2)\nexperiment.end()<\/pre>\n<p id=\"2c64\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">The above two lines of code are used to log our visualization to the Comet Platform. The <code class=\"cw qy qz ra ny b\">.log_figure()<\/code> methods are used for Matplotlib and Seaborn Visualization. We then name our visualization.<\/p>\n<p id=\"bfbd\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">Remember that we\u2019ve assigned a variable name to our visualization previously which are fig1 and fig2 we then pass it to the figure parameter.<\/p>\n<p id=\"c9bd\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">If you are making use of a notebook, either Jupyter or Colab, then you need to end your experiment by typing the <code class=\"cw qy qz ra ny b\">experiment.end()<\/code> code.<\/p>\n<p id=\"2c3d\" class=\"pw-post-body-paragraph mi mj fo be b mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne fh bj\" data-selectable-paragraph=\"\">Now we can go to our website and view our experiments:<\/p>\n<figure class=\"ns nt nu nv nw mb\">\n<div class=\"pf ig l eb\">\n<div class=\"rc ph l\"><iframe loading=\"lazy\" class=\"ek n fc dx bg\" title=\"New Recording - 8\/31\/2022, 3:00:11 PM\" src=\"https:\/\/cdn.embedly.com\/widgets\/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F745012497%3Fh%3D1ee04d6898%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F745012497%2F1ee04d6898&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1498577999-e87af1b884713a6aa1960560f6efe42aead3ce964cd14b831305867ada77c5d0-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo\" width=\"1536\" height=\"824\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<\/div>\n<\/figure>\n<h1 id=\"e7c5\" class=\"pj od fo be oh pk pl pm ol pn po pp op pq pr ps pt pu pv pw px py pz qa qb qc bj\" data-selectable-paragraph=\"\">Conclusion<\/h1>\n<p id=\"47b5\" class=\"pw-post-body-paragraph mi mj fo be b mk pa mm mn mo pb mq mr ms pc mu mv mw pd my mz na pe nc nd ne fh bj\" data-selectable-paragraph=\"\">In this article, we\u2019ve learned how we can integrate Matplotlib and Seaborn with Comet. Comet provides integration with most Python libraries you can think of in Data Science and Machine learning. You can click <a class=\"af nf\" href=\"https:\/\/www.comet.com\/docs\/v2\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a> to check more on their documentation. The full code used in this tutorial can be found <a href=\"https:\/\/github.com\/ibrahim-ogunbiyi\/Comet-ML-Demo?source=post_page-----d3eeb0fa892e--------------------------------\">here<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Comet is an experimentation platform that allows you to keep track of your machine learning experiment. Another intriguing fact about Comet is that we can use it to perform exploratory data analysis. Comet integrates with popular Python visualization libraries which can help us achieve our EDA goals. We will learn how to integrate Seaborn and [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"customer_name":"","customer_description":"","customer_industry":"","customer_technologies":"","customer_logo":"","footnotes":""},"categories":[9,7],"tags":[],"coauthors":[137],"class_list":["post-7788","post","type-post","status-publish","format-standard","hentry","category-product","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Integrate Seaborn and Matplotlib in Comet - Comet<\/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:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Integrate Seaborn and Matplotlib in Comet\" \/>\n<meta property=\"og:description\" content=\"Comet is an experimentation platform that allows you to keep track of your machine learning experiment. Another intriguing fact about Comet is that we can use it to perform exploratory data analysis. Comet integrates with popular Python visualization libraries which can help us achieve our EDA goals. We will learn how to integrate Seaborn and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/\" \/>\n<meta property=\"og:site_name\" content=\"Comet\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cometdotml\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-04T18:51:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T17:06:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png\" \/>\n<meta name=\"author\" content=\"Ibrahim Ogunbiyi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Cometml\" \/>\n<meta name=\"twitter:site\" content=\"@Cometml\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ibrahim Ogunbiyi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Integrate Seaborn and Matplotlib in Comet - Comet","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:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/","og_locale":"en_US","og_type":"article","og_title":"How to Integrate Seaborn and Matplotlib in Comet","og_description":"Comet is an experimentation platform that allows you to keep track of your machine learning experiment. Another intriguing fact about Comet is that we can use it to perform exploratory data analysis. Comet integrates with popular Python visualization libraries which can help us achieve our EDA goals. We will learn how to integrate Seaborn and [&hellip;]","og_url":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/","og_site_name":"Comet","article_publisher":"https:\/\/www.facebook.com\/cometdotml","article_published_time":"2023-10-04T18:51:04+00:00","article_modified_time":"2025-04-24T17:06:06+00:00","og_image":[{"url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png","type":"","width":"","height":""}],"author":"Ibrahim Ogunbiyi","twitter_card":"summary_large_image","twitter_creator":"@Cometml","twitter_site":"@Cometml","twitter_misc":{"Written by":"Ibrahim Ogunbiyi","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#article","isPartOf":{"@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/"},"author":{"name":"Team Comet Digital","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/6266601170c60a7a82b3e0043fbe8ddf"},"headline":"How to Integrate Seaborn and Matplotlib in Comet","datePublished":"2023-10-04T18:51:04+00:00","dateModified":"2025-04-24T17:06:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/"},"wordCount":736,"publisher":{"@id":"https:\/\/www.comet.com\/site\/#organization"},"image":{"@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png","articleSection":["Product","Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/","url":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/","name":"How to Integrate Seaborn and Matplotlib in Comet - Comet","isPartOf":{"@id":"https:\/\/www.comet.com\/site\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#primaryimage"},"image":{"@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png","datePublished":"2023-10-04T18:51:04+00:00","dateModified":"2025-04-24T17:06:06+00:00","breadcrumb":{"@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#primaryimage","url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png","contentUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*D2N470BiLX9Opvzndt6d-A.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.comet.com\/site\/blog\/how-to-integrate-seaborn-and-matplotlib-in-comet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.comet.com\/site\/"},{"@type":"ListItem","position":2,"name":"How to Integrate Seaborn and Matplotlib in Comet"}]},{"@type":"WebSite","@id":"https:\/\/www.comet.com\/site\/#website","url":"https:\/\/www.comet.com\/site\/","name":"Comet","description":"Build Better Models Faster","publisher":{"@id":"https:\/\/www.comet.com\/site\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.comet.com\/site\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.comet.com\/site\/#organization","name":"Comet ML, Inc.","alternateName":"Comet","url":"https:\/\/www.comet.com\/site\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/#\/schema\/logo\/image\/","url":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2025\/01\/logo_comet_square.png","contentUrl":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2025\/01\/logo_comet_square.png","width":310,"height":310,"caption":"Comet ML, Inc."},"image":{"@id":"https:\/\/www.comet.com\/site\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/cometdotml","https:\/\/x.com\/Cometml","https:\/\/www.youtube.com\/channel\/UCmN63HKvfXSCS-UwVwmK8Hw"]},{"@type":"Person","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/6266601170c60a7a82b3e0043fbe8ddf","name":"Team Comet Digital","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/image\/4f0c0a8cc7c0e87c636ff6a420a6647c","url":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2023\/08\/Screen-Shot-2023-08-12-at-8.58.50-AM-96x96.png","contentUrl":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2023\/08\/Screen-Shot-2023-08-12-at-8.58.50-AM-96x96.png","caption":"Team Comet Digital"},"sameAs":["https:\/\/www.comet.ml\/"],"url":"https:\/\/www.comet.com\/site\/blog\/author\/teamcometdigital\/"}]}},"_links":{"self":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/7788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/comments?post=7788"}],"version-history":[{"count":1,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/7788\/revisions"}],"predecessor-version":[{"id":15523,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/7788\/revisions\/15523"}],"wp:attachment":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/media?parent=7788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/categories?post=7788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/tags?post=7788"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/coauthors?post=7788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}