[ANSWERED] python – html.Embed or html.Iframe not rendering local pdf in plotly DASH app
Solution 1 : In order to render the file in browser, open and decode the file first, like this: with open('<static/blabla/_pdf_name.pdf', 'rb') as pdf: pdf_data = base64.b64encode(pdf.read()).decode('utf-8') And just add…