Skip to content

st.container horizontal parameter errors despite the python code working perfectly #1866

@1TSnakers

Description

@1TSnakers

Doing:

cont = st.container(horizontal=True)

makes an error:

TypeError: LayoutsMixin.container() got an unexpected keyword argument 'horizontal'
Traceback:
File "streamlit/runtime/scriptrunner/exec_code.py", line 123, in exec_func_with_error_handling
File "streamlit/runtime/scriptrunner/script_runner.py", line 682, in code_to_exec
File "/home/pyodide/app.py", line 1, in <module>
   cont = st.container(horizontal=True)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "streamlit/runtime/metrics_util.py", line 444, in wrapped_func

Despite the python code working perfectly.

if you need an example, check here, this is where it happened:
https://1tsnakers.github.io/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions