From 9390144b4f12450c0a8f57e0b7d59b5d99badc94 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Tue, 3 Aug 2021 22:42:16 -0400 Subject: [PATCH] Fixed docs build error #91 --- docs/notebooks/22_time_slider.ipynb | 75 +++++++++++++------------ examples/notebooks/22_time_slider.ipynb | 75 +++++++++++++------------ 2 files changed, 76 insertions(+), 74 deletions(-) diff --git a/docs/notebooks/22_time_slider.ipynb b/docs/notebooks/22_time_slider.ipynb index 0a60a34692..00c0b52568 100644 --- a/docs/notebooks/22_time_slider.ipynb +++ b/docs/notebooks/22_time_slider.ipynb @@ -2,122 +2,123 @@ "cells": [ { "cell_type": "markdown", - "metadata": {}, "source": [ "[![image](https://binder.pangeo.io/badge_logo.svg)](https://gishub.org/leafmap-pangeo)\n", "\n", "**Using time slider for visualizing timeseries images**\n", "\n", "Uncomment the following line to install [leafmap](https://leafmap.org) if needed." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "# !pip install leafmap" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "This notebook requires the ipyleaflet plotting backend. Folium is not supported." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "from leafmap import leafmap" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "First, you need to sign up a Planet account and get an API key. See https://developers.planet.com/quickstart/apis.\n", "Uncomment the following line to pass in your API key." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "# os.environ[\"PLANET_API_KEY\"] = \"12345\"" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "![](https://i.imgur.com/ipVJ4cb.gif)" - ] + ], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "Specify the map center and zoom level. " - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], "source": [ "m = leafmap.Map(center=[38.2659, -103.2447], zoom=13)\n", "m" - ] + ], + "outputs": [], + "metadata": { + "scrolled": false + } }, { "cell_type": "markdown", - "metadata": {}, "source": [ "Use the time slider to visualize Planet quarterly mosaic." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "m = leafmap.Map()\n", "layers_dict = leafmap.planet_quarterly_tiles()\n", "m.add_time_slider(layers_dict, time_interval=1)\n", "m" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "Use the time slider to visualize basemaps." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], "source": [ "m = leafmap.Map()\n", + "m.clear_layers()\n", "layers_dict = leafmap.basemap_xyz_tiles()\n", "m.add_time_slider(layers_dict, time_interval=1)\n", "m" - ] + ], + "outputs": [], + "metadata": { + "scrolled": false + } } ], "metadata": { @@ -184,4 +185,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file diff --git a/examples/notebooks/22_time_slider.ipynb b/examples/notebooks/22_time_slider.ipynb index 0a60a34692..00c0b52568 100644 --- a/examples/notebooks/22_time_slider.ipynb +++ b/examples/notebooks/22_time_slider.ipynb @@ -2,122 +2,123 @@ "cells": [ { "cell_type": "markdown", - "metadata": {}, "source": [ "[![image](https://binder.pangeo.io/badge_logo.svg)](https://gishub.org/leafmap-pangeo)\n", "\n", "**Using time slider for visualizing timeseries images**\n", "\n", "Uncomment the following line to install [leafmap](https://leafmap.org) if needed." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "# !pip install leafmap" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "This notebook requires the ipyleaflet plotting backend. Folium is not supported." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "from leafmap import leafmap" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "First, you need to sign up a Planet account and get an API key. See https://developers.planet.com/quickstart/apis.\n", "Uncomment the following line to pass in your API key." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "# os.environ[\"PLANET_API_KEY\"] = \"12345\"" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "![](https://i.imgur.com/ipVJ4cb.gif)" - ] + ], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "Specify the map center and zoom level. " - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], "source": [ "m = leafmap.Map(center=[38.2659, -103.2447], zoom=13)\n", "m" - ] + ], + "outputs": [], + "metadata": { + "scrolled": false + } }, { "cell_type": "markdown", - "metadata": {}, "source": [ "Use the time slider to visualize Planet quarterly mosaic." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "m = leafmap.Map()\n", "layers_dict = leafmap.planet_quarterly_tiles()\n", "m.add_time_slider(layers_dict, time_interval=1)\n", "m" - ] + ], + "outputs": [], + "metadata": {} }, { "cell_type": "markdown", - "metadata": {}, "source": [ "Use the time slider to visualize basemaps." - ] + ], + "metadata": {} }, { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], "source": [ "m = leafmap.Map()\n", + "m.clear_layers()\n", "layers_dict = leafmap.basemap_xyz_tiles()\n", "m.add_time_slider(layers_dict, time_interval=1)\n", "m" - ] + ], + "outputs": [], + "metadata": { + "scrolled": false + } } ], "metadata": { @@ -184,4 +185,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file