Renger van Nieuwkoop
2018-10-10 13:31:48 UTC
Hi
I am running the following dash script. Stopping the server with Ctrl-C in
the console is not working on my windwos 10, Python 3.7.0 machine using
spyder:
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
# external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__)
app.layout = html.Div(children=[
html.H1(children='Example Dash'),
html.Div(children='''
Dash: A web application framework for Python.
'''),
dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name':
'SF'},
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name':
u'Montréal'},
],
'layout': {
'title': 'Dash Data Visualization'
}
}
)
])
if __name__ == '__main__':
app.run_server()
Is there another way to stop the server and rerun the script?
Thanks
Renger
I am running the following dash script. Stopping the server with Ctrl-C in
the console is not working on my windwos 10, Python 3.7.0 machine using
spyder:
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
# external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__)
app.layout = html.Div(children=[
html.H1(children='Example Dash'),
html.Div(children='''
Dash: A web application framework for Python.
'''),
dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name':
'SF'},
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name':
u'Montréal'},
],
'layout': {
'title': 'Dash Data Visualization'
}
}
)
])
if __name__ == '__main__':
app.run_server()
Is there another way to stop the server and rerun the script?
Thanks
Renger
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.