I am trying out cytoscape in jupyter notebook v6.5.6. The code is as follows:
import networkx as nx
import ipycytoscape
import ipywidgets as widgets
cytoscapeobj = ipycytoscape.CytoscapeWidget()
G = nx.complete_graph(5)
cyto = cytoscapeobj
cyto.graph.add_graph_from_networkx(G)
cyto
Extensions installed are:
The code throws a javascript error in the cell that is as follows:
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'CytoscapeModel' from module 'jupyter-cytoscape'
TypeError: e is not a function
at i (http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:9028)
at Object. (http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:9081)
at n (http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:2117)
at http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:2491
at r (http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:2500)
at 4226 (http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:9651)
at r (http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:1025373)
at http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:1029580
at http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:1053454
at http://localhost:9989/nbextensions/jupyter-cytoscape/index.js?v=20231119150121:2:1053460
Based on suggestions I've successfully run !jupyter nbextension enable --py widgetsnbextension which returns Validating OK. The IPy and Jupyter related packages that are installed are:
I am trying out cytoscape in jupyter notebook v6.5.6. The code is as follows:
Extensions installed are:![enter image description here](https://i.stack.imgur.com/pHmfu.png)
The code throws a javascript error in the cell that is as follows:
Based on suggestions I've successfully run
!jupyter nbextension enable --py widgetsnbextension
which returnsValidating OK
. The IPy and Jupyter related packages that are installed are:Not sure what to do to get the graph to render?