Comments (4)
I've found a workaround:
BokehModel(column(p1,p2))
Is it the only possible way to solve it?
from jupyter_bokeh.
Putting the plots together in a Bokeh layout was going to be my only suggestion. "Being in a document together" is the foundational definition that is essentially identical with "being able to share pieces together". But each BokehModel
creates a new document for all the models it ends up containing. So, if you want to share pieces between different plots, those plots need to be configured on the same BokehModel
, so that they are both in the same Document
.
from jupyter_bokeh.
I see. Maybe there's an alternative way of linking the plot ranges on the js level without sharing the Range object between the plots? Or it will hit the same limitation?
from jupyter_bokeh.
Maybe there's an alternative way of linking the plot ranges on the js level without sharing the Range object between the plots?
You can always link manually, by setting up event listeners and updating related plots, but that defies the point of using bokeh (well, partially at least). This is a current limitation that each embedded model constructs its own document, and, by design, there is no sharing between models belonging to different documents. However, I don't see any technical reason not to lift this limitation. Before that happens, your options are either to link manually or to use bokeh's layouts and wrap a whole layout as a BokehModel
(as you already found out).
from jupyter_bokeh.
Related Issues (20)
- RadioButton fires duplicate events on click HOT 3
- Displaying same figure with show and BokehModel
- stretch width + ipywidgets
- 'Models must be owned by only a single document' issue HOT 2
- Does not work with the latest version of ipywidgets HOT 5
- Push_notebook function not working in JupyterLab HOT 2
- 'NoneType' object has no attribute 'lookup'
- Change request for BokehModel initialization: call to standalone_docs_json_and_render_items error HOT 9
- Issue installing jupyter_bokeh in VSCode HOT 6
- Update `trigger_json_event` for Bokeh 3 HOT 1
- Wheel fails to build in Windows when user name is too long HOT 1
- 'Document' object has no attribute 'apply_json_event' (jupyter_bokeh/widgets.py:135) HOT 4
- whould it be possible to have wheels again in the pypi download ? HOT 2
- Error while running notebooks in VS Code HOT 3
- Old version of jupyter-bokeh will be installed if jupyterlab>=4 is installed HOT 6
- Where is jupyter_bokeh 4.0.0? HOT 4
- Concerning browser warnings with JupyterLab 3.6.7 and jupyter_bokeh 3.0.7 HOT 3
- push_notebook doesn't update in VSCode .ipynb HOT 17
- Failed to register jupyter_bokeh HOT 4
- conda HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter_bokeh.