Streamlit Component for rendering kepler.gl maps
Project description
streamlit-keplergl
🗾 Streamlit Component for rendering kepler.gl maps in a streamlit app.
🎈 Live Demo 🎈
Installation
pip install streamlit-keplergl
How to use it
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)
Parameters:
- fig:
keplergl.KeplerGlmap figure. - height: Fixed pixel height of the map, optional. By default determined by the height setting of the KeplerGl. keplergl figure object. Setting width and height explcitly might result in non optimal layout on other devices.
- width: Fixed pixel width of the map, optional. By default the adjusts to the streamlit layout option, e.g. automatically adjusted to streamlit column or container width.
- center_map: The bound of the map will be centered on the current map data, default False.
- read_only: Hide side panel to disable map customization, default False.
To use the map widget within a streamlit column or other object:
col1 = st.column(1)
with col1:
keplergl_static(map_1)
Also see the kepler.gl documentation for general info on usage of kepler.gl in Python.
Adjust initial map location
To adjust the default initial map location (San Franciso), use the KeplerGL object configuration, see here.
Project details
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.3.0.tar.gz.
File metadata
- Download URL: streamlit-keplergl-0.3.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6571aa6aa289b1def438c8ee87c0dac4c5b7bb9a37600897ea0a2ade8ebb944e
|
|
| MD5 |
9eaa0d571091fbd4da104edc91e94f6d
|
|
| BLAKE2b-256 |
9e85e02af23670b5c0cde8064c598b2b988eb8bb7b93feb2279a1fe35d10fab2
|
File details
Details for the file streamlit_keplergl-0.3.0-py3-none-any.whl.
File metadata
- Download URL: streamlit_keplergl-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eadf7674013384ee958229a38bc0c3ed4813c186d8360dfe0347ef5dfd32bd3
|
|
| MD5 |
f12509e7721284dee3163d8b1601adcf
|
|
| BLAKE2b-256 |
1e9dc6b3325f64fbec8acd215459db2c7ba5a4a26a69b5e13e035463a3b33b50
|