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

What can Schedule do? #119

Closed
rsm5139 opened this issue Apr 25, 2017 · 5 comments
Closed

What can Schedule do? #119

rsm5139 opened this issue Apr 25, 2017 · 5 comments

Comments

@rsm5139
Copy link

rsm5139 commented Apr 25, 2017

Hi, I'm trying to use Schedule, but it doesn't seem to do anything. I had it call a function to create a plot, but that didn't work. Then I tried having it just print('hello'), but still nothing. I would like to add a timer to the app and I figured Schedule would help, but maybe not.

@jwkvam
Copy link
Owner

jwkvam commented Apr 26, 2017

I'm also having difficulty getting it to work. I'm not sure when it broke. I will look into this soon and let you know. Thanks for reporting!

@jwkvam
Copy link
Owner

jwkvam commented Apr 26, 2017

@rsm5139 Could you set debug = False in the Layout constructor and retry?

@jwkvam
Copy link
Owner

jwkvam commented Apr 26, 2017

It also seems I can get the scheduler to work by changing this line in server.py (you can find this usually in ./build/src/) from

    socketio.run(app, host=host, port=port)

to this.

    socketio.run(app, host=host, port=port, use_reloader=False)

I still want to find a better long-term fix but I hope these workarounds will help you in the short-term.

@jwkvam jwkvam added the bug label Apr 26, 2017
@rsm5139
Copy link
Author

rsm5139 commented Apr 26, 2017

I will try that out, thank you.

@rsm5139
Copy link
Author

rsm5139 commented Apr 26, 2017

I tried adding socketio.run(app, host=host, port=port, use_reloader=False) to server.py, and that worked. I can even update plots like this! Let's see if I can somehow use this to make a countdown timer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants