Collapse
Whenever I Collapse A Code Block And Re-Load The Page, It
Un-Collapses, How Do I Fix This?
Voters
RowanFromBJC (46)
I don't think you can.
Ask coding questions
Whenever I Collapse A Code Block And Re-Load The Page, It
Un-Collapses, How Do I Fix This?
I don't think you can.
Save whether that block is collapsed or uncollapsed, then when you first load the page, check if it should be collapsed or uncollapsed and then collapse or uncollapse it.
@InvisibleOne How do I save?
in python? It depends on how complicated you want to be. You can easily save by storing text in a text file, using replit db, or if you can use some other database like MongoDB (maybe NoSQL or MySQL but I've never used them with python) @NeilShah1