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

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)

By default, the width of the map is determined by the streamlit layout (automatically adjusted when used inside a streamlit column or container). The height is determined by the KeplerGL setting. This can be fixed to a specific pixel size via the width and height parameters of keplergl_static, however the size might then not be optimal when viewed on a different device or mobile.

keplergl_static(map_1, height=400, width=500)

To use it within a streamlit column or other object:

col1 = st.column(1)
with col1:
   keplergl_static(map_1)

Adjust initial map location

To adjust the default initial map location (San Franciso), use the KeplerGL object configuration, see here.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-keplergl-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_keplergl-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-keplergl-0.2.0.tar.gz.

File metadata

  • Download URL: streamlit-keplergl-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.9

File hashes

Hashes for streamlit-keplergl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 84bb09c44328890c55932ef66d50d706dcfbe9560cbb1eb21fd4d9c7023778dc
MD5 8c21632bfcbfd188969070d78000c089
BLAKE2b-256 8c4490e9e9186b7b23b6a494cdf0ff22bcc8efad770e16fdc24078a88a5fd937

See more details on using hashes here.

File details

Details for the file streamlit_keplergl-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: streamlit_keplergl-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.9

File hashes

Hashes for streamlit_keplergl-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03fa8bb0c1bd9793ac31d3317279154c58ee9ec35d6f5698885165d254fcc019
MD5 7dc62b8f1c1ef8fa99bceecf5a7e8337
BLAKE2b-256 d4c36bd3a49e0ed788f2dc1980907418843fd6da3144a5bec233030f43d01d82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page