Skip to content

Commit bcc35a8

Browse files
finalize visualizations
1 parent 54365b4 commit bcc35a8

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ split = Split(
4646
sizes=(50, 50), # Equal sizing initially
4747
min_size=150, # Minimum 150px for each panel
4848
show_buttons=True, # Show collapse/expand buttons on the divider
49-
width=500
49+
sizing_mode="stretch_both",
5050
)
5151

5252
split.servable()
@@ -82,7 +82,8 @@ split = HSplit(
8282
right_panel,
8383
sizes=(70, 30), # 70% left, 30% right
8484
min_size=300, # Minimum 300px for each panel
85-
width=800
85+
sizing_mode="stretch_width",
86+
height=250,
8687
)
8788

8889
split.servable()
@@ -162,7 +163,8 @@ multi = MultiSplit(
162163
pn.pane.Markdown("## Panel 3"),
163164
sizes=(30, 40, 30), # Three panels with custom sizing
164165
min_size=100, # Minimum 100px for each panel
165-
orientation="horizontal"
166+
orientation="horizontal",
167+
sizing_mode="stretch_both",
166168
)
167169

168170
multi.servable()
@@ -225,16 +227,18 @@ from panel_splitjs import Split
225227

226228
pn.extension()
227229

228-
chat = pn.chat.ChatInterface()
229-
output = pn.Column("# Output Area")
230+
with pn.config.set(sizing_mode="stretch_width"):
231+
chat = pn.chat.ChatInterface(margin=(5,25,5,5))
232+
output = pn.Column("# Output Area")
230233

231234
split = Split(
232235
chat,
233236
output,
234237
collapsed=None, # Both panels visible
235238
expanded_sizes=(50, 50),
236239
show_buttons=True,
237-
min_size=(300, 300) # Minimum 300px for each panel
240+
min_size=(600, 300), # Minimum 300px for each panel
241+
sizing_mode="stretch_both",
238242
)
239243

240244
split.servable()

0 commit comments

Comments
 (0)