Category : plotly-dash

I have a dash application that I deployed to AWS Elastic Beanstalk. However, for some reason it’s throwing the following js error and I am unable to run the application. <script src="/_dash-component-suites/dash_core_components/dash_core_components-shared.v1_14_1m1609827723.js"></script> <script src="/_dash-component-suites/dash_renderer/dash_renderer.v1_8_3m1609827723.min.js"></script> <script id="_dash-renderer" type="application/javascript">var renderer = new DashRenderer();</script> The issue seems to stem from one of the dash js script that’s being ..

Read more

I created a flask app that is integrated into Dash. For the flask app, I want to return the response and layout. To achieve this I tried in this way return Response(response=flask_logger(), status = render_template(‘index.html’),mimetype="text/plain", content_type="text/event-stream") surprisingly it only works on few pcs. On all other pcs it give me this error crbug/1173575, non-JS module ..

Read more

I’m trying to download a dynamically generated json file with the html.A element in Dash using the following code: download_json_link = html.A( ‘Download JSON’, id=’download-json’, download=’download.json’, href=”, target="_blank", ) dir_path = os.path.dirname(__file__) filepath_json = "/downloads/barcode.json" filename_json = dir_path + filepath_json f = open(filename_json, "a") f.write(str_json) f.close() @app.server.route(‘/downloads/<path:path>’) def serve_static(path): root_dir = os.getcwd() return flask.send_from_directory( os.path.join(root_dir, ..

Read more