from dash import Dash, html from pprint import pprint import dash_cytoscape as cyto import json app = Dash(__name__) with open('viz_data.json') as f: data = json.load(f) app.layout = html.Div([ html.P("Dash Cytoscape:"), cyto.Cytoscape( id='cytoscape', elements=data, layout={'name': 'breadthfirst'}, style={'width': '400px', 'height': '500px'} ) ]) app.run_server(debug=True)