Giter Site home page Giter Site logo

Comments (7)

xhluca avatar xhluca commented on May 22, 2024

Dash clientside callbacks accepts JS, so that should cover some scenarios. If you find a use-case that is not covered, feel free to reopen this.

from dash-cytoscape.

pbelmann avatar pbelmann commented on May 22, 2024

Thank you for creating this issue. Could you please show the code how you would solve your example with the dash clientside callback?

from dash-cytoscape.

ThomWorm avatar ThomWorm commented on May 22, 2024

@pbelmann @xhlulu do either of you have an example of how I might use a clientside callback here as a workaround for the inability to use the embedded JS functions? I'm having trouble figuring it out from the dash documentation.

from dash-cytoscape.

MoburgLeGrand avatar MoburgLeGrand commented on May 22, 2024

@ThomWorm Did you ever get this to work ? I can't seem to get it right.

from dash-cytoscape.

nmz787-intel avatar nmz787-intel commented on May 22, 2024

did anyone ever come up with an example? I want to try this option on breadthfirst :
depthSort: undefined, // a sorting function to order nodes at equal depth. e.g. function(a, b){ return a.data('weight') - b.data('weight') }

from dash-cytoscape.

nmz787-intel avatar nmz787-intel commented on May 22, 2024

seems like the way to do this is, write the JS function as a string in Python... on the JS side, this string would need passed into something like eval

from dash-cytoscape.

lvlte avatar lvlte commented on May 22, 2024

Hi, I'm a bit late but I just wrote an answer on stackoverflow that shows how we can use a clientside callback to assign a JS function to a component property, it addresses the use case of @nmz787-intel but it should help others too. @pbelmann @ThomWorm @MoburgLeGrand

Is it possible to use the depthSort argument in breadthfirst layout in dash-cytoscape?

from dash-cytoscape.

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.