Repository navigation
Make it easier to reference models' views - #13351
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 |
bryevdv
left a comment
There was a problem hiding this comment.
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.indexaViewManagerwith a compatibility layer, so thatBokeh.index[id]still works. I also added access to theindextoCustomJScallbacks via a newcontext(orcb_context) argument. Having such context is useful, because it allows users to avoid using globals,Bokehspecifically, 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