Ctrl-C with flask server not working

375 views
Skip to first unread message

Renger van Nieuwkoop

unread,
Oct 10, 2018, 9:36:34 AM10/10/18
to spyder
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

Carlos Córdoba

unread,
Oct 10, 2018, 9:48:41 AM10/10/18
to spyd...@googlegroups.com
Hi,

Thanks a lot for reporting. Please open an issue here

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

about it.


Thanks,
Carlos

El 10/10/18 a las 08:31, Renger van Nieuwkoop escribió:
--
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 spyd...@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

unread,
Oct 11, 2018, 2:09:34 AM10/11/18
to spyder
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.
Reply all
Reply to author
Forward
0 new messages