This is a method to get data to the client from the server. But you will want to either use http requests (post, get) or make use of the IPython kernel structure. It will probably be a good idea to have some methods eventually that split out all necessary information from the python code (time histories, shapes, colors, etc) as a json file which can then be passed to the js code more fluidly. But this is a good start for a demonstration of the ideas.