Ask coding questions

← Back to all posts
NeilShah1 (4)

Whenever I Collapse A Code Block And Re-Load The Page, It
Un-Collapses, How Do I Fix This?

InvisibleOne (2687)

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 (2687)

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

RowanFromBJC (46)

I don't think you can.