cytoscape / py4cytoscape

Python library for calling Cytoscape Automation via CyREST
https://Py4Cytoscape.readthedocs.io
Other
72 stars 14 forks source link

get_network_list() fails in local notebook #69

Closed kozo2 closed 2 years ago

kozo2 commented 3 years ago

This problem only occurs in local notebook, does not occur in Google Colab but it takes long time to get the result of the cell.

Try https://colab.research.google.com/github/cytoscape/py4cytoscape/blob/0.0.11/doc/tutorials/Cancer-networks-and-data.ipynb

image

image

bdemchak commented 2 years ago

Agreed. The implementation of get_network_list in both RCy3 and py4cytoscape fetch the entire network, and then digs the network name out of that. And it does that for each existing network.

I'll leave this open so we know to address this at some point ... though there's already a comment in the py4cyoscape code that points this out, too.

bdemchak commented 2 years ago

I think this is related to: https://github.com/cytoscape/py4cytoscape/issues/32

bdemchak commented 2 years ago

Solved by CyREST GET networks.names function