Tutorials not running

Hi everyone,

I am learning plotly and dash. Unfortunately i don’t seem to get any app in the tutorial running. For instance this one:

library(plotly)

fig ← plot_ly()

fig ← fig %>% add_trace( … )

fig ← fig %>% layout( … )

library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app ← Dash$new()
app$layout(
htmlDiv(
list(
dccGraph(figure=fig)
)
)
)

app$run_server(debug=TRUE, dev_tools_hot_reload=FALSE)

I keed geting the following error message on the last line:

No ids were found in the layout. Component ids are critical for targeting callbacks in your applicationFire started at 127.0.0.1:8050

Is it a problem with the installation or what am i doing wrong?

Thank you in advance…

Hi @Delice wellcome to Dash.

Tip: use the menu option to share code
image

Please also share a link where you got this example.

Thanks.