有没有办法在 jupyter 笔记本(python)中保存 ipycytoscape(javascript 基于对象)?
Is there a way to save ipycytoscape (javascript based object) in jupyter notebook(python)?
我正在通过 ipycytoscape
https://ipycytoscape.readthedocs.io/en/latest/
创建图表
我在 jupyter notebook
中使用我的 python 代码通过包创建了一个交互式图表。
但是,有没有办法将这个 javascript 原始图表保存为图像?
下面是示例代码。
import networkx as nx
G = nx.complete_graph(5)
cyto = ipycytoscape.CytoscapeWidget()
cyto.graph.add_graph_from_networkx(G)
display(cyto)
感谢提问。
我发现了一些对您来说可能是个开始的东西:https://nbconvert.readthedocs.io/en/latest/nbconvert_library.html#Extracting-Figures-using-the-HTML-Exporter
如果您想继续讨论这个问题,我建议您在我们的 github https://github.com/QuantStack/ipycytoscape/issues 中提出一个问题
干杯!
我正在通过 ipycytoscape
https://ipycytoscape.readthedocs.io/en/latest/
我在 jupyter notebook
中使用我的 python 代码通过包创建了一个交互式图表。
但是,有没有办法将这个 javascript 原始图表保存为图像?
下面是示例代码。
import networkx as nx
G = nx.complete_graph(5)
cyto = ipycytoscape.CytoscapeWidget()
cyto.graph.add_graph_from_networkx(G)
display(cyto)
感谢提问。 我发现了一些对您来说可能是个开始的东西:https://nbconvert.readthedocs.io/en/latest/nbconvert_library.html#Extracting-Figures-using-the-HTML-Exporter 如果您想继续讨论这个问题,我建议您在我们的 github https://github.com/QuantStack/ipycytoscape/issues 中提出一个问题 干杯!