Writing here for visibility, copy of https://github.com/plotly/dash-vanguard-report/issues/13
I used to be able to run .js functions by adding them to the
assets folder or by adding the link of external snippets, but this functionality seems to have issues with newer dash versions.
To test whether it was only my issue, I tried running https://github.com/plotly/dash-vanguard-report on a fresh virtual environment and the .js print PDF function works on Dash 0.28, but breaks after running
pip install -U dash dash-renderer dash-html-components dash-core-components
Has the syntax to add .js to dash changed with newer releases? Adding CSS still works fine.