.settings(url_params={'workbook': 'my_workbook_id'})
In [6]:
import time
from IPython.display import IFrame
In [2]:
SERVER = 'labs.graphistry.com'
In [3]:
current_time = str(int(time.time()))
dataset='Facebook'
# We add the current time to the end of the workbook name to ensure it is unique
workbook = 'popularCommunities' + current_time
In [4]:
current_time = str(int(time.time()))
url = 'http://' + SERVER + '/graph/graph.html?dataset=' + dataset + '&workbook=' + workbook + '&splashAfter=' + current_time
IFrame(url, width=1000, height=500)
Out[4]:
point:degree >= 100
In [5]:
current_time = str(int(time.time()))
dataset='Marvel'
url = 'http://' + SERVER + '/graph/graph.html?dataset=' + dataset + '&workbook=' + workbook + '&splashAfter=' + current_time
IFrame(url, width=1000, height=500)
Out[5]:
In [ ]:
current_time = str(int(time.time()))
dataset='Marvel'
url = 'http://' + SERVER + '/graph/graph.html?dataset=' + dataset + '&splashAfter=' + current_time
IFrame(url, width=1000, height=500)
In [9]:
import pandas as pd
import graphistry
#graphistry.register(key='my_api_key', server='labs.graphistry.com')
edges_1_df = pd.DataFrame({'s': [0,1,2], 'd': [1,2,0]})
edges_2_df = pd.DataFrame({'s': [0,1,2, 3], 'd': [1,2,0,1]})
In [10]:
g = graphistry.bind(source='s', destination='d').settings(url_params={'workbook': 'my_' + workbook})
In [11]:
g.plot(edges_1_df)
Out[11]:
In [12]:
g.plot(edges_2_df)
Out[12]:
In [ ]: