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

example.streambook.py does not update automatically when example.py is saved #2

Closed
whoisnnamdi opened this issue Apr 12, 2021 · 4 comments

Comments

@whoisnnamdi
Copy link

After running python -m streambook example.py, example.streambook.py does not auto update, and thus the streamlit app does not update. If I run the command again, the file will update, but example.py doesn't seem to be "watched" for future updates.

I'm on Windows

@srush
Copy link
Owner

srush commented Apr 12, 2021

Hmm, the tool I am using (watchdog) seems to be the issue. I will see if I can get it to work on windows.

If you have any ideas feel free to send a patch.

The code is here, it is really short https://github.com/srush/streambook/blob/main/streambook/__main__.py

@thibthibaut
Copy link

Same for me on MacOS, it doesn't autoupdate on save

@srush
Copy link
Owner

srush commented Apr 12, 2021

Okay apparently the issue is that Mac OS can only monitor the directory (not files). I pushed a fix.

I don't have a mac or windows box to test though. So let me know if the latest works better.

Nelson-Gon added a commit to Nelson-Gon/streambook that referenced this issue Apr 13, 2021
@srush srush closed this as completed Apr 18, 2021
@whoisnnamdi
Copy link
Author

Apologies for the delay! This is working for me now, thanks so much @srush !!

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

No branches or pull requests

3 participants