streamlit-keplergl
🗾 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.KeplerGlmap 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_keplergl-0.4.0.tar.gz.
File metadata
- Download URL: streamlit_keplergl-0.4.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9e313d09ce71fea33dbd68a91459939b05b7674784b059394bb4cf8bb08edd2
|
|
| MD5 |
bf4743883adaa30e4cd3ef21b840c82d
|
|
| BLAKE2b-256 |
ee30bc296be1e2988d2e8c85838b67eea2d36785903ec560a3944236df8c4e37
|
File details
Details for the file streamlit_keplergl-0.4.0-py3-none-any.whl.
File metadata
- Download URL: streamlit_keplergl-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1c29b1ea3c447aab23d1d0301a4fa72048936a651fe7eb71f7c8342ba5de99
|
|
| MD5 |
a82eb60f000cd361c44a229639dbcab3
|
|
| BLAKE2b-256 |
bc161762e73c737fc76cabe91fead2e51c91ebbfe812921a6709060e7a397910
|