Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! ✅Check out the new docs.

Reloading CSS automatically


Is there a way to reload CSS automatically after restart? If old css is found then Dash doesn’t reload it so I have to clear cookies every time.

Related code:

app.css.config.serve_locally = True
app.scripts.config.serve_locally = True

def static_file(path):
static_folder = os.path.join(os.getcwd(), ‘static’)
return send_from_directory(static_folder, path)


Keep your browser’s dev tools open and make sure the “clear cache” checkbox is clicked:

1 Like

Thanks!!! :smiley: