Cells with removed inputs break thebe
Describe the enhancement you'd like
remove-input and remove-cell tags shouldn't completely remove the code at the very least if thebe is enabled. Instead they should set display=none and unset it when thebe is launched.
Does this solve a specific problem?
Technical problem
Setting a remove-input tag on a cell in a document where cells have dependencies results in code that is broken in thebe. This happens because the input is completely removed from the DOM and therefore cannot be accessed by the user.
Conceptual motivation
Most of my courses use computational content as an aside, i.e. I don't teach how to code, rather than using code to illustrate the concepts. https://github.com/executablebooks/jupyter-book/issues/666 (11th in the :+1: ranking across EBP) indicates that this use case is sufficiently common. Because of this setting, majority of my students isn't interested in the code, and I don't want them to be distracted by it. At the same time, a fraction is interested in inspecting how everything works. Thebe is aimed at those student or at the majority, if they are particularly interested in a specific piece of code.
The appropriate approach to this use case is removing all inputs, so that they aren't distracting (I am aware about the possibility to hide inputs, but the "+" buttons aren't exactly inconspicuous). Unfortunately that breaks thebe, according to the description above.
What alternatives exist?
Somehow override the styling of hide-input, so that the button isn't there?
Additional context
No response