Any way to prevent commented-out code (via triple quotes) to be displayed in Streamlit?

This is a rant of mine, which I’ll spare you (at least to another time).

Most text editors let you select the lines in bulk, then use a shortcut (for example, CTRL + / in VS Code) to place a # in front of the code to make it a proper comment. I would suggest that is a much better alternative.

3 Likes