You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dash for R API does not currently allow user-defined routes #131
Dash for R currently lacks this functionality, so Dash for Python code like this:
@app.callback(Output('my-link', 'href'), [Input('my-dropdown', 'value')])
def update_link(value):
return '/dash/urlToDownload?value={}'.format(value)
@app.server.route('/dash/urlToDownload')
def download_csv():
value = flask.request.args.get('value')
# create a dynamic csv or file here using `StringIO`
# (instead of writing to the file system)
strIO = StringIO.StringIO()
strIO.write('You have selected {}'.format(value))
strIO.seek(0)
return send_file(strIO,
mimetype='text/csv',
attachment_filename='downloadFile.csv',
as_attachment=True)
currently has no direct counterpart on the R side. We should expose the ability for application developers to define new routes within the Dash for R API. One possible option is through the use of fiery plugins. e.g. a server_route method could be added which exposes the ability to add plugins with new route handlers:
changed the title [-]Dash for R API does not currently allow used-defined routes[/-][+]Dash for R API does not currently allow user-defined routes[/+]on Sep 24, 2019
Activity
[-]Dash for R API does not currently allow used-defined routes[/-][+]Dash for R API does not currently allow user-defined routes[/+]10 remaining items
rpkyle commentedon Aug 28, 2020
Closed by #225.