In this case I think it is probably not possible (or very difficult) because plotly is not pure python and does not have a p4a recipe See https://github.com/plotly/plotly.py
where it says "Built on top of plotly.js,"
Similarity Dash is written in Python, R, and Julia. Same issue.