From 5ced6c19cb8baedd71aa70157f381fed4370bb07 Mon Sep 17 00:00:00 2001 From: Guillaume Vernade Date: Thu, 9 Jan 2025 11:15:23 +0100 Subject: [PATCH] Add "input=" as it's now needed with the new SDK version (#400) --- gemini-2/live_api_tool_use.ipynb | 473 +++++++++++++++++++++++++------ 1 file changed, 384 insertions(+), 89 deletions(-) diff --git a/gemini-2/live_api_tool_use.ipynb b/gemini-2/live_api_tool_use.ipynb index 86cfcea04..bb7d19493 100644 --- a/gemini-2/live_api_tool_use.ipynb +++ b/gemini-2/live_api_tool_use.ipynb @@ -301,7 +301,7 @@ " async with client.aio.live.connect(model=model_name, config=config) as session:\n", " display.display(display.Markdown(prompt))\n", " display.display(display.Markdown('-------------------------------'))\n", - " await session.send(prompt, end_of_turn=True)\n", + " await session.send(input=prompt, end_of_turn=True)\n", "\n", " audio = False\n", " filename = f'audio_{n}.wav'\n", @@ -405,7 +405,7 @@ " )\n", "\n", " print('\\n>>> ', tool_response)\n", - " await session.send(tool_response)" + " await session.send(input=tool_response)" ] }, { @@ -426,7 +426,9 @@ "outputs": [ { "data": { - "text/markdown": "Hello?", + "text/markdown": [ + "Hello?" + ], "text/plain": [ "" ] @@ -436,7 +438,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -446,7 +450,9 @@ }, { "data": { - "text/markdown": "Hello", + "text/markdown": [ + "Hello" + ], "text/plain": [ "" ] @@ -456,7 +462,9 @@ }, { "data": { - "text/markdown": " there! How can I help you today?\n", + "text/markdown": [ + " there! How can I help you today?\n" + ], "text/plain": [ "" ] @@ -510,7 +518,9 @@ "outputs": [ { "data": { - "text/markdown": "Turn on the lights", + "text/markdown": [ + "Turn on the lights" + ], "text/plain": [ "" ] @@ -520,7 +530,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -530,7 +542,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -540,7 +554,12 @@ }, { "data": { - "text/markdown": "``` python\nprint(default_api.turn_on_the_lights())\n\n```", + "text/markdown": [ + "``` python\n", + "print(default_api.turn_on_the_lights())\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -550,7 +569,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -568,7 +589,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -578,7 +601,12 @@ }, { "data": { - "text/markdown": "```\n{'result': 'ok'}\n\n```", + "text/markdown": [ + "```\n", + "{'result': 'ok'}\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -588,7 +616,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -598,7 +628,9 @@ }, { "data": { - "text/markdown": "OK", + "text/markdown": [ + "OK" + ], "text/plain": [ "" ] @@ -608,7 +640,9 @@ }, { "data": { - "text/markdown": "\n", + "text/markdown": [ + "\n" + ], "text/plain": [ "" ] @@ -654,7 +688,9 @@ "outputs": [ { "data": { - "text/markdown": "Can you compute the largest prime palindrome under 100000.", + "text/markdown": [ + "Can you compute the largest prime palindrome under 100000." + ], "text/plain": [ "" ] @@ -664,7 +700,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -674,7 +712,9 @@ }, { "data": { - "text/markdown": "Okay", + "text/markdown": [ + "Okay" + ], "text/plain": [ "" ] @@ -684,7 +724,9 @@ }, { "data": { - "text/markdown": ", I understand. You're asking me to find the largest prime number that", + "text/markdown": [ + ", I understand. You're asking me to find the largest prime number that" + ], "text/plain": [ "" ] @@ -694,7 +736,9 @@ }, { "data": { - "text/markdown": " is also a palindrome (reads the same forwards and backward) and is less than", + "text/markdown": [ + " is also a palindrome (reads the same forwards and backward) and is less than" + ], "text/plain": [ "" ] @@ -704,7 +748,13 @@ }, { "data": { - "text/markdown": " 100,000.\n\nHere's my plan:\n\n1. **Generate Palindromes:** I will generate a list of palind", + "text/markdown": [ + " 100,000.\n", + "\n", + "Here's my plan:\n", + "\n", + "1. **Generate Palindromes:** I will generate a list of palind" + ], "text/plain": [ "" ] @@ -714,7 +764,10 @@ }, { "data": { - "text/markdown": "romes under 100,000, starting with the largest and working downwards.\n2. **Check for Primality:** For each palindrome,", + "text/markdown": [ + "romes under 100,000, starting with the largest and working downwards.\n", + "2. **Check for Primality:** For each palindrome," + ], "text/plain": [ "" ] @@ -724,7 +777,10 @@ }, { "data": { - "text/markdown": " I'll check if it's a prime number.\n3. **Return the Largest Prime Palindrome:** The first palindrome I find that's also prime is the largest prime palindrome under 100,000,", + "text/markdown": [ + " I'll check if it's a prime number.\n", + "3. **Return the Largest Prime Palindrome:** The first palindrome I find that's also prime is the largest prime palindrome under 100,000," + ], "text/plain": [ "" ] @@ -734,7 +790,11 @@ }, { "data": { - "text/markdown": " and that's the one I will return.\n\nLet's start by generating palindromes. Since we are going from largest to smallest, I will start with the number 99999 and work my way downwards. I", + "text/markdown": [ + " and that's the one I will return.\n", + "\n", + "Let's start by generating palindromes. Since we are going from largest to smallest, I will start with the number 99999 and work my way downwards. I" + ], "text/plain": [ "" ] @@ -744,7 +804,10 @@ }, { "data": { - "text/markdown": "'ll use python to help with the palindrome generation and primality testing.\n\n", + "text/markdown": [ + "'ll use python to help with the palindrome generation and primality testing.\n", + "\n" + ], "text/plain": [ "" ] @@ -754,7 +817,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -764,7 +829,36 @@ }, { "data": { - "text/markdown": "``` python\ndef is_palindrome(n):\n return str(n) == str(n)[::-1]\n\ndef is_prime(n):\n if n <= 1:\n return False\n if n <= 3:\n return True\n if n % 2 == 0 or n % 3 == 0:\n return False\n i = 5\n while i * i <= n:\n if n % i == 0 or n % (i + 2) == 0:\n return False\n i += 6\n return True\n\nlargest_prime_palindrome = None\nfor i in range(99999, 1, -1):\n if is_palindrome(i):\n if is_prime(i):\n largest_prime_palindrome = i\n break\n\nprint(f'{largest_prime_palindrome=}')\n\n```", + "text/markdown": [ + "``` python\n", + "def is_palindrome(n):\n", + " return str(n) == str(n)[::-1]\n", + "\n", + "def is_prime(n):\n", + " if n <= 1:\n", + " return False\n", + " if n <= 3:\n", + " return True\n", + " if n % 2 == 0 or n % 3 == 0:\n", + " return False\n", + " i = 5\n", + " while i * i <= n:\n", + " if n % i == 0 or n % (i + 2) == 0:\n", + " return False\n", + " i += 6\n", + " return True\n", + "\n", + "largest_prime_palindrome = None\n", + "for i in range(99999, 1, -1):\n", + " if is_palindrome(i):\n", + " if is_prime(i):\n", + " largest_prime_palindrome = i\n", + " break\n", + "\n", + "print(f'{largest_prime_palindrome=}')\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -774,7 +868,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -784,7 +880,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -794,7 +892,12 @@ }, { "data": { - "text/markdown": "```\nlargest_prime_palindrome=98689\n\n```", + "text/markdown": [ + "```\n", + "largest_prime_palindrome=98689\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -804,7 +907,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -814,7 +919,9 @@ }, { "data": { - "text/markdown": "Okay", + "text/markdown": [ + "Okay" + ], "text/plain": [ "" ] @@ -824,7 +931,9 @@ }, { "data": { - "text/markdown": ", I have found the largest prime palindrome under 100,00", + "text/markdown": [ + ", I have found the largest prime palindrome under 100,00" + ], "text/plain": [ "" ] @@ -834,7 +943,11 @@ }, { "data": { - "text/markdown": "0.\n\nThe largest prime palindrome under 100000 is", + "text/markdown": [ + "0.\n", + "\n", + "The largest prime palindrome under 100000 is" + ], "text/plain": [ "" ] @@ -844,7 +957,9 @@ }, { "data": { - "text/markdown": " **98689**.\n", + "text/markdown": [ + " **98689**.\n" + ], "text/plain": [ "" ] @@ -883,7 +998,9 @@ "outputs": [ { "data": { - "text/markdown": "Can you turn on the lights wait 10s and then turn them off?", + "text/markdown": [ + "Can you turn on the lights wait 10s and then turn them off?" + ], "text/plain": [ "" ] @@ -893,7 +1010,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -903,7 +1022,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -913,7 +1034,15 @@ }, { "data": { - "text/markdown": "``` python\nimport time\ndefault_api.turn_on_the_lights()\ntime.sleep(10)\ndefault_api.turn_off_the_lights()\n\n```", + "text/markdown": [ + "``` python\n", + "import time\n", + "default_api.turn_on_the_lights()\n", + "time.sleep(10)\n", + "default_api.turn_off_the_lights()\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -923,7 +1052,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -982,7 +1113,9 @@ "outputs": [ { "data": { - "text/markdown": "Can you use google search tell me about the largest earthquake in california the week of Dec 5 2024?", + "text/markdown": [ + "Can you use google search tell me about the largest earthquake in california the week of Dec 5 2024?" + ], "text/plain": [ "" ] @@ -992,7 +1125,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1002,7 +1137,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1012,7 +1149,12 @@ }, { "data": { - "text/markdown": "``` python\nprint(google_search.search(queries=[\"largest earthquake in California week of December 5 2024\", \"California earthquakes week of December 5 2024\"]))\n\n```", + "text/markdown": [ + "``` python\n", + "print(google_search.search(queries=[\"largest earthquake in California week of December 5 2024\", \"California earthquakes week of December 5 2024\"]))\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1022,7 +1164,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1032,7 +1176,9 @@ }, { "data": { - "text/markdown": "\n", + "text/markdown": [ + "\n" + ], "text/plain": [ "" ] @@ -1042,7 +1188,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1052,7 +1200,12 @@ }, { "data": { - "text/markdown": "```\nLooking up information on Google Search.\n\n```", + "text/markdown": [ + "```\n", + "Looking up information on Google Search.\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1062,7 +1215,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1072,7 +1227,9 @@ }, { "data": { - "text/markdown": "The", + "text/markdown": [ + "The" + ], "text/plain": [ "" ] @@ -1082,7 +1239,9 @@ }, { "data": { - "text/markdown": " largest earthquake in California during the week of December 5, 202", + "text/markdown": [ + " largest earthquake in California during the week of December 5, 202" + ], "text/plain": [ "" ] @@ -1092,7 +1251,9 @@ }, { "data": { - "text/markdown": "4, occurred on **December 5, 2024**, and", + "text/markdown": [ + "4, occurred on **December 5, 2024**, and" + ], "text/plain": [ "" ] @@ -1102,7 +1263,9 @@ }, { "data": { - "text/markdown": " it had a magnitude of **7.0**. This earthquake's epicenter was located approximately 60 miles offshore of Ferndale, California, in the Pacific", + "text/markdown": [ + " it had a magnitude of **7.0**. This earthquake's epicenter was located approximately 60 miles offshore of Ferndale, California, in the Pacific" + ], "text/plain": [ "" ] @@ -1112,7 +1275,13 @@ }, { "data": { - "text/markdown": " Ocean, west of the Mendocino Triple Junction.\n\nHere's a summary of what is known about this earthquake:\n\n* **Magnitude:** ", + "text/markdown": [ + " Ocean, west of the Mendocino Triple Junction.\n", + "\n", + "Here's a summary of what is known about this earthquake:\n", + "\n", + "* **Magnitude:** " + ], "text/plain": [ "" ] @@ -1122,7 +1291,12 @@ }, { "data": { - "text/markdown": "7.0\n* **Date:** December 5, 2024\n* **Time:** Approximately 10:44 AM PT\n* **Location:** About 60 miles offshore of Ferndale", + "text/markdown": [ + "7.0\n", + "* **Date:** December 5, 2024\n", + "* **Time:** Approximately 10:44 AM PT\n", + "* **Location:** About 60 miles offshore of Ferndale" + ], "text/plain": [ "" ] @@ -1132,7 +1306,10 @@ }, { "data": { - "text/markdown": ", California, and about 100 km southwest of Ferndale, in the Pacific Ocean.\n* **Tectonic Setting:** The earthquake occurred along the Mendocino fracture zone, a transform boundary between the Pacific and Juan de", + "text/markdown": [ + ", California, and about 100 km southwest of Ferndale, in the Pacific Ocean.\n", + "* **Tectonic Setting:** The earthquake occurred along the Mendocino fracture zone, a transform boundary between the Pacific and Juan de" + ], "text/plain": [ "" ] @@ -1142,7 +1319,10 @@ }, { "data": { - "text/markdown": " Fuca/Gorda plates, near the Mendocino triple junction where the Pacific, North America, and Juan de Fuca/Gorda plates meet.\n* **Impact:** The earthquake was felt across Northern California, with reports of shaking as far as Davis, northeast of San Francisco, and even a rolling", + "text/markdown": [ + " Fuca/Gorda plates, near the Mendocino triple junction where the Pacific, North America, and Juan de Fuca/Gorda plates meet.\n", + "* **Impact:** The earthquake was felt across Northern California, with reports of shaking as far as Davis, northeast of San Francisco, and even a rolling" + ], "text/plain": [ "" ] @@ -1152,7 +1332,12 @@ }, { "data": { - "text/markdown": " motion in San Francisco.\n* **Tsunami Warning:** A tsunami warning was issued for coastal areas from Davenport, California to 10 miles south of Florence, Oregon, but it was canceled shortly before 11 AM PT.\n\nThis earthquake was the strongest in the region since at least 200", + "text/markdown": [ + " motion in San Francisco.\n", + "* **Tsunami Warning:** A tsunami warning was issued for coastal areas from Davenport, California to 10 miles south of Florence, Oregon, but it was canceled shortly before 11 AM PT.\n", + "\n", + "This earthquake was the strongest in the region since at least 200" + ], "text/plain": [ "" ] @@ -1162,7 +1347,9 @@ }, { "data": { - "text/markdown": "5, when a magnitude 7.2 earthquake occurred. The area near the Mendocino triple junction is known to be seismically active, with five of the eleven magnitude 7 and larger earthquakes in California since 1900 occurring in this area.\n", + "text/markdown": [ + "5, when a magnitude 7.2 earthquake occurred. The area near the Mendocino triple junction is known to be seismically active, with five of the eleven magnitude 7 and larger earthquakes in California since 1900 occurring in this area.\n" + ], "text/plain": [ "" ] @@ -1208,7 +1395,16 @@ "outputs": [ { "data": { - "text/markdown": " Hey, I need you to do three things for me.\n\n 1. Then compute the largest prime plaindrome under 100000.\n 2. Then use google search to lookup unformation about the largest earthquake in california the week of Dec 5 2024?\n 3. Turn on the lights\n\n Thanks!\n ", + "text/markdown": [ + " Hey, I need you to do three things for me.\n", + "\n", + " 1. Then compute the largest prime plaindrome under 100000.\n", + " 2. Then use google search to lookup unformation about the largest earthquake in california the week of Dec 5 2024?\n", + " 3. Turn on the lights\n", + "\n", + " Thanks!\n", + " " + ], "text/plain": [ "" ] @@ -1218,7 +1414,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1228,7 +1426,9 @@ }, { "data": { - "text/markdown": "Okay", + "text/markdown": [ + "Okay" + ], "text/plain": [ "" ] @@ -1238,7 +1438,9 @@ }, { "data": { - "text/markdown": ", I will perform those tasks for you. First, let's find the", + "text/markdown": [ + ", I will perform those tasks for you. First, let's find the" + ], "text/plain": [ "" ] @@ -1248,7 +1450,9 @@ }, { "data": { - "text/markdown": " largest prime palindrome under 100000.\n", + "text/markdown": [ + " largest prime palindrome under 100000.\n" + ], "text/plain": [ "" ] @@ -1258,7 +1462,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1268,7 +1474,36 @@ }, { "data": { - "text/markdown": "``` python\ndef is_palindrome(n):\n return str(n) == str(n)[::-1]\n\ndef is_prime(n):\n if n <= 1:\n return False\n if n <= 3:\n return True\n if n % 2 == 0 or n % 3 == 0:\n return False\n i = 5\n while i * i <= n:\n if n % i == 0 or n % (i + 2) == 0:\n return False\n i += 6\n return True\n\nlargest_palindrome_prime = 0\nfor i in range(99999, 1, -1):\n if is_palindrome(i) and is_prime(i):\n largest_palindrome_prime = i\n break\n\nprint(largest_palindrome_prime)\n\n\n```", + "text/markdown": [ + "``` python\n", + "def is_palindrome(n):\n", + " return str(n) == str(n)[::-1]\n", + "\n", + "def is_prime(n):\n", + " if n <= 1:\n", + " return False\n", + " if n <= 3:\n", + " return True\n", + " if n % 2 == 0 or n % 3 == 0:\n", + " return False\n", + " i = 5\n", + " while i * i <= n:\n", + " if n % i == 0 or n % (i + 2) == 0:\n", + " return False\n", + " i += 6\n", + " return True\n", + "\n", + "largest_palindrome_prime = 0\n", + "for i in range(99999, 1, -1):\n", + " if is_palindrome(i) and is_prime(i):\n", + " largest_palindrome_prime = i\n", + " break\n", + "\n", + "print(largest_palindrome_prime)\n", + "\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1278,7 +1513,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1288,7 +1525,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1298,7 +1537,12 @@ }, { "data": { - "text/markdown": "```\n98689\n\n```", + "text/markdown": [ + "```\n", + "98689\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1308,7 +1552,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1318,7 +1564,9 @@ }, { "data": { - "text/markdown": "Okay", + "text/markdown": [ + "Okay" + ], "text/plain": [ "" ] @@ -1328,7 +1576,9 @@ }, { "data": { - "text/markdown": ", the largest prime palindrome under 100000 is 9", + "text/markdown": [ + ", the largest prime palindrome under 100000 is 9" + ], "text/plain": [ "" ] @@ -1338,7 +1588,11 @@ }, { "data": { - "text/markdown": "8689.\n\nNext, I will search for the largest earthquake in", + "text/markdown": [ + "8689.\n", + "\n", + "Next, I will search for the largest earthquake in" + ], "text/plain": [ "" ] @@ -1348,7 +1602,9 @@ }, { "data": { - "text/markdown": " California the week of December 5, 2024.\n", + "text/markdown": [ + " California the week of December 5, 2024.\n" + ], "text/plain": [ "" ] @@ -1358,7 +1614,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1368,7 +1626,12 @@ }, { "data": { - "text/markdown": "``` python\nconcise_search(\"largest earthquake california week of December 5 2024\", max_num_results=3)\n\n```", + "text/markdown": [ + "``` python\n", + "concise_search(\"largest earthquake california week of December 5 2024\", max_num_results=3)\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1378,7 +1641,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1388,7 +1653,9 @@ }, { "data": { - "text/markdown": "\n", + "text/markdown": [ + "\n" + ], "text/plain": [ "" ] @@ -1398,7 +1665,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1408,7 +1677,12 @@ }, { "data": { - "text/markdown": "```\nLooking up information on Google Search.\n\n```", + "text/markdown": [ + "```\n", + "Looking up information on Google Search.\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1418,7 +1692,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1428,7 +1704,9 @@ }, { "data": { - "text/markdown": "Based", + "text/markdown": [ + "Based" + ], "text/plain": [ "" ] @@ -1438,7 +1716,9 @@ }, { "data": { - "text/markdown": " on the search results, the largest earthquake in California the week of December 5", + "text/markdown": [ + " on the search results, the largest earthquake in California the week of December 5" + ], "text/plain": [ "" ] @@ -1448,7 +1728,9 @@ }, { "data": { - "text/markdown": ", 2024 was a magnitude 7.0 earthquake off the", + "text/markdown": [ + ", 2024 was a magnitude 7.0 earthquake off the" + ], "text/plain": [ "" ] @@ -1458,7 +1740,11 @@ }, { "data": { - "text/markdown": " coast of Cape Mendocino. It occurred on December 5, 2024.\n\nFinally, I will turn on the lights.\n", + "text/markdown": [ + " coast of Cape Mendocino. It occurred on December 5, 2024.\n", + "\n", + "Finally, I will turn on the lights.\n" + ], "text/plain": [ "" ] @@ -1468,7 +1754,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ] @@ -1478,7 +1766,12 @@ }, { "data": { - "text/markdown": "``` python\ndefault_api.turn_on_the_lights()\n\n```", + "text/markdown": [ + "``` python\n", + "default_api.turn_on_the_lights()\n", + "\n", + "```" + ], "text/plain": [ "" ] @@ -1488,7 +1781,9 @@ }, { "data": { - "text/markdown": "-------------------------------", + "text/markdown": [ + "-------------------------------" + ], "text/plain": [ "" ]