File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
# import Jaal at root
2
2
from .jaal import Jaal
3
3
# version in setup fetched from here
4
- __version__ = "0.0.7 "
4
+ __version__ = "0.0.8 "
Original file line number Diff line number Diff line change 1
1
# import
2
2
from jaal import Jaal
3
3
from jaal .datasets import load_got
4
+
4
5
# load the data
5
6
edge_df , node_df = load_got ()
6
- # init Jaal and run server
7
- Jaal (edge_df , node_df ).plot (debug = True )
7
+
8
+ # define vis options
9
+ vis_opts = {'height' : '600px' , # change height
10
+ 'interaction' :{'hover' : True }, # turn on-off the hover
11
+ 'physics' :{'stabilization' :{'iterations' : 100 }}} # define the convergence iteration of network
12
+
13
+ # init Jaal and run server (with opts)
14
+ Jaal (edge_df , node_df ).plot (vis_opts = vis_opts )
15
+
16
+ # init Jaal and run server (with default options)
17
+ # Jaal(edge_df, node_df).plot()
You can’t perform that action at this time.
0 commit comments