{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "82b7c886-1bde-4c5f-90c6-5555a83f8cf1", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).\n" ] } ], "source": [ "from lets_plot import *\n", "from lets_plot.geo_data import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "a380f598-83e9-4fac-98ca-478b88cb8a96", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "7ca1b790-936a-4206-a339-118d8ef01bfd", "metadata": {}, "outputs": [], "source": [ "state_gcoder = geocode_states('us-48').inc_res()\n", "state_centroids = state_gcoder.get_centroids()" ] }, { "cell_type": "code", "execution_count": 4, "id": "498b44b0", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "