Skip to content
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

concentric layout: controlling node level from ipycytoscape #2945

Closed
shadiakiki1986 opened this issue Nov 5, 2021 · 6 comments
Closed

concentric layout: controlling node level from ipycytoscape #2945

shadiakiki1986 opened this issue Nov 5, 2021 · 6 comments
Labels

Comments

@shadiakiki1986
Copy link

shadiakiki1986 commented Nov 5, 2021

Current (buggy) behaviour

concentric layout: node levels are controlled from a javascript function through argument named "concentric"
(docs at: https://js.cytoscape.org/#layouts/concentric )

Desired behaviour

This default function would check for a field in node data first, in case it is set from ipycytoscape, before falling back to using node degrees. ipycytoscape cannot send a javascript function to the front-end since ipywidgets/traitlets json-serializes all data sent to the front-end.

Minimum steps to reproduce

Check issue in ipycytoscape: cytoscape/ipycytoscape#238 (comment)

@shadiakiki1986 shadiakiki1986 added the bug A bug in the code of Cytoscape.js label Nov 5, 2021
@maxkfranz
Copy link
Member

maxkfranz commented Nov 10, 2021 via email

@shadiakiki1986
Copy link
Author

shadiakiki1986 commented Nov 10, 2021 via email

@maxkfranz
Copy link
Member

maxkfranz commented Nov 16, 2021 via email

@shadiakiki1986
Copy link
Author

shadiakiki1986 commented Nov 16, 2021

It could be fixed on ipycytoscape's side in a complex way, or it could be fixed here in cytoscape.js with 1 line of code.
The above PR #2951 does the job.

@stale
Copy link

stale bot commented Jan 8, 2022

This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.

@stale stale bot added the stale label Jan 8, 2022
@maxkfranz maxkfranz removed the bug A bug in the code of Cytoscape.js label Jan 12, 2022
@stale stale bot removed the stale label Jan 12, 2022
@stale
Copy link

stale bot commented Mar 1, 2022

This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.

@stale stale bot added the stale label Mar 1, 2022
@stale stale bot closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants