pip install
and running Notebook 5.3 and above, you don't need to run the following> 10.15.0
KeplerGl()
height
optional default: 400
data
dict
optionalconfig
dict
optionaldataId
in the layer and filter settings should match the name
of the dataset they are created undershow_docs
bool
optionalshow_docs=False
.map_1
it will be used throughout the code example in this doc..add_data()
name
required Name of the data entry.name
of the dataset will be the saved to the dataId
property of each layer
, filter
and interactionConfig
in the config.add_data
multiple times to add multiple datasets to kepler.gl.data
Dict
CSV
CSV
string by reading from a CSV file.GeoJSON
Geometry
), a spatially bounded entity (a Feature), or a list of Features (a FeatureCollection
). GeoJSON supports the following geometry types: Point
, LineString
, Polygon
, MultiPoint
, MultiLineString
, MultiPolygon
, and GeometryCollection
. Features in GeoJSON contain a Geometry object and additional properties, and a FeatureCollection contains a list of Features.GeometryCollection
. You can pass in either a single Feature
or a FeatureCollection
. You can format the GeoJSON
either as a string
or a dict
typeDataFrame
GeoDataFrame
geometry
column from shapely to wkt string and re-projects geometries to latitude and longitude (EPSG:4326) if the active geometry
column is in a different projection.WKT
Widgets > Save Notebook Widget State
, before shutting down the kernel..config
{}
icon.data
and config
in the map has to be able to match each other. The name
of the dataset is assigned to:dataId
of layer.config
,dataId
of filter
interactionConfig.tooltip.fieldToShow
.Widget > Save Notebook Widget State
before shut downing the kernel to make sure it will be reloaded..save_to_html()
data
: optional A data dictionary {"name": data}, if not provided, will use current map dataconfig
: optional map config dictionary, if not provided, will use current map configfile_name
: optional the html file name, default is keplergl_map.html
read_only
: optional if read_only
is True
, hide side panel to disable map customization._repr_html_()
data
: optional A data dictionary {"name": data}, if not provided, will use current map dataconfig
: optional map config dictionary, if not provided, will use current map configread_only
: optional if read_only
is True
, hide side panel to disable map customization@jupyter-widgets/jupyterlab-manager
. Depends on your JupyterLab version. You might need to install the specific version of jupyterlab-manager. with jupyter labextension install @jupyter-widgets/[email protected]
. When use it in Jupyter lab, keplergl is only supported in JupyterLab > 1.0 and Python 3.jupyter labextension install keplergl-jupyter --debug
and copy console output before creating an issue.install
and uninstall
several times. You should run.jupyter labextension list
You should see below. (Version may vary)