Skip to content

v3.2.11

Latest

Choose a tag to compare

@pplonski pplonski released this 10 Sep 09:52
· 6 commits to main since this release

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.
    #605
  • mr.Microphone — record and preview browser audio, then access the recording
    directly in Python. #606
  • mr.Examples — populate multiple input widgets from predefined examples with
    a single click and notebook execution.
    #594
  • mr.SplitFlap — animated retro split-flap display for counters, scores, and
    dashboard headlines. #600
  • mr.VUMeter — animated analog meter for utilization, confidence, and
    performance values. #602
  • mr.Teletype — character-by-character terminal-style text output with
    incremental appending. #603
  • mr.StatusLights — compact animated status indicators for services,
    workflows, and monitoring dashboards.
    #604

Chat improvements

  • Fixed Chat clearing 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.Markdown and 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