donkirkby/live-py-plugin

Add LiveFigureDiffer

Ouverte

#760 ouverte le 18 févr. 2026

 (0 commentaire) (0 réaction) (0 personne assignée)Python (63 forks)auto 404
enhancementhelp wanted

Métriques du dépôt

Stars
 (302 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur