lab-cosmo / chemiscope

An interactive structure/property explorer for materials and molecules
http://chemiscope.org
BSD 3-Clause "New" or "Revised" License
131 stars 32 forks source link

Display a warning when using chemiscope.show inside a sphinx-gallery example #294

Closed ceriottm closed 1 year ago

ceriottm commented 1 year ago

chemiscope.show() won't crash when processed by sphinx-gallery, just issue a warning.

Also, returns an HTML error message to be displayed e.g. by sphinx-gallery

A stop-gap solution to allow including chemiscope in example noteboox while we see how to implement #276

ceriottm commented 1 year ago

@Luthaf if you agree to merge this, can you also make a release so we can start incorporating chemiscopes into the software-cookbook?

Luthaf commented 1 year ago

I think we should solve #292 before we can do a release. I'll comment over there as well