Discussion:
[spyder] Ctrl-C with flask server not working
Renger van Nieuwkoop
2018-10-10 13:31:48 UTC
Permalink
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
--
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.
Carlos Córdoba
2018-10-10 13:48:36 UTC
Permalink
Hi,

Thanks a lot for reporting. Please open an issue here

https://github.com/spyder-ide/spyder/issues/

about it.


Thanks,
Carlos
Post by Renger van Nieuwkoop
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
|
# -*- coding: utf-8 -*-
importdash
importdash_core_components asdcc
importdash_html_components ashtml
# 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'
}
}
)
])
        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
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.
Renger van Nieuwkoop
2018-10-11 05:58:23 UTC
Permalink
Hi Carlos
I installed version 4 and this resolved the issue. I don't know how stable
this version is, but will continue to use this version.
Post by Carlos Córdoba
Hi,
Thanks a lot for reporting. Please open an issue here
https://github.com/spyder-ide/spyder/issues/
about it.
Thanks,
Carlos
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
# -*- 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'
}
}
)
])
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
<javascript:>.
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.
Loading...