Get help from the marimo community

Updated 4 months ago

Adjust chat height

At a glance

The community member is trying to style a cell in their Marimo chat application to make the entire chat visible without a scroll bar. They have set the height of the cell to 900px, but this still results in a scroll bar. A comment suggests that there is an "expand" icon on the right-hand side of the cell output that can be used to expand the height of the output to fit the content.

Can I style a cell so that the entire chat is visible?
Plain Text
import marimo as mo
# Define a simple echo model function
def simple_echo_model(messages, config):
    return f"You said: {messages[-1].content}"

# Create the chat UI
mo.ui.chat(
    simple_echo_model,
    prompts=["Hello", "How are you?"],
    show_configuration_controls=True
).style({"height": "900px"})

this works, but I'll still have the scroll bar at the right of the output
Attachment
image.png
M
1 comment
there is an expand icon on the right-hand side of the cell output (below the fullscreen icon), that will expand to the height of the output
Add a reply
Sign up and join the conversation on Discord