diff --git a/docs/notebooks/destination_weather.ipynb b/docs/notebooks/destination_weather.ipynb index 18aaa48..2211051 100644 --- a/docs/notebooks/destination_weather.ipynb +++ b/docs/notebooks/destination_weather.ipynb @@ -5,7 +5,8 @@ "execution_count": null, "source": [ "import os\n", - "os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here." + "\n", + "os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here." ], "outputs": [], "metadata": {} @@ -24,10 +25,7 @@ "LS_API_KEY = os.environ.get(\"LS_API_KEY\")\n", "ls = LS(api_key=LS_API_KEY)\n", "\n", - "result1 = ls.get_dest_weather(\n", - " at=[19.1503, 72.8530],\n", - " products=[DEST_WEATHER_PRODUCT.observation]\n", - ")\n", + "result1 = ls.get_dest_weather(at=[19.1503, 72.8530], products=[DEST_WEATHER_PRODUCT.observation])\n", "\n", "results = []\n", "m = Map(\n", @@ -37,12 +35,12 @@ ")\n", "for observation in result1.places[0][\"observations\"]:\n", " results.append(\n", - " dict(\n", - " lat=observation[\"place\"][\"location\"][\"lat\"],\n", - " lng=observation[\"place\"][\"location\"][\"lng\"],\n", - " data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n", - " )\n", + " dict(\n", + " lat=observation[\"place\"][\"location\"][\"lat\"],\n", + " lng=observation[\"place\"][\"location\"][\"lng\"],\n", + " data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n", " )\n", + " )\n", "\n", "provider = MarkerCluster(data_points=results, show_bubble=True)\n", "layer = ObjectLayer(provider=provider)\n", @@ -60,10 +58,10 @@ "from datetime import datetime\n", "\n", "result2 = ls.get_weather_alerts(\n", - " geometry=Point(coordinates=[15.256, 23.456]),\n", - " start_time=datetime.now(),\n", - " width=3000,\n", - " )\n", + " geometry=Point(coordinates=[15.256, 23.456]),\n", + " start_time=datetime.now(),\n", + " width=3000,\n", + ")\n", "\n", "print(result2)" ],