Skip to content

Instantly share code, notes, and snippets.

@weiji14
Last active August 28, 2021 00:01
Show Gist options
  • Save weiji14/f67232a393d7451a49a715aa9f40419c to your computer and use it in GitHub Desktop.
Save weiji14/f67232a393d7451a49a715aa9f40419c to your computer and use it in GitHub Desktop.
Debugging https://github.com/holoviz/geoviews/issues/462 with geoviews 1.9.1
name: geoenv
channels:
- conda-forge
dependencies:
- geoviews-core=1.9.1
- python=3.8
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import geoviews as gv\n",
"import cartopy.crs as ccrs\n",
"\n",
"from geoviews import annotate\n",
"\n",
"gv.extension('bokeh')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"tiles = gv.tile_sources.Wikipedia()\n",
"tiles"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"rectangles = gv.Rectangles([(0, 0, 10, 10)])\n",
"\n",
"box_annotate = annotate.instance()\n",
"\n",
"annotated = box_annotate(rectangles, annotations=['Label'], name='Rectangles')\n",
"\n",
"annotate.compose(tiles, annotated)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
@weiji14
Copy link
Author

weiji14 commented Aug 27, 2021

Binder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment