plotly-dash

Generate plotly DataTable from SQL query

纵饮孤独 提交于 2020-02-25 05:30:30
问题 i quite new to dash and python, i am currently trying to have a callback for my datatable which retrieves from the SQL on my computer. However, i am not able to do so. Any idea why? I got this error: columns = [{'num': i, 'id': i} for i in data.columns],data=[] NameError: name 'data' is not defined import pandas as pd import dash import dash_table from dash.dependencies import Output, Input import dash_core_components as dcc import dash_html_components as html from random import random import

Dash traceback not leading to any line in my code

五迷三道 提交于 2020-01-25 06:39:07
问题 I am working on my first Dash app. I am getting the following error: "Cannot set a frame with no defined index " The issue is that the traceback doesn’t lead to any line in my code. It only goes through installed libraries: Traceback (most recent call last): File "C:\Users\LIAG8802\Documents\Procurement_analytics\venv\lib\site-packages\pandas\core\frame.py", line 3540, in _ensure_valid_index value = Series(value) File "C:\Users\LIAG8802\Documents\Procurement_analytics\venv\lib\site-packages

Launch a Dash app in a Google Colab Notebook

安稳与你 提交于 2020-01-22 12:34:05
问题 How to launch a Dash app (http://dash.plot.ly) from Google Colab (https://colab.research.google.com)? 回答1: To my knowledge there is currently no straightforward way to do this. Find below a workaround that is similar to setting up Tensorboard (https://www.dlology.com/blog/quick-guide-to-run-tensorboard-in-google-colab/). Start with a code cell that sets up all things required for this workaround: # How to run a Dash app in Google Colab ## Requirements ### Install ngrok !wget https://bin

Can’t correctly deploy Dash 1.4.0 to CentOS Apache server, webpage stays in uploading state, why?

扶醉桌前 提交于 2020-01-14 04:55:50
问题 I create the following small app with Dash 1.4.0 and Flask 1.0.2, please find it below. I was able to deploy it to Centos Apache server, it starts but the only stuff I get is a loading page, in browser console I see that some components are absent, please see printscreen (I deleted ip of my server in the picture), what should I do to solve the issue? It works in my PC with no problems Console in Chrome browser: WebApp Code: from libs.initsetup import InitSetup import libs.dbops as dbops

How to format and print Dash dashboard to PDF?

旧街凉风 提交于 2020-01-14 03:38:21
问题 I've just created a dashboard in Dash, which fits automatically to my computer monitor and looks half decent. I now have the problem that I have to produce a way to print to PDF. I've seen the Vanguard example which uses external CSS to format into an A4-size, and then a print button (using external javascript?). Is there a more 'Dash-native' way of doing this that doesn't require me to learn another programming language (I only know Python)? There doesn't seem to be anything on the Dash User

Saving Dash layout to html

拥有回忆 提交于 2020-01-11 04:21:08
问题 I plotted a bunch of things in a dash layout. I want to save them to an html file so I can look at them later. when I reopen the saved html file, I first see everything correctly. However, within <1s, the page goes blank and I get an error: “Error loading layout”. (see gif below) How can this be fixed? Thanks! 回答1: This solution is not fully working: You have to save your Webpage complete. To prevent the javascript creating any errors i have removed the bundle(2).js file. This file contains

PyInstaller FrozenImporter has no attribute filename

不羁的心 提交于 2020-01-06 14:00:59
问题 I found this question having a quite similar issue, despite using a different library. When I try to run my .exe, build using PyInstaller 3.4 I am getting this error, which I'm unable to solve: Traceback (most recent call last): File "Clustering_Dash_0_7_igraphimplementation.py", line 622, in <module> File "site-packages\dash\dash.py", line 1385, in run_server File "site-packages\dash\dash.py", line 1279, in enable_dev_tools File "site-packages\dash\dash.py", line 1277, in <listcomp>

PyInstaller FrozenImporter has no attribute filename

╄→尐↘猪︶ㄣ 提交于 2020-01-06 13:58:58
问题 I found this question having a quite similar issue, despite using a different library. When I try to run my .exe, build using PyInstaller 3.4 I am getting this error, which I'm unable to solve: Traceback (most recent call last): File "Clustering_Dash_0_7_igraphimplementation.py", line 622, in <module> File "site-packages\dash\dash.py", line 1385, in run_server File "site-packages\dash\dash.py", line 1279, in enable_dev_tools File "site-packages\dash\dash.py", line 1277, in <listcomp>

unable to show graph when dropdown list is cleared in Dash plotly

孤人 提交于 2020-01-06 04:32:16
问题 I built a dash app to show scatter plot of total_bill vs tip from tips dataset. I have a dropdown menu that allows multiple selection of days, so that I can color the scatter plot by those selected days . What I need is when nothing is selected from dropdown, the scatter plot is colored by all days. When one or multiple days are selected through dropdown, the scatter plot is colored just by those selected days. My app code is below. The issue is when I clear the dropdown, the graph also

unable to show graph when dropdown list is cleared in Dash plotly

被刻印的时光 ゝ 提交于 2020-01-06 04:32:02
问题 I built a dash app to show scatter plot of total_bill vs tip from tips dataset. I have a dropdown menu that allows multiple selection of days, so that I can color the scatter plot by those selected days . What I need is when nothing is selected from dropdown, the scatter plot is colored by all days. When one or multiple days are selected through dropdown, the scatter plot is colored just by those selected days. My app code is below. The issue is when I clear the dropdown, the graph also