LoLab-MSM / pyvipr

Jupyter widget for the dynamic and static visualizations of systems biology models written in PySB, BNGL, and SBML
MIT License
27 stars 4 forks source link

can't get it to work from Google Colab #187

Closed hsauro closed 2 years ago

hsauro commented 2 years ago

I was trying to use vipr fro colab (https://colab.research.google.com/) but I am stuck at:

import pyvipr.tellurium_viz as tviz tviz.sp_view(r)

I tried to install community but it say that is already there.

/usr/local/lib/python3.7/dist-packages/pyvipr/util.py in () 4 import networkx as nx 5 import networkx.algorithms.community as nx_community ----> 6 from community import best_partition, generate_dendrogram 7 8

ImportError: cannot import name 'best_partition' from 'community' (/usr/local/lib/python3.7/dist-packages/community/init.py)

hsauro commented 2 years ago

PS It seems to work ok on my desktop jupyter notebook so must be a colab issue.

ortega2247 commented 2 years ago

Hi Herbert, thank you for using pyvipr. Recently colab has enable the use of external widgets. I made a quick release and now pyvipr works in colab. Here is an example of an static and dynamic visualization:

https://colab.research.google.com/drive/12ossgjj-mnrPv7XXXBwajf85kPyFb_CQ?usp=sharing

hsauro commented 2 years ago

Great, thanks. We might use it in a class later this year where we use colab.

H