How to Get your Questions Answered on the Plotly Forum

Your Plotly community members answer a great majority of the questions posted on the forum. However, responders’ time is limited. To greatly increase your chances of getting your post answered, your questions need to be easy to read and easy to reply to . This post will illustrate exactly how to do that.

  • TL;DR: jump to section WHILE POSTING.

BEFORE POSTING:

  1. Often, strange or problematic behaviour has been fixed in the most recent version of dash or of plotly so always ensure you’re using the latest versions if you can. The latest versions are available from PyPI: dash · PyPI and plotly · PyPI

  2. It is very likely that someone has already asked and received an answer to the same question you have. So, before you ask your question, make sure to do a quick search for answers. Use the Plotly Forum to search for answers by typing your question or coding error message inside the “Find” section.

  1. Put yourself in the shoes of the responders. Read a couple of solved questions and try to understand why these questions received an answer. To search for solved posts, use the “Advanced Search” section after searching for a topic.

  1. Read the official documentation and use the documentation’s search features instead of relying on 3rd party sources. We update the documentation frequently and the library is frequently updated. When searching on Google, try searching with: site:dash.plotly.com <your-search-term>.

WHILE POSTING:


1. Be Clear:


  • Explain what your problem is and what you are trying to solve in clear, concise, and simple English.

  • Share the exact wording of your error message and what line of code produced it.

  • Include the version numbers and your operating system. For example,

    Plotly version 4.8.0, Dash version 1.12.0, Windows operating system.

    You can find these versions by doing: print(dash.__version__), print(dcc.__version__), print(html.__version__), print(dash_table.__version__), print(plotly.__version__)

  • Check your version against the latest versions announced in this forum or in the CHANGELOG. If you are on an older version, try upgrading.

  • Share a screenshot of your plot if that helps convey the error.

  • Before posting your code, use a formatting tool to improve readability (https://black.vercel.app/)

  • Always put your code inside Preformatted text. It is very unclear and extremely time-consuming to read code that is not preformatted.


2. Be Minimal:


  • Ask one question per post.

  • Include simplified, short code by taking out everything that is not related to the problem. Either

    1. Restart from scratch. Create a new program, adding in only what is needed to see the problem. Use simple, descriptive names for functions and variables – don’t copy the names you’re using in your existing code.

    2. Divide and conquer. If you’re not sure what the source of the problem is, create a copy of your project and then start removing code a bit at a time until the problem disappears – then add the last part back.

    Most of the time it’s easier and more informative to start from scratch in order to find the root of the issue. Many times you will end up solving your own issue by going through this process. (Trust us, we’ve been there!). The more code there is to go through, the less likely people can find your problem.

  • Use dummy data. Many responders are familiar with plotly express dummy datasets, such as px.data.gapminder() and px.data.tips(). View the full list of dummy datasets.

  • Or create your own synthetic data. For example,

    y = [‘purple’, ’red’, ’yellow’]
    x = [‘grape’, ’wine’, ’banana’]
    
  • Or create a subset of your data, using head().


3. Be Reproducible:


  • Add all the packages/libraries that are needed inside the code.

  • Don’t forget to add the data when necessary.

  • Test your code to make sure that it can be run by others. When a potential responder copies and pastes your code into their console, they should get the exact same error you got.

AFTER POSTING:

  1. Wait! Give the community a day or two to answer your post.

  2. If you did not get a reply to your post after waiting, try to update your question so it is coherent and saves more time for potential responders:

    • Ensure your post is Clear, Minimal, Reproducible.

    • Reframe your post’s title if necessary.

    • Try to clarify your question.

    • Provide an update on things you have implemented to try to solve the problem since your original post.

  3. If you found the solution to your question, make sure to reply to your own post, so the Plotly community can learn from you.

  4. If the proposed solution of the community did not work, do not just say “it didn’t work”. Include the new error message that you get and post your updated code.

  5. Accept the answer by clicking on the checkbox if you found a solution. This helps others recognize that the problem was “solved”.

  6. Pay it forward! Help others with their questions.

Additional Resources:

27 Likes
The callback... is a multi-output. Expected the output type to be a list or tuple but got:
Rendering HTML similar to Markdown
Scroll jump in MS Edge when clicking Tab
Can you set the height and width of the plot face, not just the overall figure?
3D Scatter Plot
Stacked barchart from pivot table
Data disappearing when navigating in tabs - need to click on an input - Datatable
How to save and display dynamic user inputs based on another dynamic input
Cant update figure layout on callback
Callback output for tabs error
DataTable Incorrectly Displayed at Left and Right Edge and Distort after update columns
How to hide cities names
Graph objects fig.data.y update does not work as expected for the gantt charts
Questions about cards dynamic callbacks
How to plot different lines using formulas on the same graph with Dash
Live update dash_table
Using Transitions in Plotly Dash App
How can I make this callback in a multiple layout dashboard?
Non-responsive scatter/bar plots to the Callback function
Justify Column Centering Not Working
How to save and access multiple data frames from dcc.Store in plotly dash
Filter selection only stays selected for 1 second, something then re-selects all filters
Failed call back
Newbie here! Need help with visualizing 3D Scatter Plot
Storing a DataFrame in dcc.Store
NavBar with Call back dont work, page navigation problems, chart rendering problems.. web3?
Dash Table (Passing variables to another callback, download data, and additional rows)
Create pie chart error
Can Dash chained callback inputs be a file or filename?
Hovertemplate Greys-Out Text When There is a Line Break
Markdown choose which styling
Upload a dataset (csv/excel) and return as filterable/sortable table in python dash
Enabling tabs to hold its state with button clicks
Download multiple plots using 1 single download button in dash
Trying to output a sum of a column of a table where sum changes with user filtering
How to create many pages from different datasets without a separate py file for each dataset?
Button n_clicks resets after click / callback is triggered multiple times within a few seconds
Button n_clicks resets after click / callback is triggered multiple times within a few seconds
Dash Data Table not displayed on full page
How can I output a table, that I see in the terminal?
Can I replace values with TEXT ICONS in dbc.Card
I am getting array of objects. How can i optimize my bar charts?
Modal button not giving output
Dropdown doesn't want to update
How to create tooltip for a multiindex dataframe?
Issue with 'Nonexistent objects in an 'Input' of a Dash callback'
Initial load in dash multipage
Cytoscape disappears when changing tabs
Help with displaying data in data table
How to connect a dropdown menu with a callback to select a column for sum in Dash?
Dcc.Store giving me a SchemaTypeValidationError
Impossible to select another row in Dash Data Table when view is changed
Color Bar on Choropleth Map not Updating
Dcc Upload Component, use dataframe in other pages
Probelm in mouse over dcc.Graph
Context Menu on Cytoscape
Unwanted extra lines in bar chart and weird totals on Hover
Grouped Slider BarHistogram
Select the same menu item multiple time
Callback not working for pie chart?
Can I make a dash table input into a callback?
Httpe error 404 pytube problem
Show dash_table on the new page

Thanks to @adamschroeder for this great post. It has lots of helpful tips and I think it should be re-posted regularly for people new to the forum :slight_smile:

6 Likes

Hi, sorry for bothering, if you can just tell me how to post a question on this forum?
Thanks!

Hi @trader007

I’m happy to help! I see that you just posted a question, so I’ll answer just this for the next person who has the same question.

Once you are signed in, you will see:

Click on the + New Topic button on the right hand side and it will bring up a new screen to make your post:

image

2 Likes

Thanks, AnnMarieW!

1 Like

It’s really beneficial piece of advice I am committed to making it a part of raising questions culture in plotly dash community
Thanks @adamschroeder
With best regards

1 Like

Thanks Adam. Appreciate for putting the information for easier to follow

Hey everyone,
Just closed this topic since it was created for the purpose of being a resource and less for the purpose of ongoing discussion.
If you have any questions, please feel free to open a new Topic.