cytoscape / py2cytoscape

Python utilities for Cytoscape and Cytoscape.js
https://py2cytoscape.readthedocs.io
MIT License
178 stars 45 forks source link

Unlock node width and height #82

Closed Niveda-S closed 5 years ago

Niveda-S commented 5 years ago

Hi,

Is there a way to unlock node width and height using py2cytoscape? I use cytoscape version 3.7.0

Thanks!

zachary822 commented 5 years ago

It is a little counter-intuitive but

from py2cytoscape import cyrest

csc = cyrest.cyclient()

csc.styles.updateDependencies('styleName', [{'visualPropertyDependency': 'nodeSizeLocked', 'enabled': False}])  # True/False turns it on or off

However, before you go try this. Pull request #84 needs to be merged before any of this works. The way PUT requests are handled in the current version throws an error.

jorgeboucas commented 5 years ago

closes with dd34de8