import ibis from ibis import _ import os # + import pydeck as pdk # Set the viewport location view_state = pdk.ViewState( longitude=-1.415, latitude=52.2323, zoom=5, min_zoom=1, max_zoom=12, pitch=40.5, bearing=-27.36) def map(data): layer = pdk.Layer( "H3HexagonLayer", data, pickable=True, stroked=True, filled=True, extruded=True, elevation_range=[0,200], elevation_scale=2000, get_elevation='color', get_hexagon="h3z7", get_fill_color="[color, 30, color]", get_line_color=[255, 255, 255], line_width_min_pixels=2, ) # Render r = pdk.Deck(layers=[layer], initial_view_state=view_state) return r.to_html("hex_layer.html") map("https://huggingface.co/spaces/cboettig/hf-streamlit-demo/resolve/main/test.csv")