executablebooks / sphinx-thebe

A Sphinx extension to convert static code into interactive code cells with Jupyter, Thebe, and Binder.
https://sphinx-thebe.readthedocs.io/en/latest/
MIT License
28 stars 15 forks source link

Consider implementing a per-page asset inclusion #22

Closed akhmerov closed 2 years ago

akhmerov commented 3 years ago

Since sphinx 3.5 it is possible to include js/css assets only as necessary (sphinx-doc/sphinx#8631). Consider supporting this functionality.

It may, however, be out of scope since the sphinx implementation is based on the nodes that page contains, and sphinx-thebe operates on the level of javascript selectors.

choldgraf commented 3 years ago

I think this is a great idea as long as the implementation is straightforward

choldgraf commented 2 years ago

I think that this one is no-longer needed, since we now lazily load Thebe by default. If there's still demand for per-page inclusion, happy to re-visit this one