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

JS document callbacks and disconnect event #12370

Merged
merged 8 commits into from
Feb 20, 2023

Conversation

mattpap
Copy link
Contributor

@mattpap mattpap commented Sep 11, 2022

@mattpap mattpap added this to the 3.0 milestone Sep 11, 2022
examples/howto/js_events.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 11, 2022

Codecov Report

Merging #12370 (2c10df4) into branch-3.1 (7ecb5d3) will increase coverage by 0.00%.
The diff coverage is 97.50%.

@@             Coverage Diff             @@
##           branch-3.1   #12370   +/-   ##
===========================================
  Coverage       92.32%   92.33%           
===========================================
  Files             314      314           
  Lines           19797    19831   +34     
===========================================
+ Hits            18277    18310   +33     
- Misses           1520     1521    +1     

@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch 3 times, most recently from 59de962 to b7875d4 Compare September 18, 2022 19:56
@mattpap mattpap modified the milestones: 3.0, 3.1 Sep 28, 2022
@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch 2 times, most recently from 87034fc to 276203f Compare September 30, 2022 09:18
@mattpap mattpap changed the base branch from branch-3.0 to branch-3.1 November 2, 2022 18:41
@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch from 276203f to 4662b53 Compare November 8, 2022 08:06
@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch from 4662b53 to de5e846 Compare January 6, 2023 00:37
@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch from de5e846 to a77406d Compare February 7, 2023 17:01
@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch from 289dbcd to 3e5f673 Compare February 11, 2023 19:40
@bryevdv
Copy link
Member

bryevdv commented Feb 11, 2023

@mattpap I would suggest adding and new subsection and example code snippet here:

https://docs.bokeh.org/en/latest/docs/user_guide/interaction/js_callbacks.html#examples

It doesn't have to be a complete example (just a code block will do) since it is for apps which won't "work" on the docs, but the goal is to have a defined URL that we can point users to for discussion about this important feature.

@mattpap mattpap force-pushed the mattpap/11328_disconnect_event branch from 3e5f673 to 2c10df4 Compare February 19, 2023 14:09
@mattpap mattpap merged commit aa5b66c into branch-3.1 Feb 20, 2023
@mattpap mattpap deleted the mattpap/11328_disconnect_event branch February 20, 2023 09:01
Chiemezuo pushed a commit to Chiemezuo/bokeh that referenced this pull request Aug 27, 2024
* JS document callbacks and disconnect event

* Improve Document.on_event() API in JS

* Redesign handling of connection events

* Move doc_js_events under interaction/js_callbacks

* Make show()/save() respect curdoc's JS callbacks

* Make examples' tests work

* Add Document.js_on_event() to match Model's API

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

Successfully merging this pull request may close these issues.

[FEATURE] Add JS event on Websocket disconnect Hook for callback upon document init
2 participants