Skip to main content

streamlit-keplergl

Open in Streamlit PyPi

🗾 Streamlit component for rendering kepler.gl maps in a streamlit app.


🎈 Live Demo 🎈


Installation

pip install streamlit-keplergl

Usage

import streamlit as st
from streamlit_keplergl import keplergl_static
from keplergl import KeplerGl

st.write("This is a kepler.gl map in streamlit")

map_1 = KeplerGl()
keplergl_static(map_1)

Use within a streamlit column etc:

col1, col2 = st.columns(2)
with col1:
    keplergl_static(map_1)

Parameters

  • fig: keplergl.KeplerGl map figure.
  • height: Fixed pixel height of the map. Optional, might result in non-optimal layout on some devices. By default the map height is determined by the keplergl figure height.
  • width: Fixed pixel width of the map. Optional, by default the map width adjusts to the streamlit layout.
  • center_map: Centers the map on the current map data, default False.
  • read_only: Disables the side panel for map customization, default False.

More infos

Set map location:
The initial map location is not configured via keplergl_static but via the KeplerGL configuration, see example. But if your map contains data, you can use the center_map parameter, see example.

Static component:
This is a static Streamlit component, thus information from browser interaction can not be passed back from KeplerGL to Python.

Also see the kepler.gl documentation for general info on usage of kepler.gl in Python.

Release files for streamlit-keplergl 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-keplergl 0.4.0
File Size Uploaded
streamlit_keplergl-0.4.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-keplergl 0.4.0
File Interpreter ABI Platform
streamlit_keplergl-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / streamlit_keplergl-0.4.0.tar.gz

Download URL streamlit_keplergl-0.4.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d9e313d09ce71fea33dbd68a91459939b05b7674784b059394bb4cf8bb08edd2
BLAKE2b-256 checksum
How to use checksums
ee30bc296be1e2988d2e8c85838b67eea2d36785903ec560a3944236df8c4e37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / streamlit_keplergl-0.4.0-py3-none-any.whl

Download URL streamlit_keplergl-0.4.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa1c29b1ea3c447aab23d1d0301a4fa72048936a651fe7eb71f7c8342ba5de99
BLAKE2b-256 checksum
How to use checksums
bc161762e73c737fc76cabe91fead2e51c91ebbfe812921a6709060e7a397910
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page