-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Added a callback mechanism for capturing logs and updates during DI execution. Can be extended to other roles too. #1589
base: main
Are you sure you want to change the base?
Conversation
Added gui_updates_callback mechanism, to capture and send updates to a webpage, using websockets.
Added logger message and the gui_updates_callback mechanism.
team.py change contains space tab formatting change. Better retain the original formatting style. and minimize formatting change. Any example of using the gui_callback available? a small example would be great to illustrate how this enriches the frontend experience. |
Sorry about that, David, I'll change back to spaces - let me put up an example of the usage , in a bit. Thanks for pointing that out. |
Replaced tab formatting with spaces - 4.
@davidleon - have fixed the formatting in team.py and added an example inside examples/gui_update_example.py. PLease note that I am actively working on improving the mesagefs and the quality of information communicated to the GUI, so I'll update this code periodically. |
Included logic to use the gui update mechanism from a user program - much better logic, faster updates.
@davidleon - updated the user level example in examples/gui_update_example.py - better updates, better handling of the messages. Do take a look. |
Features
Logs capture and log update mechanism for the DataInterpreter, Role, Team and Env classes, which can get displayed on a webpage using websockets.
Feature Docs
Influence
Result
Other