streamlit-nightly 1.46.2.dev20250713__py3-none-any.whl → 1.46.2.dev20250714__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/config.py +87 -57
- streamlit/elements/code.py +5 -1
- streamlit/elements/deck_gl_json_chart.py +8 -0
- streamlit/elements/form.py +5 -1
- streamlit/elements/html.py +11 -4
- streamlit/elements/lib/column_types.py +22 -18
- streamlit/elements/metric.py +8 -5
- streamlit/elements/plotly_chart.py +53 -6
- streamlit/elements/vega_charts.py +10 -0
- streamlit/elements/widgets/button_group.py +61 -36
- streamlit/elements/widgets/multiselect.py +4 -4
- streamlit/elements/widgets/selectbox.py +5 -5
- streamlit/elements/widgets/text_widgets.py +18 -4
- streamlit/runtime/context.py +8 -0
- {streamlit_nightly-1.46.2.dev20250713.dist-info → streamlit_nightly-1.46.2.dev20250714.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.46.2.dev20250713.dist-info → streamlit_nightly-1.46.2.dev20250714.dist-info}/RECORD +20 -20
- {streamlit_nightly-1.46.2.dev20250713.data → streamlit_nightly-1.46.2.dev20250714.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.46.2.dev20250713.dist-info → streamlit_nightly-1.46.2.dev20250714.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.46.2.dev20250713.dist-info → streamlit_nightly-1.46.2.dev20250714.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.46.2.dev20250713.dist-info → streamlit_nightly-1.46.2.dev20250714.dist-info}/top_level.txt +0 -0
streamlit/config.py
CHANGED
@@ -710,7 +710,7 @@ _create_option(
|
|
710
710
|
|
711
711
|
Allowed values:
|
712
712
|
- "auto" : Streamlit will attempt to use the watchdog module, and
|
713
|
-
falls back to polling if watchdog
|
713
|
+
falls back to polling if watchdog isn't available.
|
714
714
|
- "watchdog" : Force Streamlit to use the watchdog module.
|
715
715
|
- "poll" : Force Streamlit to always use polling.
|
716
716
|
- "none" : Streamlit will not watch files.
|
@@ -750,8 +750,8 @@ def _server_headless() -> bool:
|
|
750
750
|
_create_option(
|
751
751
|
"server.showEmailPrompt",
|
752
752
|
description="""
|
753
|
-
Whether to show a terminal prompt for the user
|
754
|
-
|
753
|
+
Whether to show a terminal prompt for the user's email address when
|
754
|
+
they run Streamlit (locally) for the first time. If you set
|
755
755
|
`server.headless=True`, Streamlit will not show this prompt.
|
756
756
|
""",
|
757
757
|
default_val=True,
|
@@ -1229,11 +1229,12 @@ _create_theme_options(
|
|
1229
1229
|
"baseFontSize",
|
1230
1230
|
categories=["theme"],
|
1231
1231
|
description="""
|
1232
|
-
|
1232
|
+
The root font size (in pixels) for the app.
|
1233
1233
|
|
1234
|
-
This determines the overall scale of text and UI elements.
|
1234
|
+
This determines the overall scale of text and UI elements. This is a
|
1235
|
+
positive integer.
|
1235
1236
|
|
1236
|
-
|
1237
|
+
If this isn't set, the font size will be 16px.
|
1237
1238
|
""",
|
1238
1239
|
type_=int,
|
1239
1240
|
)
|
@@ -1242,12 +1243,12 @@ _create_theme_options(
|
|
1242
1243
|
"baseFontWeight",
|
1243
1244
|
categories=["theme"],
|
1244
1245
|
description="""
|
1245
|
-
|
1246
|
+
The root font weight for the app.
|
1246
1247
|
|
1247
|
-
This determines the overall weight of text and UI elements.
|
1248
|
-
|
1248
|
+
This determines the overall weight of text and UI elements. This is an
|
1249
|
+
integer multiple of 100. Values can be between 100 and 600, inclusive.
|
1249
1250
|
|
1250
|
-
|
1251
|
+
If this isn't set, the font weight will be set to 400 (normal weight).
|
1251
1252
|
""",
|
1252
1253
|
type_=int,
|
1253
1254
|
)
|
@@ -1266,7 +1267,7 @@ _create_theme_options(
|
|
1266
1267
|
- A comma-separated list of these (as a single string) to specify
|
1267
1268
|
fallbacks
|
1268
1269
|
|
1269
|
-
If
|
1270
|
+
If this isn't set, Streamlit uses `theme.font` for headings.
|
1270
1271
|
""",
|
1271
1272
|
)
|
1272
1273
|
|
@@ -1274,24 +1275,31 @@ _create_theme_options(
|
|
1274
1275
|
"headingFontSizes",
|
1275
1276
|
categories=["theme", CustomThemeCategories.SIDEBAR],
|
1276
1277
|
description="""
|
1277
|
-
|
1278
|
+
One or more font sizes for h1-h6 headings.
|
1278
1279
|
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1280
|
+
If no sizes are set, Streamlit will use the default sizes for h1-h6
|
1281
|
+
headings. Heading font sizes set in [theme] are not inherited by
|
1282
|
+
[theme.sidebar]. The following sizes are used by default:
|
1283
|
+
[
|
1284
|
+
"2.75rem", # h1 (1.5rem for sidebar)
|
1285
|
+
"2.25rem", # h2 (1.25rem for sidebar)
|
1286
|
+
"1.75rem", # h3 (1.125rem for sidebar)
|
1287
|
+
"1.5rem", # h4 (1rem for sidebar)
|
1288
|
+
"1.25rem", # h5 (0.875rem for sidebar)
|
1289
|
+
"1rem", # h6 (0.75rem for sidebar)
|
1290
|
+
]
|
1289
1291
|
|
1290
|
-
If you
|
1292
|
+
If you specify an array with fewer than six sizes, the unspecified
|
1293
|
+
heading sizes will be the default values. For example, you can use the
|
1294
|
+
following array to set the font sizes for h1-h3 headings while keeping
|
1295
|
+
h4-h6 headings at their default sizes:
|
1291
1296
|
headingFontSizes = ["3rem", "2.875rem", "2.75rem"]
|
1292
1297
|
|
1293
|
-
Setting a single value will set the font size for all
|
1298
|
+
Setting a single value (not in an array) will set the font size for all
|
1299
|
+
h1-h6 headings to that value:
|
1294
1300
|
headingFontSizes = "2.75rem"
|
1301
|
+
|
1302
|
+
Font sizes can be specified in pixels or rem, but rem is recommended.
|
1295
1303
|
""",
|
1296
1304
|
)
|
1297
1305
|
|
@@ -1299,20 +1307,29 @@ _create_theme_options(
|
|
1299
1307
|
"headingFontWeights",
|
1300
1308
|
categories=["theme", CustomThemeCategories.SIDEBAR],
|
1301
1309
|
description="""
|
1302
|
-
|
1310
|
+
One or more font weights for h1-h6 headings.
|
1303
1311
|
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1312
|
+
If no weights are set, Streamlit will use the default weights for h1-h6
|
1313
|
+
headings. Heading font weights set in [theme] are not inherited by
|
1314
|
+
[theme.sidebar]. The following weights are used by default:
|
1315
|
+
[
|
1316
|
+
700, # h1 (bold)
|
1317
|
+
600, # h2 (semi-bold)
|
1318
|
+
600, # h3 (semi-bold)
|
1319
|
+
600, # h4 (semi-bold)
|
1320
|
+
600, # h5 (semi-bold)
|
1321
|
+
600, # h6 (semi-bold)
|
1322
|
+
]
|
1310
1323
|
|
1311
|
-
If you
|
1312
|
-
|
1324
|
+
If you specify an array with fewer than six weights, the unspecified
|
1325
|
+
heading weights will be the default values. For example, you can use
|
1326
|
+
the following array to set the font weights for h1-h2 headings while
|
1327
|
+
keeping h3-h6 headings at their default weights:
|
1328
|
+
headingFontWeights = [800, 700]
|
1313
1329
|
|
1314
|
-
Setting a single value will set the font weight for
|
1315
|
-
|
1330
|
+
Setting a single value (not in an array) will set the font weight for
|
1331
|
+
all h1-h6 headings to that value:
|
1332
|
+
headingFontWeights = 500
|
1316
1333
|
""",
|
1317
1334
|
)
|
1318
1335
|
|
@@ -1336,12 +1353,12 @@ _create_theme_options(
|
|
1336
1353
|
"codeFontSize",
|
1337
1354
|
categories=["theme", CustomThemeCategories.SIDEBAR],
|
1338
1355
|
description="""
|
1339
|
-
|
1356
|
+
The font size (in pixels or rem) for code blocks and code text.
|
1340
1357
|
|
1341
|
-
This applies to code blocks
|
1342
|
-
|
1358
|
+
This applies to font in code blocks, `st.json`, and `st.help`. It
|
1359
|
+
doesn't apply to inline code, which is set by default to 0.75em.
|
1343
1360
|
|
1344
|
-
|
1361
|
+
If this isn't set, the code font size will be 0.875rem.
|
1345
1362
|
""",
|
1346
1363
|
)
|
1347
1364
|
|
@@ -1351,10 +1368,11 @@ _create_theme_options(
|
|
1351
1368
|
description="""
|
1352
1369
|
The font weight for code blocks and code text.
|
1353
1370
|
|
1354
|
-
This applies to inline code, code blocks
|
1355
|
-
|
1371
|
+
This applies to font in inline code, code blocks, `st.json`, and
|
1372
|
+
`st.help`. This is an integer multiple of 100. Values can be between
|
1373
|
+
100 and 900, inclusive.
|
1356
1374
|
|
1357
|
-
|
1375
|
+
If this isn't set, the code font weight will be 400 (normal weight).
|
1358
1376
|
""",
|
1359
1377
|
type_=int,
|
1360
1378
|
)
|
@@ -1395,7 +1413,7 @@ _create_theme_options(
|
|
1395
1413
|
For example, you can use "10px", "0.5rem", or "2rem". To follow best
|
1396
1414
|
practices, use rem instead of pixels when specifying a numeric size.
|
1397
1415
|
|
1398
|
-
If
|
1416
|
+
If this isn't set, Streamlit uses `theme.baseRadius` instead.
|
1399
1417
|
""",
|
1400
1418
|
)
|
1401
1419
|
|
@@ -1413,8 +1431,7 @@ _create_theme_options(
|
|
1413
1431
|
description="""
|
1414
1432
|
The color of the border around dataframes and tables.
|
1415
1433
|
|
1416
|
-
If
|
1417
|
-
instead.
|
1434
|
+
If this isn't set, Streamlit uses `theme.borderColor` instead.
|
1418
1435
|
""",
|
1419
1436
|
)
|
1420
1437
|
|
@@ -1424,8 +1441,11 @@ _create_theme_options(
|
|
1424
1441
|
description="""
|
1425
1442
|
The background color of the dataframe's header.
|
1426
1443
|
|
1427
|
-
|
1428
|
-
|
1444
|
+
This color applies to all non-interior cells of the dataframe. This
|
1445
|
+
includes the header row, the row-selection column (if present), and
|
1446
|
+
the bottom row of data editors with a dynamic number of rows. If this
|
1447
|
+
isn't set, Streamlit uses a mix of `theme.backgroundColor` and
|
1448
|
+
`theme.secondaryBackgroundColor`.
|
1429
1449
|
""",
|
1430
1450
|
)
|
1431
1451
|
|
@@ -1453,11 +1473,17 @@ _create_theme_options(
|
|
1453
1473
|
"chartCategoricalColors",
|
1454
1474
|
categories=["theme"],
|
1455
1475
|
description="""
|
1456
|
-
An array of colors to use for categorical
|
1476
|
+
An array of colors to use for categorical chart data.
|
1457
1477
|
|
1458
|
-
|
1459
|
-
colors
|
1460
|
-
|
1478
|
+
This is a list of one or more color strings which are applied in order
|
1479
|
+
to categorical data. These colors apply to Plotly, Altair, and
|
1480
|
+
Vega-Lite charts.
|
1481
|
+
|
1482
|
+
Invalid colors are skipped, and colors repeat cyclically if there are
|
1483
|
+
more categories than colors. If no chart categorical colors are set,
|
1484
|
+
Streamlit uses a default set of colors.
|
1485
|
+
|
1486
|
+
For light themes, the following colors are the default:
|
1461
1487
|
[
|
1462
1488
|
"#0068c9", # blue80
|
1463
1489
|
"#83c9ff", # blue40
|
@@ -1470,7 +1496,7 @@ _create_theme_options(
|
|
1470
1496
|
"#6d3fc0", # purple80
|
1471
1497
|
"#d5dae5", # gray40
|
1472
1498
|
]
|
1473
|
-
For dark themes the
|
1499
|
+
For dark themes, the following colors are the default:
|
1474
1500
|
[
|
1475
1501
|
"#83c9ff", # blue40
|
1476
1502
|
"#0068c9", # blue80
|
@@ -1490,11 +1516,15 @@ _create_theme_options(
|
|
1490
1516
|
"chartSequentialColors",
|
1491
1517
|
categories=["theme"],
|
1492
1518
|
description="""
|
1493
|
-
An array of
|
1519
|
+
An array of ten colors to use for sequential or continuous chart data.
|
1494
1520
|
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1521
|
+
The ten colors create a gradient color scale. These colors apply to
|
1522
|
+
Plotly, Altair, and Vega-Lite charts.
|
1523
|
+
|
1524
|
+
Invalid color strings are skipped. If there are not exactly ten
|
1525
|
+
valid colors specified, Streamlit uses a default set of colors.
|
1526
|
+
|
1527
|
+
For light themes, the following colors are the default:
|
1498
1528
|
[
|
1499
1529
|
"#e4f5ff", #blue10
|
1500
1530
|
"#c7ebff", #blue20
|
@@ -1507,7 +1537,7 @@ _create_theme_options(
|
|
1507
1537
|
"#0054a3", #blue90
|
1508
1538
|
"#004280", #blue100
|
1509
1539
|
]
|
1510
|
-
For dark themes the
|
1540
|
+
For dark themes, the following colors are the default:
|
1511
1541
|
[
|
1512
1542
|
"#004280", #blue100
|
1513
1543
|
"#0054a3", #blue90
|
streamlit/elements/code.py
CHANGED
@@ -69,11 +69,15 @@ class CodeMixin:
|
|
69
69
|
An optional boolean indicating whether to wrap lines. This defaults
|
70
70
|
to ``False``.
|
71
71
|
|
72
|
-
height : "content" or int
|
72
|
+
height : "content", "stretch", or int
|
73
73
|
The height of the code block element. This can be one of the following:
|
74
74
|
|
75
75
|
- ``"content"`` (default): The height of the element matches the
|
76
76
|
height of its content.
|
77
|
+
- ``"stretch"``: The height of the element matches the height of
|
78
|
+
its content or the height of the parent container, whichever is
|
79
|
+
larger. If the element is not in a parent container, the height
|
80
|
+
of the element matches the height of its content.
|
77
81
|
- An integer specifying the height in pixels: The element has a
|
78
82
|
fixed height. If the content is larger than the specified
|
79
83
|
height, scrolling is enabled.
|
@@ -330,6 +330,14 @@ class PydeckMixin:
|
|
330
330
|
made available by Carto or Mapbox. The use of Carto or Mapbox is governed by
|
331
331
|
their respective Terms of Use.
|
332
332
|
|
333
|
+
.. note::
|
334
|
+
Pydeck uses two WebGL contexts per chart, and different browsers
|
335
|
+
have different limits on the number of WebGL contexts per page.
|
336
|
+
If you exceed this limit, the oldest contexts will be dropped to
|
337
|
+
make room for the new ones. To avoid this limitation in most
|
338
|
+
browsers, don't display more than eight Pydeck charts on a single
|
339
|
+
page.
|
340
|
+
|
333
341
|
Parameters
|
334
342
|
----------
|
335
343
|
pydeck_obj : pydeck.Deck or None
|
streamlit/elements/form.py
CHANGED
@@ -144,11 +144,15 @@ class FormMixin:
|
|
144
144
|
the parent container, the width of the container matches the width
|
145
145
|
of the parent container.
|
146
146
|
|
147
|
-
height : "content" or int
|
147
|
+
height : "content", "stretch", or int
|
148
148
|
The height of the form container. This can be one of the following:
|
149
149
|
|
150
150
|
- ``"content"`` (default): The height of the container matches the
|
151
151
|
height of its content.
|
152
|
+
- ``"stretch"``: The height of the container matches the height of
|
153
|
+
its content or the height of the parent container, whichever is
|
154
|
+
larger. If the container is not in a parent container, the height
|
155
|
+
of the container matches the height of its content.
|
152
156
|
- An integer specifying the height in pixels: The container has a
|
153
157
|
fixed height. If the content is larger than the specified
|
154
158
|
height, scrolling is enabled.
|
streamlit/elements/html.py
CHANGED
@@ -77,10 +77,17 @@ class HtmlMixin:
|
|
77
77
|
to the event container instead of the main container to avoid
|
78
78
|
taking up space in the app.
|
79
79
|
|
80
|
-
width :
|
81
|
-
The width of the HTML element.
|
82
|
-
|
83
|
-
|
80
|
+
width : "stretch", "content", or int
|
81
|
+
The width of the HTML element. This can be one of the following:
|
82
|
+
|
83
|
+
- ``"stretch"`` (default): The width of the element matches the
|
84
|
+
width of the parent container.
|
85
|
+
- ``"content"``: The width of the element matches the width of its
|
86
|
+
content, but doesn't exceed the width of the parent container.
|
87
|
+
- An integer specifying the width in pixels: The element has a
|
88
|
+
fixed width. If the specified width is greater than the width of
|
89
|
+
the parent container, the width of the element matches the width
|
90
|
+
of the parent container.
|
84
91
|
|
85
92
|
Example
|
86
93
|
-------
|
@@ -178,7 +178,7 @@ class ColumnConfig(TypedDict, total=False):
|
|
178
178
|
- ``"small"``: 75px wide
|
179
179
|
- ``"medium"``: 200px wide
|
180
180
|
- ``"large"``: 400px wide
|
181
|
-
- An integer specifying the width in pixels
|
181
|
+
- An integer specifying the width in pixels
|
182
182
|
|
183
183
|
help: str or None
|
184
184
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -283,7 +283,7 @@ def Column(
|
|
283
283
|
- ``"small"``: 75px wide
|
284
284
|
- ``"medium"``: 200px wide
|
285
285
|
- ``"large"``: 400px wide
|
286
|
-
- An integer specifying the width in pixels
|
286
|
+
- An integer specifying the width in pixels
|
287
287
|
|
288
288
|
help: str or None
|
289
289
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -388,7 +388,7 @@ def NumberColumn(
|
|
388
388
|
- ``"small"``: 75px wide
|
389
389
|
- ``"medium"``: 200px wide
|
390
390
|
- ``"large"``: 400px wide
|
391
|
-
- An integer specifying the width in pixels
|
391
|
+
- An integer specifying the width in pixels
|
392
392
|
|
393
393
|
help: str or None
|
394
394
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -465,6 +465,10 @@ def NumberColumn(
|
|
465
465
|
integers. Setting ``step`` for float columns will ensure a consistent
|
466
466
|
number of digits after the decimal are displayed.
|
467
467
|
|
468
|
+
If ``format`` is a predefined format like ``"dollar"``, ``step``
|
469
|
+
overrides the display precision. If ``format`` is a printf-style format
|
470
|
+
string, ``step`` will not change the display precision.
|
471
|
+
|
468
472
|
Examples
|
469
473
|
--------
|
470
474
|
>>> import pandas as pd
|
@@ -547,7 +551,7 @@ def TextColumn(
|
|
547
551
|
- ``"small"``: 75px wide
|
548
552
|
- ``"medium"``: 200px wide
|
549
553
|
- ``"large"``: 400px wide
|
550
|
-
- An integer specifying the width in pixels
|
554
|
+
- An integer specifying the width in pixels
|
551
555
|
|
552
556
|
help: str or None
|
553
557
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -670,7 +674,7 @@ def LinkColumn(
|
|
670
674
|
- ``"small"``: 75px wide
|
671
675
|
- ``"medium"``: 200px wide
|
672
676
|
- ``"large"``: 400px wide
|
673
|
-
- An integer specifying the width in pixels
|
677
|
+
- An integer specifying the width in pixels
|
674
678
|
|
675
679
|
help: str or None
|
676
680
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -720,7 +724,7 @@ def LinkColumn(
|
|
720
724
|
|
721
725
|
- ``None`` (default) to display the URL itself.
|
722
726
|
- A string that is displayed in every cell, e.g. ``"Open link"``.
|
723
|
-
- A
|
727
|
+
- A Material icon that is displayed in every cell, e.g. ``":material/open_in_new:"``.
|
724
728
|
- A JS-flavored regular expression (detected by usage of parentheses)
|
725
729
|
to extract a part of the URL via a capture group. For example, use
|
726
730
|
``"https://(.*?)\.example\.com"`` to extract the display text
|
@@ -829,7 +833,7 @@ def CheckboxColumn(
|
|
829
833
|
- ``"small"``: 75px wide
|
830
834
|
- ``"medium"``: 200px wide
|
831
835
|
- ``"large"``: 400px wide
|
832
|
-
- An integer specifying the width in pixels
|
836
|
+
- An integer specifying the width in pixels
|
833
837
|
|
834
838
|
help: str or None
|
835
839
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -938,7 +942,7 @@ def SelectboxColumn(
|
|
938
942
|
- ``"small"``: 75px wide
|
939
943
|
- ``"medium"``: 200px wide
|
940
944
|
- ``"large"``: 400px wide
|
941
|
-
- An integer specifying the width in pixels
|
945
|
+
- An integer specifying the width in pixels
|
942
946
|
|
943
947
|
help: str or None
|
944
948
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1062,7 +1066,7 @@ def BarChartColumn(
|
|
1062
1066
|
- ``"small"``: 75px wide
|
1063
1067
|
- ``"medium"``: 200px wide
|
1064
1068
|
- ``"large"``: 400px wide
|
1065
|
-
- An integer specifying the width in pixels
|
1069
|
+
- An integer specifying the width in pixels
|
1066
1070
|
|
1067
1071
|
help: str or None
|
1068
1072
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1159,7 +1163,7 @@ def LineChartColumn(
|
|
1159
1163
|
- ``"small"``: 75px wide
|
1160
1164
|
- ``"medium"``: 200px wide
|
1161
1165
|
- ``"large"``: 400px wide
|
1162
|
-
- An integer specifying the width in pixels
|
1166
|
+
- An integer specifying the width in pixels
|
1163
1167
|
|
1164
1168
|
help: str or None
|
1165
1169
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1257,7 +1261,7 @@ def AreaChartColumn(
|
|
1257
1261
|
- ``"small"``: 75px wide
|
1258
1262
|
- ``"medium"``: 200px wide
|
1259
1263
|
- ``"large"``: 400px wide
|
1260
|
-
- An integer specifying the width in pixels
|
1264
|
+
- An integer specifying the width in pixels
|
1261
1265
|
|
1262
1266
|
help: str or None
|
1263
1267
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1361,7 +1365,7 @@ def ImageColumn(
|
|
1361
1365
|
- ``"small"``: 75px wide
|
1362
1366
|
- ``"medium"``: 200px wide
|
1363
1367
|
- ``"large"``: 400px wide
|
1364
|
-
- An integer specifying the width in pixels
|
1368
|
+
- An integer specifying the width in pixels
|
1365
1369
|
|
1366
1370
|
help: str or None
|
1367
1371
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1444,7 +1448,7 @@ def ListColumn(
|
|
1444
1448
|
- ``"small"``: 75px wide
|
1445
1449
|
- ``"medium"``: 200px wide
|
1446
1450
|
- ``"large"``: 400px wide
|
1447
|
-
- An integer specifying the width in pixels
|
1451
|
+
- An integer specifying the width in pixels
|
1448
1452
|
|
1449
1453
|
help: str or None
|
1450
1454
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1538,7 +1542,7 @@ def DatetimeColumn(
|
|
1538
1542
|
- ``"small"``: 75px wide
|
1539
1543
|
- ``"medium"``: 200px wide
|
1540
1544
|
- ``"large"``: 400px wide
|
1541
|
-
- An integer specifying the width in pixels
|
1545
|
+
- An integer specifying the width in pixels
|
1542
1546
|
|
1543
1547
|
help: str or None
|
1544
1548
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1701,7 +1705,7 @@ def TimeColumn(
|
|
1701
1705
|
- ``"small"``: 75px wide
|
1702
1706
|
- ``"medium"``: 200px wide
|
1703
1707
|
- ``"large"``: 400px wide
|
1704
|
-
- An integer specifying the width in pixels
|
1708
|
+
- An integer specifying the width in pixels
|
1705
1709
|
|
1706
1710
|
help: str or None
|
1707
1711
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -1855,7 +1859,7 @@ def DateColumn(
|
|
1855
1859
|
- ``"small"``: 75px wide
|
1856
1860
|
- ``"medium"``: 200px wide
|
1857
1861
|
- ``"large"``: 400px wide
|
1858
|
-
- An integer specifying the width in pixels
|
1862
|
+
- An integer specifying the width in pixels
|
1859
1863
|
|
1860
1864
|
help: str or None
|
1861
1865
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -2007,7 +2011,7 @@ def ProgressColumn(
|
|
2007
2011
|
- ``"small"``: 75px wide
|
2008
2012
|
- ``"medium"``: 200px wide
|
2009
2013
|
- ``"large"``: 400px wide
|
2010
|
-
- An integer specifying the width in pixels
|
2014
|
+
- An integer specifying the width in pixels
|
2011
2015
|
|
2012
2016
|
help: str or None
|
2013
2017
|
A tooltip that gets displayed when hovering over the column label. If
|
@@ -2137,7 +2141,7 @@ def JsonColumn(
|
|
2137
2141
|
- ``"small"``: 75px wide
|
2138
2142
|
- ``"medium"``: 200px wide
|
2139
2143
|
- ``"large"``: 400px wide
|
2140
|
-
- An integer specifying the width in pixels
|
2144
|
+
- An integer specifying the width in pixels
|
2141
2145
|
|
2142
2146
|
help: str or None
|
2143
2147
|
A tooltip that gets displayed when hovering over the column label. If
|
streamlit/elements/metric.py
CHANGED
@@ -135,11 +135,14 @@ class MetricMixin:
|
|
135
135
|
The height of the metric element. This can be one of the following:
|
136
136
|
|
137
137
|
- ``"content"`` (default): The height of the element matches the
|
138
|
-
height of its content
|
139
|
-
|
140
|
-
|
141
|
-
parent container
|
142
|
-
|
138
|
+
height of its content.
|
139
|
+
- ``"stretch"``: The height of the element matches the height of
|
140
|
+
its content or the height of the parent container, whichever is
|
141
|
+
larger. If the element is not in a parent container, the height
|
142
|
+
of the element matches the height of its content.
|
143
|
+
- An integer specifying the height in pixels: The element has a
|
144
|
+
fixed height. If the content is larger than the specified
|
145
|
+
height, scrolling is enabled.
|
143
146
|
|
144
147
|
width : "stretch", "content", or int
|
145
148
|
The width of the metric element. This can be one of the following:
|
@@ -339,6 +339,17 @@ class PlotlyMixin:
|
|
339
339
|
The Plotly ``Figure`` or ``Data`` object to render. See
|
340
340
|
https://plot.ly/python/ for examples of graph descriptions.
|
341
341
|
|
342
|
+
.. note::
|
343
|
+
If your chart contains more than 1000 data points, Plotly will
|
344
|
+
use a WebGL renderer to display the chart. Different browsers
|
345
|
+
have different limits on the number of WebGL contexts per page.
|
346
|
+
If you have multiple WebGL contexts on a page, you may need to
|
347
|
+
switch to SVG rendering mode. You can do this by setting
|
348
|
+
``render_mode="svg"`` within the figure. For example, the
|
349
|
+
following code defines a Plotly Express line chart that will
|
350
|
+
render in SVG mode when passed to ``st.plotly_chart``:
|
351
|
+
``px.line(df, x="x", y="y", render_mode="svg")``.
|
352
|
+
|
342
353
|
use_container_width : bool
|
343
354
|
Whether to override the figure's native width with the width of
|
344
355
|
the parent container. If ``use_container_width`` is ``True`` (default),
|
@@ -352,6 +363,11 @@ class PlotlyMixin:
|
|
352
363
|
Streamlit uses its own design default. If ``theme`` is ``None``,
|
353
364
|
Streamlit falls back to the default behavior of the library.
|
354
365
|
|
366
|
+
The ``"streamlit"`` theme can be partially customized through the
|
367
|
+
configuration options ``theme.chartCategoricalColors`` and
|
368
|
+
``theme.chartSequentialColors``. Font configuration options are
|
369
|
+
also applied.
|
370
|
+
|
355
371
|
key : str
|
356
372
|
An optional string to use for giving this element a stable
|
357
373
|
identity. If ``key`` is ``None`` (default), this element's identity
|
@@ -394,7 +410,12 @@ class PlotlyMixin:
|
|
394
410
|
All selections modes are activated by default.
|
395
411
|
|
396
412
|
**kwargs
|
397
|
-
|
413
|
+
Additional arguments accepted by Plotly's ``plot()`` function.
|
414
|
+
|
415
|
+
This supports ``config``, a dictionary of Plotly configuration
|
416
|
+
options. For more information about Plotly configuration options,
|
417
|
+
see Plotly's documentation on `Configuration in Python
|
418
|
+
<https://plotly.com/python/configuration-options/>`_.
|
398
419
|
|
399
420
|
Returns
|
400
421
|
-------
|
@@ -405,11 +426,12 @@ class PlotlyMixin:
|
|
405
426
|
attribute notation. The attributes are described by the
|
406
427
|
``PlotlyState`` dictionary schema.
|
407
428
|
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
429
|
+
Examples
|
430
|
+
--------
|
431
|
+
**Example 1: Basic Plotly Chart**
|
432
|
+
|
433
|
+
The example below comes from the examples at https://plot.ly/python.
|
434
|
+
Note that ``plotly.figure_factory`` requires ``scipy`` to run.
|
413
435
|
|
414
436
|
>>> import streamlit as st
|
415
437
|
>>> import numpy as np
|
@@ -436,6 +458,31 @@ class PlotlyMixin:
|
|
436
458
|
https://doc-plotly-chart.streamlit.app/
|
437
459
|
height: 550px
|
438
460
|
|
461
|
+
**Example 2: Plotly Chart with configuration**
|
462
|
+
|
463
|
+
By default, Plotly charts have scroll zoom enabled. If you have a
|
464
|
+
longer page and want to avoid conflicts between page scrolling and
|
465
|
+
zooming, you can use Plotly's configuration options to disable scroll
|
466
|
+
zoom. In the following example, scroll zoom is disabled, but the zoom
|
467
|
+
buttons are still enabled in the modebar.
|
468
|
+
|
469
|
+
>>> import streamlit as st
|
470
|
+
>>> import plotly.graph_objects as go
|
471
|
+
>>>
|
472
|
+
>>> fig = go.Figure()
|
473
|
+
>>> fig.add_trace(
|
474
|
+
... go.Scatter(
|
475
|
+
... x=[1, 2, 3, 4, 5],
|
476
|
+
... y=[1, 3, 2, 5, 4]
|
477
|
+
... )
|
478
|
+
... )
|
479
|
+
>>>
|
480
|
+
>>> st.plotly_chart(fig, config = {'scrollZoom': False})
|
481
|
+
|
482
|
+
.. output::
|
483
|
+
https://doc-plotly-chart-config.streamlit.app/
|
484
|
+
height: 550px
|
485
|
+
|
439
486
|
"""
|
440
487
|
import plotly.io
|
441
488
|
import plotly.tools
|
@@ -1577,6 +1577,11 @@ class VegaChartsMixin:
|
|
1577
1577
|
Streamlit uses its own design default. If ``theme`` is ``None``,
|
1578
1578
|
Streamlit falls back to the default behavior of the library.
|
1579
1579
|
|
1580
|
+
The ``"streamlit"`` theme can be partially customized through the
|
1581
|
+
configuration options ``theme.chartCategoricalColors`` and
|
1582
|
+
``theme.chartSequentialColors``. Font configuration options are
|
1583
|
+
also applied.
|
1584
|
+
|
1580
1585
|
key : str
|
1581
1586
|
An optional string to use for giving this element a stable
|
1582
1587
|
identity. If ``key`` is ``None`` (default), this element's identity
|
@@ -1745,6 +1750,11 @@ class VegaChartsMixin:
|
|
1745
1750
|
Streamlit uses its own design default. If ``theme`` is ``None``,
|
1746
1751
|
Streamlit falls back to the default behavior of the library.
|
1747
1752
|
|
1753
|
+
The ``"streamlit"`` theme can be partially customized through the
|
1754
|
+
configuration options ``theme.chartCategoricalColors`` and
|
1755
|
+
``theme.chartSequentialColors``. Font configuration options are
|
1756
|
+
also applied.
|
1757
|
+
|
1748
1758
|
key : str
|
1749
1759
|
An optional string to use for giving this element a stable
|
1750
1760
|
identity. If ``key`` is ``None`` (default), this element's identity
|
@@ -315,7 +315,7 @@ class ButtonGroupMixin:
|
|
315
315
|
|
316
316
|
Parameters
|
317
317
|
----------
|
318
|
-
options: "thumbs", "faces", or "stars"
|
318
|
+
options : "thumbs", "faces", or "stars"
|
319
319
|
The feedback options displayed to the user. ``options`` can be one
|
320
320
|
of the following:
|
321
321
|
|
@@ -346,10 +346,18 @@ class ButtonGroupMixin:
|
|
346
346
|
kwargs : dict
|
347
347
|
An optional dict of kwargs to pass to the callback.
|
348
348
|
|
349
|
-
width :
|
350
|
-
The width of the feedback widget.
|
351
|
-
|
352
|
-
(default)
|
349
|
+
width : "content", "stretch", or int
|
350
|
+
The width of the feedback widget. This can be one of the following:
|
351
|
+
|
352
|
+
- ``"content"`` (default): The width of the widget matches the
|
353
|
+
width of its content, but doesn't exceed the width of the parent
|
354
|
+
container.
|
355
|
+
- ``"stretch"``: The width of the widget matches the width of the
|
356
|
+
parent container.
|
357
|
+
- An integer specifying the width in pixels: The widget has a
|
358
|
+
fixed width. If the specified width is greater than the width of
|
359
|
+
the parent container, the width of the widget matches the width
|
360
|
+
of the parent container.
|
353
361
|
|
354
362
|
Returns
|
355
363
|
-------
|
@@ -487,7 +495,7 @@ class ButtonGroupMixin:
|
|
487
495
|
|
488
496
|
Parameters
|
489
497
|
----------
|
490
|
-
label: str
|
498
|
+
label : str
|
491
499
|
A short label explaining to the user what this widget is for.
|
492
500
|
The label can optionally contain GitHub-flavored Markdown of the
|
493
501
|
following types: Bold, Italics, Strikethroughs, Inline Code, Links,
|
@@ -509,7 +517,7 @@ class ButtonGroupMixin:
|
|
509
517
|
.. |st.markdown| replace:: ``st.markdown``
|
510
518
|
.. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
|
511
519
|
|
512
|
-
options: Iterable of V
|
520
|
+
options : Iterable of V
|
513
521
|
Labels for the select options in an ``Iterable``. This can be a
|
514
522
|
``list``, ``set``, or anything supported by ``st.dataframe``. If
|
515
523
|
``options`` is dataframe-like, the first column will be used. Each
|
@@ -517,18 +525,18 @@ class ButtonGroupMixin:
|
|
517
525
|
optionally contain GitHub-flavored Markdown, including the Markdown
|
518
526
|
directives described in the ``body`` parameter of ``st.markdown``.
|
519
527
|
|
520
|
-
selection_mode: "single" or "multi"
|
528
|
+
selection_mode : "single" or "multi"
|
521
529
|
The selection mode for the widget. If this is ``"single"``
|
522
530
|
(default), only one option can be selected. If this is ``"multi"``,
|
523
531
|
multiple options can be selected.
|
524
532
|
|
525
|
-
default: Iterable of V, V, or None
|
533
|
+
default : Iterable of V, V, or None
|
526
534
|
The value of the widget when it first renders. If the
|
527
535
|
``selection_mode`` is ``multi``, this can be a list of values, a
|
528
536
|
single value, or ``None``. If the ``selection_mode`` is
|
529
537
|
``"single"``, this can be a single value or ``None``.
|
530
538
|
|
531
|
-
format_func: function
|
539
|
+
format_func : function
|
532
540
|
Function to modify the display of the options. It receives
|
533
541
|
the raw option as an argument and should output the label to be
|
534
542
|
shown for that option. This has no impact on the return value of
|
@@ -536,13 +544,13 @@ class ButtonGroupMixin:
|
|
536
544
|
Markdown, including the Markdown directives described in the
|
537
545
|
``body`` parameter of ``st.markdown``.
|
538
546
|
|
539
|
-
key: str or int
|
547
|
+
key : str or int
|
540
548
|
An optional string or integer to use as the unique key for the widget.
|
541
549
|
If this is omitted, a key will be generated for the widget
|
542
550
|
based on its content. Multiple widgets of the same type may
|
543
551
|
not share the same key.
|
544
552
|
|
545
|
-
help: str or None
|
553
|
+
help : str or None
|
546
554
|
A tooltip that gets displayed next to the widget label. Streamlit
|
547
555
|
only displays the tooltip when ``label_visibility="visible"``. If
|
548
556
|
this is ``None`` (default), no tooltip is displayed.
|
@@ -551,29 +559,37 @@ class ButtonGroupMixin:
|
|
551
559
|
including the Markdown directives described in the ``body``
|
552
560
|
parameter of ``st.markdown``.
|
553
561
|
|
554
|
-
on_change: callable
|
562
|
+
on_change : callable
|
555
563
|
An optional callback invoked when this widget's value changes.
|
556
564
|
|
557
|
-
args: tuple
|
565
|
+
args : tuple
|
558
566
|
An optional tuple of args to pass to the callback.
|
559
567
|
|
560
|
-
kwargs: dict
|
568
|
+
kwargs : dict
|
561
569
|
An optional dict of kwargs to pass to the callback.
|
562
570
|
|
563
|
-
disabled: bool
|
571
|
+
disabled : bool
|
564
572
|
An optional boolean that disables the widget if set to ``True``.
|
565
573
|
The default is ``False``.
|
566
574
|
|
567
|
-
label_visibility: "visible", "hidden", or "collapsed"
|
575
|
+
label_visibility : "visible", "hidden", or "collapsed"
|
568
576
|
The visibility of the label. The default is ``"visible"``. If this
|
569
577
|
is ``"hidden"``, Streamlit displays an empty spacer instead of the
|
570
578
|
label, which can help keep the widget aligned with other widgets.
|
571
579
|
If this is ``"collapsed"``, Streamlit displays no label or spacer.
|
572
580
|
|
573
|
-
width:
|
574
|
-
The width of the widget.
|
575
|
-
|
576
|
-
|
581
|
+
width : "content", "stretch", or int
|
582
|
+
The width of the pills widget. This can be one of the following:
|
583
|
+
|
584
|
+
- ``"content"`` (default): The width of the widget matches the
|
585
|
+
width of its content, but doesn't exceed the width of the parent
|
586
|
+
container.
|
587
|
+
- ``"stretch"``: The width of the widget matches the width of the
|
588
|
+
parent container.
|
589
|
+
- An integer specifying the width in pixels: The widget has a
|
590
|
+
fixed width. If the specified width is greater than the width of
|
591
|
+
the parent container, the width of the widget matches the width
|
592
|
+
of the parent container.
|
577
593
|
|
578
594
|
Returns
|
579
595
|
-------
|
@@ -727,7 +743,7 @@ class ButtonGroupMixin:
|
|
727
743
|
.. |st.markdown| replace:: ``st.markdown``
|
728
744
|
.. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
|
729
745
|
|
730
|
-
options: Iterable of V
|
746
|
+
options : Iterable of V
|
731
747
|
Labels for the select options in an ``Iterable``. This can be a
|
732
748
|
``list``, ``set``, or anything supported by ``st.dataframe``. If
|
733
749
|
``options`` is dataframe-like, the first column will be used. Each
|
@@ -735,18 +751,18 @@ class ButtonGroupMixin:
|
|
735
751
|
optionally contain GitHub-flavored Markdown, including the Markdown
|
736
752
|
directives described in the ``body`` parameter of ``st.markdown``.
|
737
753
|
|
738
|
-
selection_mode: "single" or "multi"
|
754
|
+
selection_mode : "single" or "multi"
|
739
755
|
The selection mode for the widget. If this is ``"single"``
|
740
756
|
(default), only one option can be selected. If this is ``"multi"``,
|
741
757
|
multiple options can be selected.
|
742
758
|
|
743
|
-
default: Iterable of V, V, or None
|
759
|
+
default : Iterable of V, V, or None
|
744
760
|
The value of the widget when it first renders. If the
|
745
761
|
``selection_mode`` is ``multi``, this can be a list of values, a
|
746
762
|
single value, or ``None``. If the ``selection_mode`` is
|
747
763
|
``"single"``, this can be a single value or ``None``.
|
748
764
|
|
749
|
-
format_func: function
|
765
|
+
format_func : function
|
750
766
|
Function to modify the display of the options. It receives
|
751
767
|
the raw option as an argument and should output the label to be
|
752
768
|
shown for that option. This has no impact on the return value of
|
@@ -754,13 +770,13 @@ class ButtonGroupMixin:
|
|
754
770
|
Markdown, including the Markdown directives described in the
|
755
771
|
``body`` parameter of ``st.markdown``.
|
756
772
|
|
757
|
-
key: str or int
|
773
|
+
key : str or int
|
758
774
|
An optional string or integer to use as the unique key for the widget.
|
759
775
|
If this is omitted, a key will be generated for the widget
|
760
776
|
based on its content. Multiple widgets of the same type may
|
761
777
|
not share the same key.
|
762
778
|
|
763
|
-
help: str or None
|
779
|
+
help : str or None
|
764
780
|
A tooltip that gets displayed next to the widget label. Streamlit
|
765
781
|
only displays the tooltip when ``label_visibility="visible"``. If
|
766
782
|
this is ``None`` (default), no tooltip is displayed.
|
@@ -769,29 +785,38 @@ class ButtonGroupMixin:
|
|
769
785
|
including the Markdown directives described in the ``body``
|
770
786
|
parameter of ``st.markdown``.
|
771
787
|
|
772
|
-
on_change: callable
|
788
|
+
on_change : callable
|
773
789
|
An optional callback invoked when this widget's value changes.
|
774
790
|
|
775
|
-
args: tuple
|
791
|
+
args : tuple
|
776
792
|
An optional tuple of args to pass to the callback.
|
777
793
|
|
778
|
-
kwargs: dict
|
794
|
+
kwargs : dict
|
779
795
|
An optional dict of kwargs to pass to the callback.
|
780
796
|
|
781
|
-
disabled: bool
|
797
|
+
disabled : bool
|
782
798
|
An optional boolean that disables the widget if set to ``True``.
|
783
799
|
The default is ``False``.
|
784
800
|
|
785
|
-
label_visibility: "visible", "hidden", or "collapsed"
|
801
|
+
label_visibility : "visible", "hidden", or "collapsed"
|
786
802
|
The visibility of the label. The default is ``"visible"``. If this
|
787
803
|
is ``"hidden"``, Streamlit displays an empty spacer instead of the
|
788
804
|
label, which can help keep the widget aligned with other widgets.
|
789
805
|
If this is ``"collapsed"``, Streamlit displays no label or spacer.
|
790
806
|
|
791
|
-
width:
|
792
|
-
The width of the widget.
|
793
|
-
|
794
|
-
|
807
|
+
width : "content", "stretch", or int
|
808
|
+
The width of the segmented control widget. This can be one of the
|
809
|
+
following:
|
810
|
+
|
811
|
+
- ``"content"`` (default): The width of the widget matches the
|
812
|
+
width of its content, but doesn't exceed the width of the parent
|
813
|
+
container.
|
814
|
+
- ``"stretch"``: The width of the widget matches the width of the
|
815
|
+
parent container.
|
816
|
+
- An integer specifying the width in pixels: The widget has a
|
817
|
+
fixed width. If the specified width is greater than the width of
|
818
|
+
the parent container, the width of the widget matches the width
|
819
|
+
of the parent container.
|
795
820
|
|
796
821
|
Returns
|
797
822
|
-------
|
@@ -310,8 +310,8 @@ class MultiSelectMixin:
|
|
310
310
|
|
311
311
|
placeholder: str or None
|
312
312
|
A string to display when no options are selected.
|
313
|
-
If this is ``None`` (default), the widget displays
|
314
|
-
|
313
|
+
If this is ``None`` (default), the widget displays placeholder text
|
314
|
+
based on the widget's configuration:
|
315
315
|
|
316
316
|
- "Choose options" is displayed when options are available and
|
317
317
|
``accept_new_options=False``.
|
@@ -320,8 +320,8 @@ class MultiSelectMixin:
|
|
320
320
|
- "Add options" is displayed when no options are available and
|
321
321
|
``accept_new_options=True``.
|
322
322
|
- "No options to select" is displayed when no options are available
|
323
|
-
and ``accept_new_options=False
|
324
|
-
this case
|
323
|
+
and ``accept_new_options=False``. The widget is also disabled in
|
324
|
+
this case.
|
325
325
|
|
326
326
|
disabled: bool
|
327
327
|
An optional boolean that disables the multiselect widget if set
|
@@ -308,7 +308,7 @@ class SelectboxMixin:
|
|
308
308
|
``options`` is dataframe-like, the first column will be used. Each
|
309
309
|
label will be cast to ``str`` internally by default.
|
310
310
|
|
311
|
-
index : int
|
311
|
+
index : int or None
|
312
312
|
The index of the preselected option on first render. If ``None``,
|
313
313
|
will initialize empty and return ``None`` until the user selects an option.
|
314
314
|
Defaults to 0 (the first option).
|
@@ -344,8 +344,8 @@ class SelectboxMixin:
|
|
344
344
|
|
345
345
|
placeholder : str or None
|
346
346
|
A string to display when no options are selected.
|
347
|
-
If this is ``None`` (default), the widget displays
|
348
|
-
|
347
|
+
If this is ``None`` (default), the widget displays placeholder text
|
348
|
+
based on the widget's configuration:
|
349
349
|
|
350
350
|
- "Choose an option" is displayed when options are available and
|
351
351
|
``accept_new_options=False``.
|
@@ -354,8 +354,8 @@ class SelectboxMixin:
|
|
354
354
|
- "Add an option" is displayed when no options are available and
|
355
355
|
``accept_new_options=True``.
|
356
356
|
- "No options to select" is displayed when no options are available
|
357
|
-
and ``accept_new_options=False
|
358
|
-
this case
|
357
|
+
and ``accept_new_options=False``. The widget is also disabled in
|
358
|
+
this case.
|
359
359
|
|
360
360
|
disabled : bool
|
361
361
|
An optional boolean that disables the selectbox if set to ``True``.
|
@@ -496,10 +496,24 @@ class TextWidgetsMixin:
|
|
496
496
|
cast to str internally. If ``None``, will initialize empty and
|
497
497
|
return ``None`` until the user provides input. Defaults to empty string.
|
498
498
|
|
499
|
-
height : int or None
|
500
|
-
|
501
|
-
|
502
|
-
|
499
|
+
height : "content", "stretch", int, or None
|
500
|
+
The height of the text area widget. This can be one of the
|
501
|
+
following:
|
502
|
+
|
503
|
+
- ``None`` (default): The height of the widget fits three lines.
|
504
|
+
- ``"content"``: The height of the widget matches the
|
505
|
+
height of its content.
|
506
|
+
- ``"stretch"``: The height of the widget matches the height of
|
507
|
+
its content or the height of the parent container, whichever is
|
508
|
+
larger. If the widget is not in a parent container, the height
|
509
|
+
of the widget matches the height of its content.
|
510
|
+
- An integer specifying the height in pixels: The widget has a
|
511
|
+
fixed height. If the content is larger than the specified
|
512
|
+
height, scrolling is enabled.
|
513
|
+
|
514
|
+
The widget's height can't be smaller than the height of two lines.
|
515
|
+
When ``label_visibility="collapsed"``, the minimum height is 68
|
516
|
+
pixels. Otherwise, the minimum height is 98 pixels.
|
503
517
|
|
504
518
|
max_chars : int or None
|
505
519
|
Maximum number of characters allowed in text area.
|
streamlit/runtime/context.py
CHANGED
@@ -246,6 +246,14 @@ class ContextProxy:
|
|
246
246
|
|
247
247
|
.. note::
|
248
248
|
Changes made to the background color through CSS are not included.
|
249
|
+
Additionally, the theme type may be incorrect during a change in
|
250
|
+
theme, like in the following situations:
|
251
|
+
|
252
|
+
- When the app is first loaded within a session
|
253
|
+
- When the user changes the theme in the settings menu
|
254
|
+
|
255
|
+
For more information and to upvote an improvement, see GitHub issue
|
256
|
+
`#11920 <https://github.com/streamlit/streamlit/issues/11920>`_.
|
249
257
|
|
250
258
|
Attributes
|
251
259
|
----------
|
@@ -3,7 +3,7 @@ streamlit/__main__.py,sha256=G3Ka6wgeICpC1gI872L7jGQhY4ukAFo3lgnYIqtoBIo,868
|
|
3
3
|
streamlit/auth_util.py,sha256=C3kylKgnVgAveIcnfKo_yQ842zuh8OaqZ2WDWAZkwPc,8594
|
4
4
|
streamlit/cli_util.py,sha256=SHOTfCD27ib4R09nkq9l31hOdPlhoEguX2c0SMuhczs,3430
|
5
5
|
streamlit/column_config.py,sha256=qRgJoO0k-iRWTCNDjnzNjd2krIiCJVSEEDTVRy83RRU,1449
|
6
|
-
streamlit/config.py,sha256=
|
6
|
+
streamlit/config.py,sha256=kYanEOm-hS9zNbVc75xxZbaE7cqqNcEMYgU3HIXLX-w,61308
|
7
7
|
streamlit/config_option.py,sha256=J9gY4SWlyPkeeMHT0XXNEuhPcP23Fv78EFBwpBXMi9Q,11679
|
8
8
|
streamlit/config_util.py,sha256=yXkELy2CyzBguADHw5zpY3PYmKrvxRaW94y38deuSsg,6251
|
9
9
|
streamlit/cursor.py,sha256=ej36w8lrhmHcuSDe-BKJ40TathM7xz1TGiomv9Ov-7M,6062
|
@@ -61,16 +61,16 @@ streamlit/elements/alert.py,sha256=QKTrTTQRY_HeDiiHuDQYq8vuulzqkIjjlNko4g_-IeU,1
|
|
61
61
|
streamlit/elements/arrow.py,sha256=waiNNLr2rg60R3utWNI0WUOYBuiK4VZ3Gn9Te_nfRyA,37667
|
62
62
|
streamlit/elements/balloons.py,sha256=788879T0Zb_sy5XNGtLPY3vgfsmFmEdol5E_yD64b-o,1482
|
63
63
|
streamlit/elements/bokeh_chart.py,sha256=EcPOoFOVh4uINN1oYsiYzz14sqsFWi8q8GAdpzM0tbs,4660
|
64
|
-
streamlit/elements/code.py,sha256=
|
65
|
-
streamlit/elements/deck_gl_json_chart.py,sha256=
|
64
|
+
streamlit/elements/code.py,sha256=xs94EodLZk-4QMQtGeu0sa8GrN44kzsEFYCcY2royAI,6028
|
65
|
+
streamlit/elements/deck_gl_json_chart.py,sha256=krhz6AKD48YwfIB7jhYViv4GgK68jCXY2Egcqjq2XwI,21167
|
66
66
|
streamlit/elements/dialog_decorator.py,sha256=ARRI3XWmuzhO5WBt69PIRIfvHKtgfunEsDUAUst76xE,10784
|
67
67
|
streamlit/elements/doc_string.py,sha256=JT1JJioIe8fO9t1YuT3LS4TtS89IvF0PvbqbhVpvkKE,17287
|
68
68
|
streamlit/elements/empty.py,sha256=pi7Tzv_96pTAjkMR0RuNpdPSwnVE9Bt5-cR4DeG7XzU,4615
|
69
69
|
streamlit/elements/exception.py,sha256=TAA3oK0uTgHmo04c0WjJPXq0ri_Q6NyPBTfekznwngE,12298
|
70
|
-
streamlit/elements/form.py,sha256=
|
70
|
+
streamlit/elements/form.py,sha256=F8SDYyHxXIafVB2l2cQqsiNg1fCRA1VqdNbHvjq65Rs,16263
|
71
71
|
streamlit/elements/graphviz_chart.py,sha256=0f_MP_fvM1lpa3ocF-fklCCUFI0uubnLNo4ujR7LowA,4881
|
72
72
|
streamlit/elements/heading.py,sha256=9JQ8DmNAb0aN3sioskWUdU8xiCpipeD9dQh9G--h6yM,13295
|
73
|
-
streamlit/elements/html.py,sha256=
|
73
|
+
streamlit/elements/html.py,sha256=0hrK5v4DowZLHZgG1DWdlccXXSurk4hJGgwu3Tywbwc,6946
|
74
74
|
streamlit/elements/iframe.py,sha256=tdFNbLcf1mSiD3bVSUWBYWone9vZ3LZfcfSJPaW4sl4,8526
|
75
75
|
streamlit/elements/image.py,sha256=Q4wkGPvSaKL1gb_DXzx7lfgeOQXIemKQkOT6HEutcYE,8487
|
76
76
|
streamlit/elements/json.py,sha256=LXKk5T7nFpplfzhKVIhCCSmvWecHW6KT67yLwhJBy38,5303
|
@@ -78,21 +78,21 @@ streamlit/elements/layouts.py,sha256=MQu-kmjUflj-WB83-PJJrh93AEFV94S_k_nZ7d3cJCU
|
|
78
78
|
streamlit/elements/map.py,sha256=oF-byfIB_WmaHM5tUO3qHDdtENWIgQsNHkV7Gf8PACA,16456
|
79
79
|
streamlit/elements/markdown.py,sha256=VJiOKAet3djJ2rgEnSTgISfd_NKPTQHpnQiPWPB7IAY,19022
|
80
80
|
streamlit/elements/media.py,sha256=8dHjYLI7obV67L52g7Dv74KK5wsYN4w4GwLnBmA5nog,33906
|
81
|
-
streamlit/elements/metric.py,sha256=
|
82
|
-
streamlit/elements/plotly_chart.py,sha256=
|
81
|
+
streamlit/elements/metric.py,sha256=oGmvVSHLGPz6MmbtPkfHWfwv303b7GoXsKSp-rlTtPY,12738
|
82
|
+
streamlit/elements/plotly_chart.py,sha256=qMl3_QbWGnm1KJCmMtqu9I7AzECorKDiJwiyinyaF6g,21771
|
83
83
|
streamlit/elements/progress.py,sha256=y56eCIClTzwzeMQIRt_62NYLqn8Qltl6TgQ2TMNINg0,6104
|
84
84
|
streamlit/elements/pyplot.py,sha256=C2rLv8gljG5mUBcNQL2EEQskh-ZtNgA_2n_JvSsm7lM,6475
|
85
85
|
streamlit/elements/snow.py,sha256=iP2HHz9Oljf-3s76flzK7C_bU1QdNkOCpYym-LSdQjw,1439
|
86
86
|
streamlit/elements/spinner.py,sha256=sNsqoROhqXbvlvaRJC7eqm15Rcd3kn1wyKefQSFS7Dw,4892
|
87
87
|
streamlit/elements/text.py,sha256=LXYBQZ-IWw-X8h6Jmx3qHjTGe7aXuFTDcTUvBK16DrY,3405
|
88
88
|
streamlit/elements/toast.py,sha256=aHpWN-YwRmaYKSA8DKkYJebo2jWzSlYaIUOpKnnDgQE,3694
|
89
|
-
streamlit/elements/vega_charts.py,sha256=
|
89
|
+
streamlit/elements/vega_charts.py,sha256=XQl3mDPd3EevpQz81btlzjh6tV7X1eC2s84hzCkeVks,80934
|
90
90
|
streamlit/elements/write.py,sha256=yACATf8JN1SJ8sxWIII-H2B-IDQs2qrHPWoRA9bqIKk,22394
|
91
91
|
streamlit/elements/lib/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
92
92
|
streamlit/elements/lib/built_in_chart_utils.py,sha256=pGE51J1FbYBpkffsL4_-llfJt3PKVzsbSiXf3MfL1ro,39398
|
93
93
|
streamlit/elements/lib/color_util.py,sha256=TIIetPQeTqkg1etYbXZvZHe-bs_KFOHJ_yoA6XTTBAM,8977
|
94
94
|
streamlit/elements/lib/column_config_utils.py,sha256=A8zKqaTi-hSvTi4QZbejh_TefCkQU6OI1O5SaO6soWg,16169
|
95
|
-
streamlit/elements/lib/column_types.py,sha256=
|
95
|
+
streamlit/elements/lib/column_types.py,sha256=fw1yYma9GdZBfgeqbJOhQKafMUC0nbYEFvl1yJkAA3g,78395
|
96
96
|
streamlit/elements/lib/dialog.py,sha256=Y9n4J9bSPrAfDG3F4PPqa-5onDwQ3B9TOP8yPMhI_wg,5420
|
97
97
|
streamlit/elements/lib/dicttools.py,sha256=L_WZK_88z_AfVKxRJaSTTD6B3BBr00zZzoxW0FSBX-w,3887
|
98
98
|
streamlit/elements/lib/file_uploader_utils.py,sha256=j_Rqeu1vWJdT_v0JhuMshFIXoiRuYO7DlcFf3ce5Cxg,2426
|
@@ -110,20 +110,20 @@ streamlit/elements/lib/utils.py,sha256=8ZMKep0Gf46DF65s4FU8UgbjjS30-J3DM4ir23pCL
|
|
110
110
|
streamlit/elements/widgets/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
111
111
|
streamlit/elements/widgets/audio_input.py,sha256=pO1pdseP-8UmErfzChYqBIuVgZo7614jiCFHro7gRjg,10457
|
112
112
|
streamlit/elements/widgets/button.py,sha256=GN3B1zJ6VGQ5gRc95sz7H5Ta-liMnjJ2ND6Wtn0gX4g,43201
|
113
|
-
streamlit/elements/widgets/button_group.py,sha256=
|
113
|
+
streamlit/elements/widgets/button_group.py,sha256=zjj_X4iWsYkJPu8dNTM8CNLxthYSVxRMKGvW7twpU3Y,41524
|
114
114
|
streamlit/elements/widgets/camera_input.py,sha256=BbLmdgzsueKvajEyiNxuB1DhSZeYMhmHiYsrjFCcegY,10227
|
115
115
|
streamlit/elements/widgets/chat.py,sha256=RvJ9Bb3nU-rdDgBtmig4vwEPaFNAjOmVDMIU6GGl3Vw,26941
|
116
116
|
streamlit/elements/widgets/checkbox.py,sha256=KBz2QI7lSBSqy8TLpV_NQVc88VmAO6-NuwaZmF8U_c8,13971
|
117
117
|
streamlit/elements/widgets/color_picker.py,sha256=BefKQbF8XzmJm8kUzFLOUhTSoisqZ3f8E45xKkt82d4,9731
|
118
118
|
streamlit/elements/widgets/data_editor.py,sha256=vjKoRZopg0AjX7vmZK2PUczTpHMXOV64-4Z_GVRZ36o,38162
|
119
119
|
streamlit/elements/widgets/file_uploader.py,sha256=FPvYFL764vOV2drdE8v9Ufe42xr2ku4QfhH3gwj22AI,18885
|
120
|
-
streamlit/elements/widgets/multiselect.py,sha256=
|
120
|
+
streamlit/elements/widgets/multiselect.py,sha256=TOgOnGQ9P6c4wJc9BIPAVTZXckuuItnlCBC4P10RQEI,20516
|
121
121
|
streamlit/elements/widgets/number_input.py,sha256=SF8KvnMYnL3yT35r4Gox44YYZGigTxs8dEQCghlx_-k,24991
|
122
122
|
streamlit/elements/widgets/radio.py,sha256=fMXZZP4KHJPIdTfKiO-oGDm5lZGjnt9IwjGH9Z4tN1Q,15778
|
123
123
|
streamlit/elements/widgets/select_slider.py,sha256=pelBe-AjL-S-7x1_ijcV6Fu75b7E3v-u51bg0INP3k4,15767
|
124
|
-
streamlit/elements/widgets/selectbox.py,sha256=
|
124
|
+
streamlit/elements/widgets/selectbox.py,sha256=KQlR_8CoMlbMEg4qadoGX676L7Q6lxCinm8tOVEptVk,22096
|
125
125
|
streamlit/elements/widgets/slider.py,sha256=1OINlByL8bu8WzHBuZHltaFU-Xzwrn02BFQL3V3W9So,36686
|
126
|
-
streamlit/elements/widgets/text_widgets.py,sha256=
|
126
|
+
streamlit/elements/widgets/text_widgets.py,sha256=Pw9sEY6O_kLHaXtPYmCwELjf_2XvOZlnEOji4dwfO8o,26218
|
127
127
|
streamlit/elements/widgets/time_widgets.py,sha256=x4PmFovE3fSBmWMtp9WssDYUGz1Z3U3J3Tvtqbh3TYU,36187
|
128
128
|
streamlit/external/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
129
129
|
streamlit/external/langchain/__init__.py,sha256=0Iqs-M7arkKHfwzhNAEey9V1UK6Bhh2LYyq9rlPBXpc,814
|
@@ -308,7 +308,7 @@ streamlit/proto/openmetrics_data_model_pb2.pyi,sha256=dmABrepaNR5S9kA1UPfQGXqY_A
|
|
308
308
|
streamlit/runtime/__init__.py,sha256=DmWO_2apg01B7DZ2toddxjdVXnAjtn28819TpJlgkbQ,1523
|
309
309
|
streamlit/runtime/app_session.py,sha256=tot9PKzpu6adbtt0fk8Px_Qij5sXJo2uxLYh95_u5UA,47283
|
310
310
|
streamlit/runtime/connection_factory.py,sha256=VGLPo8dlfa5fJT74XXfl4G0GFz3qjZ9uxTVH_mB-gwo,15670
|
311
|
-
streamlit/runtime/context.py,sha256=
|
311
|
+
streamlit/runtime/context.py,sha256=tG0o6UKh1_x1MroRo4CHpox_ySMwX-na_wkbY6yXo7s,15392
|
312
312
|
streamlit/runtime/context_util.py,sha256=14e8xt_0eevyd41CD6y3UVcX4kQk0BFIU5SvBsHrFD8,1702
|
313
313
|
streamlit/runtime/credentials.py,sha256=1yyEc6TJXm4L5WfdIZDn_tZMvk1rMXMRHNajc-LWXJU,11011
|
314
314
|
streamlit/runtime/forward_msg_cache.py,sha256=gbUejY2Ce85QfZL9sCoCz6KurKGrqty1Sq3b_9AhzIU,3684
|
@@ -551,9 +551,9 @@ streamlit/web/server/server_util.py,sha256=NCOxLbtvLVPqDqqwq14aFIdZclBTG3q-el-TP
|
|
551
551
|
streamlit/web/server/stats_request_handler.py,sha256=M1g40mgy78f316gP7_W8I__Q4e9x0NoNjiNLQdH58ds,3848
|
552
552
|
streamlit/web/server/upload_file_request_handler.py,sha256=A-wgVOk6TCxf_KU-lQhawygSBKk5fwrD3Zkrz375Yj4,5269
|
553
553
|
streamlit/web/server/websocket_headers.py,sha256=2OHv6G9hLJ0UX8oHDG3UJ86_KK4SJJD8FXOCsZjCKek,2229
|
554
|
-
streamlit_nightly-1.46.2.
|
555
|
-
streamlit_nightly-1.46.2.
|
556
|
-
streamlit_nightly-1.46.2.
|
557
|
-
streamlit_nightly-1.46.2.
|
558
|
-
streamlit_nightly-1.46.2.
|
559
|
-
streamlit_nightly-1.46.2.
|
554
|
+
streamlit_nightly-1.46.2.dev20250714.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
|
555
|
+
streamlit_nightly-1.46.2.dev20250714.dist-info/METADATA,sha256=nFS6rFO2gvXlFwBV9Rc9rT8Ag_Sowmq8Eg9DsLyH4XU,8973
|
556
|
+
streamlit_nightly-1.46.2.dev20250714.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
557
|
+
streamlit_nightly-1.46.2.dev20250714.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
558
|
+
streamlit_nightly-1.46.2.dev20250714.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
559
|
+
streamlit_nightly-1.46.2.dev20250714.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|