Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Install Matplotlib as optional extra? #100

@hugovk

Description

@hugovk

Thank you for the social card previews (#88), they look really good!

(I would like to generate them for the CPython docs (https://docs.python.org/), but need to check some things first, e.g. how it works with translations, how to omit them from archives/non-web builds, check our deploy process works with ~500 images and 41 MB.)

We're already using this extension for OG metadata and it's working well.

Unfortunately, the new Matplotlib dependency broke our CI yesterday because we run doctests against the CPython 3.12 development branch, and unsurprisingly the NumPy dependency isn't yet compatible (for example: numpy.txt, which begins with RuntimeWarning: NumPy 1.24.2 may not yet support Python 3.12).

So in the meantime we have to pin to the earlier 0.7.5 release (python/cpython#101642).

Would it be possible to have Matplotlib installable as an optional extra? Even when using Python < 3.12, it's a pretty heavy dependency to install if you don't need it.

Docs:

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions