We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trusted outputframes should be able to send and receive messages with other trusted outputframes.
This is to allow widgets in one outputframe to affect the visualization in another one.
The text was updated successfully, but these errors were encountered:
The code would look something like:
// A callback invoked from other cells. google.colab.registerListener('cell1', (id, data) => { // do something with data. });
Then that method in one output would be able to be invoked from another cell's output:
google.colab.sendMessageToListeners('cell1', { text: 'hello world!' });
Sorry, something went wrong.
A better approach for this is to use the browser's BroadcastChannel to communicate between frames.
An example can be found at https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=8VlhVnsL-eKX
No branches or pull requests
Trusted outputframes should be able to send and receive messages with other trusted outputframes.
This is to allow widgets in one outputframe to affect the visualization in another one.
The text was updated successfully, but these errors were encountered: