Skip to content

Instantly share code, notes, and snippets.

Created October 31, 2018 04:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
app.layout = html.Div([
html.Div(className='row', children=[
html.Div([html.H2('Overall Data'),
html.P('Num of nodes: ' + str(len(G.nodes))),
html.P('Num of edges: ' + str(len(G.edges)))],
className='three columns'),
html.H2('Selected Data'),
], className='six columns')
Output('selected-data', 'children'),
def display_selected_data(selectedData):
num_of_nodes = len(selectedData['points'])
text = [html.P('Num of nodes selected: '+str(num_of_nodes))]
for x in selectedData['points']:
material = int(x['text'].split('<br>')[0][10:])
return text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment