
Temporally Aware Online News Mining and Visualization with Python 193
5
6 f.write(edges_footer)
7 f.close()
If at any stage of developing a JSON document you are getting an unexplained error,
you can use one of the online JSON validation tools such as http://jsonlint.com to
check that it is not stemming from a malformed JSON document.
You can now run this complete application by following the steps outlined in Sec-
tion 8.6.3. This will output the data.json file for you. We will be using this data.json file in
the next section.
8.8 Viewing the Visualization
The online nature of JavaScript applications often requires the code to be running in a
Web browser ...