Walking the dog just now, I pondered how repr machinery could feed into extending accessibility. For example, generating simple long_desc descriptions for matplotlib charts displayed through img tags in output cell by “textualising” certain chart attributes - axis names and descriptions, chart type, etc.
The separation of markdown, code and code outputs presumably simplifies accessibility considerations if you work on those structures. (Things like the jupytext formats also provide simpler text representations without the JSON markup.)
I’ve always thought there were two likely ways forward:
- if extensions are developed (and perhaps later backed in) it would probably makes sense to generate outputs directly from the JSON;
- developing an accessible theme or, better, accessible template, could provide a custom UI enhanced for use by screenreaders etc?