Streamlit Local Server always loads up the same old script


I wrote a script the other day and have been depolying it as below in python.

streamlit run --server.port 5998

For some reason, no matter what I do, it always loads up an old versin of the script, even if I dont have it open…

Is there a way to ‘kill’ everything so i can run my script fresh.


The obvious thing to triple-check is that contains what you expect it to. On a mac or linux machine, you could do cat (on Windows it would probably be type and make sure it contains the code you expect.

If that is the case, you might try deleting any .pyc files in that folder, though I don’t actually think that would matter.