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.

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.4.0.tar.gz (4.7 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.4.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for streamlit_keplergl-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d9e313d09ce71fea33dbd68a91459939b05b7674784b059394bb4cf8bb08edd2
MD5 bf4743883adaa30e4cd3ef21b840c82d
BLAKE2b-256 ee30bc296be1e2988d2e8c85838b67eea2d36785903ec560a3944236df8c4e37

See more details on using hashes here.

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

Hashes for streamlit_keplergl-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa1c29b1ea3c447aab23d1d0301a4fa72048936a651fe7eb71f7c8342ba5de99
MD5 a82eb60f000cd361c44a229639dbcab3
BLAKE2b-256 bc161762e73c737fc76cabe91fead2e51c91ebbfe812921a6709060e7a397910

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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