diff options
| author | Ianto Lin Xi <ianto@kite.com> | 2016-02-22 14:54:52 -0800 |
|---|---|---|
| committer | Ianto Lin Xi <ianto@kite.com> | 2016-02-22 14:55:50 -0800 |
| commit | dc2d7e793a5ef0856e2d91ab4b59e4d93728bf3a (patch) | |
| tree | 99f62f569c8e6f54c555b866ab77fef8f1305b5b /examples/javascript | |
| parent | 808da07d7204d2dc4f2fa62f5e67818a9e9d6960 (diff) | |
| download | networkx-dc2d7e793a5ef0856e2d91ab4b59e4d93728bf3a.tar.gz | |
remove dependency on http_server
Diffstat (limited to 'examples/javascript')
| -rw-r--r-- | examples/javascript/force.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/javascript/force.py b/examples/javascript/force.py index 0acd0af8..fdc9abed 100644 --- a/examples/javascript/force.py +++ b/examples/javascript/force.py @@ -11,7 +11,6 @@ import json import networkx as nx from networkx.readwrite import json_graph -import http_server G = nx.barbell_graph(6,3) # this d3 example uses the name attribute for the mouse-hover value, @@ -23,6 +22,4 @@ d = json_graph.node_link_data(G) # node-link format to serialize # write json json.dump(d, open('force/force.json','w')) print('Wrote node-link JSON data to force/force.json') -# open URL in running web browser -http_server.load_url('force/force.html') -print('Or copy all files in force/ to webserver and load force/force.html') +print('Open force/force.html in a web browser')
\ No newline at end of file |
