Adjust chat height

Can I style a cell so that the entire chat is visible?
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"})
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
No description
Solution:
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
Jump to solution
1 Reply
Solution
Myles Scolnick
Myles Scolnick2mo ago
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