You have to add a folder named assets
to your project. In that folder you can put in external files such as javascript or css files.
Your project structure could look like this:
- app.py
- assets/
|- some-js-file.js
|- some-css-file.css
|- etc....
For more info you could look at this official guide page:
And here the realease of clientside callbacks: