-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in visualising the graph for the simple example (http://bl.ocks.org/brinrosenthal/raw/f073040bf389c4c32f648f9107fc836e/) #19
Comments
I've rewrote the example notebook to fix all of the edge to list and x,y position issues, and I've tested it with networkx versions 2.1 and 1.11, and with Python 2 and 3. The code should work exactly as is, perhaps you may need to change the visJS2jupyter import path. Let me know if this new notebook still isn't working! Thank you for your feed back so that we can improve our package (: |
Thank you. The update worked for the graph dictionaries creation. I did changed the import path, and I got this as an output |
I changed the path to take the .pyc and it doesn't display the graph either. I still have the same empty window |
If you have pip installed visJS2jupyter, you shouldn't need to change the import path (unless you have something else going on with anaconda/pypi, where it doesn't download the package to the right path or something). When I use the notebook exactly as is and print the path, mine looks like: I just re-checked the notebook, with python 3, networkx 2.1, and the latest version of visJS2jupyter, and unfortunately I am not able to recreate your problem. |
Two things off the top of my head I can think of that would cause a blank output cell: Sometimes when you use "Run all" to run your cells instead of shift-enter'ing the cell containing the visJS2jupyter call, it can produce a blank cell. If you are trying to visualize two graphs in one notebook, you have to change the parameter "graph_id", or else one of the cells will have a blank graph. |
I do have basically the same path, I also tried giving the graph_id. |
I have the same problem |
After upgrading notebook I got the same problem |
Hi everyone- this issue appears to be windows and/or browser based. We are working on finding a solution. Thanks! |
Any Updates on this issue. I am using Ubuntu, anaconda 3.7, networkx 1.11. |
Hi, |
This worked for me. |
I have the same problem. I just got an empty cell without any graph. Any solution? |
As wanted68 pointed out, there is an github issue tackling the same problem but with a more specific error. I suggest you to look into your console (browser dev tools). There might be an error reported which says that the request of a local file was blocked. You can find a solution in the mentioned issue #22 . |
Using Firefox on Windows this extension seems to fix it for me: |
I am using Python 3.5 and Networkx 2.1, I am able to do the imports and I converted the
edges = G.edges()
to a list and added positions for x,y for each node as innodes_dict = [{"id":n,"x":pos[n][0]*10,"y":pos[n][1]*10} for n in nodes]
to make it work.When I try to display the graph using
visJS_module.visjs_network(nodes_dict, edges_dict, time_stamp=0)
it shows the plot area, but nothing else, it is not zoomable nor contains the graph.
The text was updated successfully, but these errors were encountered: