Hello, hoping someone can take a look at my code? I added in the layout and dcc.graph component for the graph to appear using the web browser. What I am missing? I have tried several times and at this point I’d like to at least get something running in the app.
Specifically, I am getting this error :
File “heatmapRNASeqdashv3.py”, line 23
if name == ‘main’:
^
SyntaxError: invalid syntax
-------code starts below
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.graph_objs as go
import plotly.offline as py
That gives a syntax error:
SyntaxError: invalid syntax
Any other thoughts? It is a basic project to just make a static heatmap interactive and run it in the dash app using the browser. I don’t know what is missing. My github page is publuc if anyone else will take a look or write their own code for this. I will appreciate the help.
The original code probably had this right. When code is not wrapped in a code block, the underscores are interpreted as strong style formatting (hence why those keywords appear as bold).
One reason why all code snippets posted here should be formatted as code blocks
thank you for the help. I have to look closely at the parenthesis missing but the code finally works now. How to get this to work in a web browser and not in the localserver?