GithubHelp home page GithubHelp logo

Comments (4)

axil avatar axil commented on June 3, 2024

I've found a workaround:

BokehModel(column(p1,p2))

Is it the only possible way to solve it?

from jupyter_bokeh.

bryevdv avatar bryevdv commented on June 3, 2024

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.

axil avatar axil commented on June 3, 2024

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.

mattpap avatar mattpap commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.