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.

26 Likes

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.