Questions tagged [plotly-dash]

1

votes
1

answer
640

Views

plotly-dash on iis with flask and wfastcgi

I've configured IIS with python and wfastcgi.py, getting it working, mostly. When trying with simple stuff, it returns the expected content. My issue now is with getting flask and plotly/dash working under IIS, using attribute routing. My web.config is as follows: I've created an index.py file and w...
Kim Ipsen
1

votes
1

answer
248

Views

Is there a datatip class or way to script one in python dash similar to matlabs datatip?

---Update--- 1/27/2018 After looking into it. I have figured that I need to go a little different direction. Python Dash looks like the best option to go but I am still having some problems figuring out how to make the graph dynamic and add annotations to the graph as I click on data points. I w...
Nate
1

votes
2

answer
328

Views

Python Dash Framework Networking

I'm learning Dash library for creating dashboards. I'm in Dash Tutorial - Part 1: App Layout When i run my app.py file in cmd. It shows: Running on http://127.0.0.1:8050/ (Press CTRL+C to quit). Then i can open app in my web brower at the SAME computer using url it give me. But it doesn't work when...
Yehui He
1

votes
0

answer
681

Views

use django template with dash application

I have set-up a dash application that works well with my django website, but I would like to have the dash application on a page that has a template. The setup I have is the usual one, that is : views.py def dispatcher(request): ''' Main function @param request: Request object ''' params = { 'data':...
Boidot
1

votes
0

answer
23

Views

How to connect UI to network libray which is connected to redis?

I have this sever and client('Raspberry pis'). Now I have to read the sever and clients from redis db and get messages and show it in Frontend UI. I am using DASH frame work. How can I achieve application sever and read the live updates enter image description here Something like in this pic and I a...
Anhsirk Krishna
1

votes
0

answer
356

Views

Using a Django url reference inside a plotly/Dash application

I'd like to embedd an dash application in a django website. On my application page I'm setting up a navigation bar in which I'd like to include links to other parts of my website. I've tried the following, but I don't know how to refer the urls from within the dash application html.Nav( html.Ul( [ht...
Boidot
1

votes
0

answer
105

Views

How to increase size of scattergeo plot in dash plot.ly?

I've been learning dash and plot.ly to make some data viz with python. It's been great so far, but one nagging problem is that scattergeo plots don't utilize their space well. I have the scattergeo plot sitting in a width:100% content div and it shares the total width 60/40 with another plot. But t...
Tyler Wood
0

votes
2

answer
790

Views

Saving Dash layout to html

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
DankMasterDan
1

votes
1

answer
732

Views

Flask, Windows, IIS, Plotly-Dash. Error Occured While reading WSGI handler

I'm hoping you can help me with errors that I'm getting with Flask in an attempt to deploy plotly-dash on a Windows server. I've set up Flask using the following guide, verbatim, except the location of my website within the wwwroot folder: Flask on IIS When I use the most basic of apps, it works fin...
roastbeeef
1

votes
0

answer
334

Views

How to take values from the dropdown in Dash?

I have to take the value from the dropdown menu into account. How do I do it? dcc.Dropdown( id = drop, options=[ {'label': 'Earth', 'value': Earth}, {'label': 'Mars', 'value': Mars}, {'label': 'Jupiter', 'value': Jupiter} ], value='NAN' ), dcc.Graph( id='Example Plot', figure= plot_object(value) )
Shreyas Bapat
1

votes
1

answer
622

Views

Cannot return output with multiple inputs with Dash Plotly

I took a look at the Dash Module for python. I am trying to create a dashboard where I could select different values and have the volume of rows associated to the selection. I get this error message volumetrie() missing 1 required positional argument. I couldn't find the problem. The code is fine wh...
Belyas
1

votes
1

answer
422

Views

“Error loading dependencies” when using some dcc elements in corporate IE and Chrome

I get an error message of “Error loading dependencies” in the company installed Internet Explorer 11 and Chrome 51 but not in the up-to-date Chrome that I installed myself. Also, if I open up the developer tools, Internet Explorer works fine. The IE console provides the following error messages...
RagingRoosevelt
1

votes
0

answer
93

Views

Can I have an interactive html5 canvas with dash, plotly

Is it possible to use an interactive html5 canvas with dash? I would like to be able to draw a grid like Conway's game of life. And have it be interactive where I can click on a cell and activate / deactivate it. And be able to set canvas size. Thanks
user2253054
1

votes
0

answer
53

Views

In Dash subplots how do I only increase the height of the very first plot keeping other subplots unchanged?

Because, the height of all the subplots are same. I just want to increase the height of my first subplot only. fig['layout'].update(height=700, width=1300, title='TITLE') The above code gives me the total height and width. But I just want to increase the height of my first subplot plot and leave the...
1

votes
1

answer
1.5k

Views

Run a dash app inside a flask

I want to be able to run my dash app from my flask app when I go to a specific url '/dash'. However I get the following error. 'TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.' flaskapp.py app = Flask(__name__) @ap...
FsimulatorX
1

votes
0

answer
174

Views

Dynamically adding traces to graph with dropdown input

I'm currently working on my first web-application. I recently started following tutorials on python and on some modules. Most of the questions I have I'm able to figure by looking them up, exceptfor this one. I can't figured it out. Goal is as follows: - I'm trying to show a graph with a line-chart...
Sempah
1

votes
0

answer
234

Views

Dynamically adding HTML inputs in Dash framework

I am new to Dash and I am in need of some assistance. I need to create a dynamic number of inputs, but I have no idea how to bind a dynamic number of callback for each slider component. I am only able to create a dynamic number of sliders, but as you can see in the code, I need to hard code the numb...
LearningDash
1

votes
0

answer
584

Views

Python Plotly-Dash app using multiple filters as the input

I have just started learning Python, and I’m currently exploring Dash. I am interested in creating a dashboard that has multi-selection options as the input and creates a bar graph as the output. I am having difficulty with the callbacks recognizing the inputs & summing the data accordingly. I...
Vi00
1

votes
0

answer
234

Views

passing value from 1 page to another in dash plotly

I am trying to pass input value to another with Dash Plot. The main page has a list of strategies : First_page = html.Div([ html.Div([dcc.Dropdown(id='strategy', options=[{'label': i, 'value': i} for i in [strat1, start2]], multi=True)], value = [strat1]), html.Div([dcc.Input(id='date_start', type=...
eleanor
1

votes
1

answer
279

Views

Unable To Plot Graph From PostgreSQL Query Results In Dash App

I am attempting to write a simple code to simply plot a bar graph of some fruit names in the x-axis vs corresponding sales units. The aim of this code is just to understand how to query postgres results from heroku hosted database through a dash app. Below is the code, from dash import dash import d...
moksha
1

votes
1

answer
361

Views

resize plotly figure in dash

I'm trying to resize a plotly graph in Dash made with figure factory. I know how to change the size in the layout of a regular graph.Obj in plotly, but that isn't working with my figure factory graph. The graphing function that i'm trying to resize is: fig_map = ff.create_choropleth(fips=df['x'].tol...
akinnis11
1

votes
0

answer
22

Views

How to acquire the text selected with mouse (highlighted text)?

I would like to show the user a paragraph of text, and then ask the user to select part(s) of text. This text will then be analysed and an output will be shown in another component. How can I achieve this in Dash? This question is similar to this already answered question (Can Shiny recognise text s...
Sainath Adapa
1

votes
3

answer
295

Views

Python/Dash by Plotly: Group cases by date

I got to plot barchart only for total cases of occurences and not group cases by date of occurences with this code: trace1=go.Bar( x=pd.to_datetime(dfb['date']), y=dfb.set_index('date').resample('M')['enrolled'].sum(), ) How to do groupby date? Dataset as below date enrolled 6/29/2018 1 6/29/20...
Miguel Bambo
1

votes
2

answer
416

Views

Python Dash web-app raises Internal Server Error

Trying to deploy a Dash app on a Ubuntu 18.04 server. Any dash app raises an Internal Server Error. Any simple flask app does not. I managed to narrow down the problem by importing dash-core components or dash-html-components in a Flask app script without actually using them. This causes the problem...
Duudsrednaz
1

votes
0

answer
468

Views

Python Dash nested html ul list

I want to create a dash html component to show a nested collapsable tree of a certain depth. I have an html div and I want this to contain a root html.Ul. For each depth I have a labels list and a list of list with the correspondant subtrees, that are the labels for the next depth. html.Ul([ html....
Charles Martin
1

votes
1

answer
31

Views

Best way to get the values from dict or list for 3 different dataframes

So, I have 3 different data frames: all_options = {'free': free, 'paid': paid, 'all': df} What is the best way to iterate over to get the values for each one? I want to make a plot in dash. So when user will click on 'free' data frame it will show him the graph with free items only?
rafael
1

votes
0

answer
224

Views

Conditional formatting in Plotly

This question is about how to do conditional formatting in Plotly. Instances where this might be needed: Scatter plots where points need to be colored (i.e. rainbow) as a function of 2 variable; Interactive charts where the coloring depends on the parameter values; Histograms, where parts of it need...
Sandu Ursu
1

votes
0

answer
60

Views

Lines + Markers not working in Dash Scattergeo Plot

I’ve created a scattergeo plot in Plotly which is rendering fine, including displaying line + markers Plotly screenshot However when i call this graph through Dash I can't get the lines + markers to work - it will only show markers Dash screenshot When I use mode = lines I get lines in Dash, howev...
Caine Osborne
1

votes
1

answer
359

Views

Dash DatePickerRange with csv file

I am doing graph based on my logged (csv file) outdoor and indoor temperatures with Dash. I am trying to get graph working with the DatePickerRager component. Basically what it should do is to edit the graph to show only temperatures in the range based on selected dates. However I can't figure out h...
Kykli
1

votes
0

answer
246

Views

dash app not rendering

I'm making a dash (by plotly) app using python. When I try to run it in the browser, I'm able to get it to run locally but none of my csv data actually renders (I just see the blank axes in the background. The only one i'm interested in is the first one (the ufo map). The others I didn't create the...
bullybear17
1

votes
4

answer
535

Views

Unable to import dash in python

I am unable to run any dash program. I get the error. Dash was not successfully imported. Make sure you don't have a file named 'dash.py' in your current directory. Also to check it out, I tried importing dash from python in terminal, surprisingly I can import dash in terminal where the directory do...
Mukul Sharma
1

votes
1

answer
651

Views

Html dash table

I am trying to use dash to create a html table My dataframe looks like this : Cap non-cap 0 A a 1 B b 2 C c 3 D d 4 E e .. 26 Z z I want to display an html table just like the dataframe, but without the 0 - 26 index. The structure is {'Cap' : ['A', 'B', 'C',....], 'non-Cap'...
Matt-pow
1

votes
0

answer
40

Views

Why doesn't this wind rose update, while line or bar graph is fine?

I'm new to dash dashboards, but have a few things working already and it looks promising. But I'm struggling to get one of my graphs updating with a callback. A similar procedure works for a simple line graph, but wind rose created from this example is problematic https://plot.ly/python/wind-rose-ch...
kakk11
1

votes
2

answer
214

Views

how to make countplot in plotly

I am new to plotly. I am trying to create a countplot in plotly. I am reading a dataframe and here are my columns and values in the dataframe. Name Defect severity User1 Medium User1 Medium User1 High User2 High Here's how I would like the final graph to be shown Can anyone suggest me how...
Prasanna
1

votes
1

answer
327

Views

Dash - Setting nav bar for the dashboard Application

I am building a Dashboard using Python Dash. I am using Materialize.css Framework for css. I want to create a Navigation Bar which the Unordered List must be shown on any devices either Mobile, Desktop. I am referring to this website Extended Nav Bar with Tabs. How do I get the webpage more respons...
Madhi
1

votes
0

answer
42

Views

How to disable and/or change date range for Plot.ly GANTT date quick slectors?

We are rendering a GANTT chart with Plot.ly (via Plotly.py). The GANTT has some buttons along the top to quick-toggle date ranges: How can we: disable the quick date toggles, and/or select specific date interval buttons to be more relevant to our data (such as 1d, 1w)?
7

votes
1

answer
344

Views

Adding form to Dash/Plotly app

Ok, So I want to go one step further. I don't know if it is possible with a dash. I want to create a form ( probably WTForm from Flask ). The form should have date and annotation/comments section. When someone submits a form, it will save to the database. Then dash will read it and show on the graph...
rafael
1

votes
0

answer
92

Views

API defined dataframe (dynamically generated) into Table (Dash_Table_Experiments)

Does anyone know how to dynamically generate a TABLE of data based on the user input using Dash_Table_Experiments (Python code)? This code is static, however, I would like to find a way to make it dynamic. Thus, when a user enters a ticker symbol the TABLE will automatically update with the pertine...
K S
1

votes
0

answer
39

Views

Plotly Dash Server on Heroku fails on Push - bonjour-py==0.3

I am trying to deploy a Dash App (from Plot.ly) using a heroku server. - tutorial used found here: https://dash.plot.ly/deploymentFirst, I signed into my heroku account and created the app: heroku create [app-name] git add . git commit -m 'Initial app boilerplate' Then, when I went to push, this er...
Tim Sauchuk
1

votes
0

answer
211

Views

How to browse to a folder with plotly dash?

I am learning Python Dashboard. I know that there is a Dash core components upload allow to upload a file. What I need is load all of files in a folder. I would like to know how to use a core component to browse to a select folder then read all files in that folder. Thanks in advance.
ThangNguyen

View additional questions