-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Comments
This sounds like an ipycytoscape issue. Have you tried posting your issue there?
… On Nov 5, 2021, at 6:18 PM, Shadi Akiki ***@***.***> wrote:
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 <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.
Minimum steps to reproduce
Check issue in ipycytoscape: cytoscape/ipycytoscape#238 (comment) <cytoscape/ipycytoscape#238 (comment)>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#2945>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAHRO4YEM6YOUN6S4J4KPRTUKRQ3NANCNFSM5HOZRYDQ>.
|
Yes but it's not possible to fix it there because AFAIK ipywidgets doesn't
support sending a javascript function to the front-end.
OTOH it supports sending a string. So the ipycytoscape issue would be fixed
if cytoscape concentric's default function checked a key "concentric" in
the data field before falling back to the degree function.
…On Wed, Nov 10, 2021 at 11:46 AM Max Franz ***@***.***> wrote:
This sounds like an ipycytoscape issue. Have you tried posting your issue
there?
> On Nov 5, 2021, at 6:18 PM, Shadi Akiki ***@***.***> wrote:
>
>
> 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 <
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.
>
> Minimum steps to reproduce
>
> Check issue in ipycytoscape: cytoscape/ipycytoscape#238 (comment) <
cytoscape/ipycytoscape#238 (comment)
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub <
#2945>, or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAHRO4YEM6YOUN6S4J4KPRTUKRQ3NANCNFSM5HOZRYDQ
>.
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2945 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAA5BFB32QTJUZJVETZC3LULKOV3ANCNFSM5HOZRYDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sounds like ipycytoscape should be converting this potential string option to a function on their JS/TS side. Have you posted your issue with ipycytoscape?
… On Nov 10, 2021, at 11:59, Shadi Akiki ***@***.***> wrote:
Yes but it's not possible to fix it there because AFAIK ipywidgets doesn't
support sending a javascript function to the front-end.
OTOH it supports sending a string. So the ipycytoscape issue would be fixed
if cytoscape concentric's default function checked a key "concentric" in
the data field before falling back to the degree function.
On Wed, Nov 10, 2021 at 11:46 AM Max Franz ***@***.***> wrote:
> This sounds like an ipycytoscape issue. Have you tried posting your issue
> there?
>
> > On Nov 5, 2021, at 6:18 PM, Shadi Akiki ***@***.***> wrote:
> >
> >
> > 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 <
> 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.
> >
> > Minimum steps to reproduce
> >
> > Check issue in ipycytoscape: cytoscape/ipycytoscape#238 (comment) <
> cytoscape/ipycytoscape#238 (comment)
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub <
> #2945>, or unsubscribe <
> https://github.com/notifications/unsubscribe-auth/AAHRO4YEM6YOUN6S4J4KPRTUKRQ3NANCNFSM5HOZRYDQ
> >.
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#2945 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACAA5BFB32QTJUZJVETZC3LULKOV3ANCNFSM5HOZRYDQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2945 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAHRO4YO7VEGP3F65O2NNXTULKQGFANCNFSM5HOZRYDQ>.
|
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. |
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. |
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. |
Was this issue ever fixed? I am facing the same problems. |
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 sinceipywidgets/traitlets
json-serializes all data sent to the front-end.Minimum steps to reproduce
Check issue in ipycytoscape: cytoscape/ipycytoscape#238 (comment)
The text was updated successfully, but these errors were encountered: