import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output

interactive=dash.Dash()

interactive.layout=html.Div([
    dcc.Input(id='my-id',value='initial value',type='text'),
    html.Div(id='my-div')
])

@interactive.callback(
    Output(component_id='my-div',component_property='children'),
    [Input(component_id='my-id',component_property='value')]
)

def update_output_div(input_value):
    return 'You have entered "{}"'.format(input_value)

if __name__ =='__main__':
    interactive.run_server()