-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Make it easier to reference models' views #13351
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
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-3.3 #13351 +/- ##
===========================================
Coverage 92.42% 92.43%
===========================================
Files 316 316
Lines 20209 20218 +9
===========================================
+ Hits 18679 18688 +9
Misses 1530 1530 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice changes, just a few comments.
@mattpap just noting that #13350 was specifically about resetting from Python. I am not sure that's actually attained by this PR? (I think we'd need a new protocol event that could be triggered from Python to invoke the reset on the JS side) Edit: I am not opposed to closing the issue with this PR, but I think we should explain the distinction and change in plans and why this is probably all that is needed, in the issue itself. |
@mattpap as long it's now straightforward to expose |
6cd48e4
to
861972a
Compare
export default ({plot}, _target, _data, {index}) => {
const plot_view = index.get_one(plot)
plot_view.request_render()
} |
Yeah, I so far overlooked the fact that we don't have any sensible programmatic way of running |
I will handle supporting running |
Detects common variations in chromedriver executable's naming (e.g. chromedriver-binary, chromium.chromedriver) and adds BOKEH_CHROMEDRIVER_PATH setting.
861972a
to
550eb5a
Compare
* Redesign Bokeh.index as a ViewManager * Expose additional metadata in CustomJS * Add interaction/js_callbacks/reset_plot example * Update templates, export, etc. to new APIs * More robust handling of chromedriver Detects common variations in chromedriver executable's naming (e.g. chromedriver-binary, chromium.chromedriver) and adds BOKEH_CHROMEDRIVER_PATH setting. * Update unit tests * Add typings for webdriver.chrome.service * Rename meta to context * Finalize implementation of index proxy * Allow to dispose a ViewManager * Allow to construct a Document with roots * Add unit tests * Rename Document.{_add_root->_add_roots} * Improve CustomJS.code's docstring * Improve Settings.chromedriver_path's docstring
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This makes
Bokeh.index
aViewManager
with a compatibility layer, so thatBokeh.index[id]
still works. I also added access to theindex
toCustomJS
callbacks via a newcontext
(orcb_context
) argument. Having such context is useful, because it allows users to avoid using globals,Bokeh
specifically, which either may not be available (e.g. in ESM) or can be confusing when loading multiple instances of Bokeh on a page.Due to issues with testing in my new setup, I had to resolve issue #12625.
TODO:
addresses #13350
fixes #12625