library(dash)
app <- Dash$new()
app$layout(html$div(list(
html$h3("Test hard reloading (when modifying any non-CSS resources)"),
dccInput(id='input'),
html$div(id='output-serverside')
),
id="hot-reload-content"
)
)
app$callback(
output(id = "output-serverside", property = "children"),
params = list(
input(id = "input", property = "value")
),
function(value) {
sprintf("Pre-reloading test output should be %s", value)
}
)
app$run_server(dev_tools_hot_reload=TRUE, dev_tools_hot_reload_interval=0.1, dev_tools_silence_routes_logging=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.