Skip to content

Instantly share code, notes, and snippets.

@codepatel
codepatel / dashboard_sharing.py
Last active September 28, 2020 15:34
Sharing and collaborating on useful Dashboard apps with the URL of a web application
@app.callback([Output('ticker-input', 'value'),
Output('analysis-mode', 'value'),
Output('snapshot-uuid', 'value'),
Output('handler-parseURL', 'data')],
[Input('nav-dcf', 'active'),
Input('url', 'pathname')])
def parse_ticker(dcf_app_active, pathname):
if dcf_app_active:
parse_ticker = pathname.split('/apps/dcf')[-1].split('/')
if len(parse_ticker) == 1: