Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't serve components locally when installing from git #92

Open
cpsievert opened this issue Oct 10, 2017 · 0 comments
Open

Can't serve components locally when installing from git #92

cpsievert opened this issue Oct 10, 2017 · 0 comments

Comments

@cpsievert
Copy link
Contributor

pip install git+https://github.com/plotly/dash-core-components.git
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash(csrf_protect = False)

app.scripts.config.serve_locally = True

app.layout = html.Div([
    dcc.Input(id='inputID', value='initial value', type="text"),
    html.Div(id='outputID')
])

@app.callback(
    Output(component_id='outputID', component_property='children'),
    [Input(component_id='inputID', component_property='value')]
)
def update_output_div(input_value):
    return 'You\'ve entered "{}"'.format(input_value)

if __name__ == '__main__':
    app.run_server()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant