Overview
Panel 1.0, released on May 10, 2023, is the first stable release of the interactive dashboard framework. It introduces the chat system and reactive expressions.
Main Features
Chat system
Panel 1.0 includes ready-to-use chat components for building conversational interfaces integrated into dashboards.
python
import panel as pn
pn.extension()
def respond(content, user, instance):
return f'You said: {content}'
chat = pn.chat.ChatInterface(
callback=respond,
placeholder='Type a message...',
)
chat.servable()
Reactive expressions
Reactive expressions (pn.rx) enable creating dynamic interfaces without explicit callbacks, using a declarative model.
python
import panel as pn
pn.extension()
slider = pn.widgets.IntSlider(name='Value', value=5,
start=0, end=100)
# Reactive expression
result = pn.rx(slider) * 2
pn.Column(
slider,
pn.pane.Str(pn.rx('Double: {}').format(result)),
).servable()
