Repository navigation
Mercury 3.2.11 adds seven new widgets for dashboards, interactive examples,
browser media capture, and animated output.
New widgets
mr.Camera— live camera preview with photo capture and short video recording.
Captured media is available as bytes in Python.
#605mr.Microphone— record and preview browser audio, then access the recording
directly in Python. #606mr.Examples— populate multiple input widgets from predefined examples with
a single click and notebook execution.
#594mr.SplitFlap— animated retro split-flap display for counters, scores, and
dashboard headlines. #600mr.VUMeter— animated analog meter for utilization, confidence, and
performance values. #602mr.Teletype— character-by-character terminal-style text output with
incremental appending. #603mr.StatusLights— compact animated status indicators for services,
workflows, and monitoring dashboards.
#604
Chat improvements
- Fixed
Chatclearing existing output during construction. - Improved automatic scrolling for fixed-height and parallel streaming chats.
- Scrolling upward now pauses auto-follow, allowing users to read earlier
messages without being pulled back to the bottom. - Multiple chats no longer compete for the page scrollbar.
Security
- Markdown generated by
mr.Markdownand Markdown chat messages is now
sanitized by default. - Scripts, event handlers, unsafe URLs, and untrusted custom styles are removed.
- Trusted applications can explicitly enable raw HTML with
unsafe_allow_html=True.
Documentation
Added documentation, tests, and showcase notebooks for all new widgets,
including camera capture, microphone recording, stock-price split-flap
displays, and predefined input examples.
pip install --upgrade mercury