Hello Streamlit community!
I’m experiencing an issue with st.pydeck_chart
where the description
specified in the pdk.Deck
object is not being displayed. I’m hoping someone can help me understand what’s going on.
Environment
- Streamlit version: 1.39.0 (latest)
- PyDeck version: 0.9.1 (latest)
- Running the app locally
Problem Description
When I create a pdk.Deck
object with a description
parameter and pass it to st.pydeck_chart
, the description doesn’t appear in the rendered chart. This is happening when I run my Streamlit app locally.
Sample Code
Here’s a minimal example that demonstrates the issue:
import streamlit as st
import pydeck as pdk
# Create a simple deck
deck = pdk.Deck(
map_style=None,
initial_view_state=pdk.ViewState(
latitude=37.76,
longitude=-122.4,
zoom=11,
pitch=50,
),
layers=[],
description="This description should appear, but it doesn't."
)
# Display the deck
st.pydeck_chart(deck)
# deck.show() # this version shows the description text on top left.
Questions
- Is this issue already known in the community?
- Are there any workarounds or solutions available?
I appreciate any insights or help you can provide. If you need any additional information about my local setup, please let me know. Thank you in advance!