{"id":13738440,"url":"https://github.com/chrieke/streamlit-keplergl","last_synced_at":"2025-08-21T04:30:55.349Z","repository":{"id":37488815,"uuid":"378002570","full_name":"chrieke/streamlit-keplergl","owner":"chrieke","description":"🗾 Streamlit Component for rendering kepler.gl maps","archived":false,"fork":false,"pushed_at":"2022-12-23T21:46:05.000Z","size":734,"stargazers_count":66,"open_issues_count":2,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-16T15:51:27.634Z","etag":null,"topics":["geospatial","kepler","keplergl","streamlit","streamlit-components"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrieke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-18T01:31:26.000Z","updated_at":"2024-11-13T22:26:08.000Z","dependencies_parsed_at":"2023-01-30T19:45:45.109Z","dependency_job_id":null,"html_url":"https://github.com/chrieke/streamlit-keplergl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrieke%2Fstreamlit-keplergl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrieke%2Fstreamlit-keplergl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrieke%2Fstreamlit-keplergl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrieke%2Fstreamlit-keplergl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrieke","download_url":"https://codeload.github.com/chrieke/streamlit-keplergl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230487844,"owners_count":18233865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geospatial","kepler","keplergl","streamlit","streamlit-components"],"created_at":"2024-08-03T03:02:22.521Z","updated_at":"2024-12-19T19:08:40.183Z","avatar_url":"https://github.com/chrieke.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# streamlit-keplergl\n\n[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/chrieke/streamlit-keplergl/main/examples/streamlit-keplergl-example.py)\n[![PyPi](https://img.shields.io/pypi/v/streamlit-keplergl)](https://pypi.org/project/streamlit-keplergl/)\n\n**🗾 Streamlit component for rendering [kepler.gl](https://docs.kepler.gl/docs/keplergl-jupyter#2-add-data) maps\nin a streamlit app.**\n\n---\n\n\u003ch3 align=\"center\"\u003e\n  🎈 \u003ca href=\"https://share.streamlit.io/chrieke/streamlit-keplergl/main/examples/streamlit-keplergl-example.py\"\u003eLive Demo\u003c/a\u003e 🎈\n\u003c/h3\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./examples/example-screenshot.png\" width=700\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\npip install streamlit-keplergl\n```\n\n## Usage\n\n```python\nimport streamlit as st\nfrom streamlit_keplergl import keplergl_static\nfrom keplergl import KeplerGl\n\nst.write(\"This is a kepler.gl map in streamlit\")\n\nmap_1 = KeplerGl()\nkeplergl_static(map_1)\n```\n\n**Use within a streamlit column etc:**\n```python\ncol1 = st.column(1)\nwith col1:\n  keplergl_static(map_1)\n```\n\n## Parameters\n- **fig**: `keplergl.KeplerGl` map figure.\n- **height**: Fixed pixel height of the map. Optional, might result in non-optimal layout on some devices. By\n  default the map height is determined by the keplergl figure height.\n- **width**: Fixed pixel width of the map. Optional, by default the map width adjusts to the streamlit layout.\n- **center_map**: Centers the map on the current map data, default False.\n- **read_only**: Disables the side panel for map customization, default False.\n\n\n## More infos\n\n**Set map location:**  \nThe initial map location is not configured via `keplergl_static` but via the KeplerGL configuration, see\n[example](https://github.com/chrieke/streamlit-keplergl/blob/main/examples/streamlit-keplergl-example-with-config.py). \nBut if your map contains data, you can use the `center_map` parameter, see \n[example](https://github.com/chrieke/streamlit-keplergl/blob/main/examples/streamlit-keplergl-example-with-data.py).\n\n**Static component:**  \nThis is a static Streamlit component, thus information from browser interaction can not be passed back from\nKeplerGL to Python.\n\nAlso see the [kepler.gl](https://docs.kepler.gl/docs/keplergl-jupyter#2-add-data) documentation\nfor general info on usage of kepler.gl in Python.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrieke%2Fstreamlit-keplergl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrieke%2Fstreamlit-keplergl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrieke%2Fstreamlit-keplergl/lists"}