diff --git a/python/streamlit.json b/python/streamlit.json index 7059c57e1..a76d6c7c0 100644 --- a/python/streamlit.json +++ b/python/streamlit.json @@ -154932,7 +154932,7 @@ }, "streamlit.code": { "name": "code", - "signature": "st.code(body, language=\"python\", line_numbers=False)", + "signature": "st.code(body, language=\"python\", *, line_numbers=False, wrap_lines=False)", "example": "
\n
\nimport streamlit as st\n\ncode = '''def hello():\n    print("Hello, Streamlit!")'''\nst.code(code, language="python")\n
\n
\n", "description": "

Display a code block with optional syntax highlighting.

\n", "args": [ @@ -154956,9 +154956,17 @@ "name": "line_numbers", "type_name": "bool", "is_optional": false, - "is_kwarg_only": false, + "is_kwarg_only": true, "description": "

An optional boolean indicating whether to show line numbers to the\nleft of the code block. Defaults to False.

\n", "default": "s" + }, + { + "name": "wrap_lines", + "type_name": "bool", + "is_optional": false, + "is_kwarg_only": true, + "description": "

An optional boolean indicating whether to wrap lines. Defaults\nto False.

\n", + "default": "s" } ], "returns": [], @@ -156200,7 +156208,7 @@ }, "streamlit.help": { "name": "help", - "signature": "st.help(obj=)", + "signature": "st.help(obj=)", "example": "
\n

Don't remember how to initialize a dataframe? Try this:

\n
\nimport streamlit as st\nimport pandas\n\nst.help(pandas.DataFrame)\n
\n

Want to quickly check what data type is output by a certain function?\nTry:

\n
\nimport streamlit as st\n\nx = my_poorly_documented_function()\nst.help(x)\n
\n

Want to quickly inspect an object? No sweat:

\n
\nclass Dog:\n  '''A typical dog.'''\n\n  def __init__(self, breed, color):\n    self.breed = breed\n    self.color = color\n\n  def bark(self):\n    return 'Woof!'\n\n\nfido = Dog("poodle", "white")\n\nst.help(fido)\n
\n

And if you're using Magic, you can get help for functions, classes,\nand modules without even typing st.help:

\n
\nimport streamlit as st\nimport pandas\n\n# Get help for Pandas read_csv:\npandas.read_csv\n\n# Get help for Streamlit itself:\nst\n
\n
\n", "description": "

Display help and other information for a given object.

\n

Depending on the type of object that is passed in, this displays the\nobject's name, type, value, signature, docstring, and member variables,\nmethods \u2014 as well as the values/docstring of members and methods.

\n", "args": [ @@ -156729,7 +156737,7 @@ "type_name": "Iterable", "is_optional": false, "is_kwarg_only": false, - "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n", + "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n", "default": null }, { @@ -157279,7 +157287,7 @@ "type_name": "Iterable", "is_optional": false, "is_kwarg_only": false, - "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n

Labels can include markdown as described in the label parameter\nand will be cast to str internally by default.

\n", + "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n

Labels can include markdown as described in the label parameter\nand will be cast to str internally by default.

\n", "default": null }, { @@ -157507,7 +157515,7 @@ "type_name": "Iterable", "is_optional": false, "is_kwarg_only": false, - "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n", + "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n", "default": null }, { @@ -157612,7 +157620,7 @@ "type_name": "Iterable", "is_optional": false, "is_kwarg_only": false, - "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n", + "description": "

Labels for the select options in an Iterable. This can be a\nlist, set, or anything supported by st.dataframe. If\noptions is dataframe-like, the first column will be used. Each\nlabel will be cast to str internally by default.

\n", "default": null }, {