79154576

Date: 2024-11-04 07:51:38
Score: 1.5
Natty:
Report link

Set explicitly width to None.

st_folium(
    folium.Map(
        location=[-20, 130], 
        zoom_start=4, 
        control_scale=True), 
    width=None, 
    height=400)

This will work as expected.

As a side note, you can also use use_container_width=True instead of setting the width.

Wide mode Not wide

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: artygo