accessing messages from outside the handler and bookkeeping of custom messages #384
Unanswered
internet-memme
asked this question in
JavaScript
Replies: 1 comment
-
Can you please provide a minimal reproducible example? You can use the example from the documentation as a starting point. There is not context here to what This doesn't seem to be an issue with anywidget, but rather a question about eventful programming in JavaScript. I am moving to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to receive a message from python in js.
I followed the example on https://anywidget.dev/en/jupyter-widgets-the-good-parts/ regarding custom messages.
"this" refers to a message handler wrote for the javascript side.
In my little text example I run send() on a button click and then echo the message.
This is what gets printed to the console on the first run
on subsequent runs the number of "msg custom" lines increases
How can I access the message outside of the msg handler and why do the messages pile up. Do I need to clear some queue?
Beta Was this translation helpful? Give feedback.
All reactions