Support for http://jupyter.org/ notebooks for cayley graph
Jupyter notebook would allows you to enter in the query text and display the results or the graphs and then save the entire worksheet for post processing. It would also allow you to process the results with other programs in the notebook.
Here is what a notebook looks like
Maybe using :https://github.com/gopherdata/gophernotes