Made a few demos on Twitter:
https://twitter.com/minimaxir/status/1777378034238030255
https://twitter.com/minimaxir/status/1777378037199179840
EDIT: Added image to the header of the notebook.
https://twitter.com/minimaxir/status/1777378034238030255
https://twitter.com/minimaxir/status/1777378037199179840
EDIT: Added image to the header of the notebook.
If you know how to use HTML+CSS and would like to generate full-fledged cards, you could use a package such as html2image [0] to combine the text, the image and a card-template image into one final image. Chrome/Chromium has to be available on Colab Notebooks though, that's the only requirement. Using basic SVG without this package could also do the trick.
I have an idea for a non-Chromium implementation but that’s a rabbit hole.
It depends on Python and Pillow.