Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convention to support alt text in notebooks #98

Open
ryanlovett opened this issue Jul 18, 2022 · 2 comments
Open

Convention to support alt text in notebooks #98

ryanlovett opened this issue Jul 18, 2022 · 2 comments
Labels
area: standards 📄 Accessibility standards type: question 🤔 Further information is requested

Comments

@ryanlovett
Copy link

I’ve tried using jupyter-book and quarto to produce html/book output from a series of notebooks and was wondering how to add alt text for output cells with figures. nbconvert supports generating alt tags when alt is in the cell metadata. Should other apps adopt the same approach? Does there need to be more formal guidelines around this?

I was thinking of filing issues with jupyter-book/sphinx and quarto to ask that they support the same, but I don’t know if this one method should be adopted by all.

Link to discourse thread: https://discourse.jupyter.org/t/convention-to-support-alt-text/14936

@ryanlovett
Copy link
Author

Re: (from @trallard on discourse)

IMHO - the best approach would be to have the alt-text within the cell metadata and would align nicely with what nbconvert does already in case anyone is using both (nbconvert + jupyter book).

Some followup questions:

Since this would be a convention and not part of the notebook format itself, how would notebook-consuming tools like jupyter-book and quarto know that they could/should do something with it? Where could it be documented?

If it was put in the metadata.jupyter namespace, does that help the community become more aware of it? Could it be documented in the "Output metadata" section of the "Notebook file format" doc?

@trallard trallard added type: question 🤔 Further information is requested area: standards 📄 Accessibility standards labels Jul 19, 2022
@isabela-pf
Copy link
Contributor

For some history, here's a related issue at #37. It was closed by a change at the IPython level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: standards 📄 Accessibility standards type: question 🤔 Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants