我正在尝试学习Dash Cytoscape,并希望执行以下操作:生成一个带有网络的图形,应用fruchterman-reingold算法来定位节点,将数据转换为胞景格式,并在Dash应用程序中显示它。以下是代码: to Dash cytoscapeimport dash_cytoscape as cyto
from dash importDa
Dash似乎无法巧妙地处理有向网络图。因此,我将通过Matplotlib来使用mpl_to_plotly来呈现图形。一个图形确实在站点上呈现,但没有边缘,并且有以下控制台输出:
nx.draw_networkx_labels(G, pos, font_size=20, font_family='sans-serif')
# error with plotly no supporting t
import dashimport dash_core_components as dccimport plotly.express as px 当在Jupyter Notebook中运行这段代码时,我得到了一个我应该做的error.what。----> 2 import dash_html_components as ht