donkirkby/live-py-plugin

Add LiveFigureDiffer

オープン

#760 opened on 2026/02/18

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (63 件のフォーク)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (302 個のスター)
PR merge metrics
 (PR metrics pending)

説明

We have LiveImageDiffer for comparing images and LiveFigure for displaying Matplotlib figures in live coding mode. Derive LiveFigureDiffer as a subclass, and override create_painters() to create two figures. Make sure it gracefully degrades when Matplotlib is not available.

Make LiveImageDiffer work with LiveImage, and convert them to LivePainter when needed. Add create_figures() method to LiveFigureDiffer to help with type checking.

Another option is to make LiveImageDiffer a generic class that can compare any subtype of LiveImage.

コントリビューターガイド