diff --git a/tests/Maps.ipynb b/tests/Maps.ipynb index 96ca20bb9..085c65f85 100644 --- a/tests/Maps.ipynb +++ b/tests/Maps.ipynb @@ -9,12 +9,8 @@ "name": "stderr", "output_type": "stream", "text": [ - "\n", - "Bad key \"text.kerning_factor\" on line 4 in\n", - "/Users/ahemani/anaconda3/envs/datascience/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.\n", - "You probably need to get an updated matplotlibrc file from\n", - "https://github.com/matplotlib/matplotlib/blob/v3.1.3/matplotlibrc.template\n", - "or from the matplotlib source distribution\n" + "/home/daw/ds/datascience/datascience/maps.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\n", + " import pkg_resources\n" ] } ], @@ -37,10 +33,110 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 2, @@ -55,17 +151,115 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 3, @@ -85,7 +279,107 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ "" @@ -97,21 +391,127 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 4, "metadata": {}, - "output_type": "execute_result" + "output_type": "display_data" } ], "source": [ "# Different tile styles\n", - "Map(tiles='Stamen Toner').show()\n", - "Map(tiles='Stamen Terrain')" + "Map(\n", + " tiles='Stamen Toner',\n", + " attr='Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors'\n", + ").show()\n", + "\n", + "Map(\n", + " tiles='Stadia.StamenTerrain',\n", + " attr='Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors'\n", + ").show()" ] }, { @@ -129,10 +529,148 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 5, @@ -147,14 +685,150 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ "" @@ -166,7 +840,145 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ "" @@ -178,10 +990,154 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 6, @@ -204,10 +1160,155 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 7, @@ -228,10 +1329,262 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 8, @@ -266,10 +1619,277 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 9, @@ -292,10 +1912,262 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 10, @@ -310,17 +2182,269 @@ { "cell_type": "code", "execution_count": 11, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 11, @@ -342,9 +2466,7 @@ { "cell_type": "code", "execution_count": 12, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -381,10 +2503,265 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 12, @@ -409,14 +2786,208 @@ "name": "stderr", "output_type": "stream", "text": [ - "/Users/ahemani/Development/data8/datascience/datascience/maps.py:800: FutureWarning: The 'radius' argument is deprecated. Please use 'area' instead.\n", + "/home/daw/ds/datascience/datascience/maps.py:798: FutureWarning: The 'radius' argument is deprecated. Please use 'area' instead.\n", " warnings.warn(\"The 'radius' argument is deprecated. Please use 'area' instead.\", FutureWarning)\n" ] }, { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ "" @@ -428,10 +2999,204 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 13, @@ -451,9 +3216,7 @@ { "cell_type": "code", "execution_count": 14, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -490,10 +3253,205 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 14, @@ -519,17 +3477,1665 @@ { "cell_type": "code", "execution_count": 15, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 15, @@ -550,10 +5156,172 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 16, @@ -568,17 +5336,5509 @@ { "cell_type": "code", "execution_count": 17, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 17, @@ -690,10 +10950,213 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 20, @@ -728,13 +11191,406 @@ " \n", " \n", " \n", - " AL
\n", + " AL
Make this Notebook Trusted to load map: File -> Trust Notebook
\n", " \n", " \n", - " AK
\n", + " AK
Make this Notebook Trusted to load map: File -> Trust Notebook
\n", " \n", " \n", - " AZ
\n", + " AZ
Make this Notebook Trusted to load map: File -> Trust Notebook
\n", " \n", " \n", "\n", @@ -819,10 +11675,609 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 22, @@ -895,13 +12350,354 @@ "metadata": {}, "output_type": "display_data" }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/home/daw/ds/datascience/datascience/maps.py:798: FutureWarning: The 'radius' argument is deprecated. Please use 'area' instead.\n", + " warnings.warn(\"The 'radius' argument is deprecated. Please use 'area' instead.\", FutureWarning)\n" + ] + }, { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 23, @@ -973,10 +12769,343 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 24, @@ -1056,10 +13185,3925 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 25, @@ -1135,10 +17179,4076 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 26, @@ -1168,10 +21278,230 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 27, @@ -1197,10 +21527,310 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 28, @@ -1226,10 +21856,310 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 29, @@ -1251,10 +22181,276 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 30, @@ -1290,10 +22486,261 @@ { "data": { "text/html": [ - "
" + "
Make this Notebook Trusted to load map: File -> Trust Notebook
" ], "text/plain": [ - "" + "" ] }, "execution_count": 31, @@ -1531,7 +22978,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -1545,7 +22992,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.6" + "version": "3.14.2" }, "metadata": { "interpreter": { @@ -1554,5 +23001,5 @@ } }, "nbformat": 4, - "nbformat_minor": 1 + "nbformat_minor": 4 }