1.Say we have a number of python scripts that we would like to use to manipulate data. What would be the easiest way to get those to run in the sandcastle code.
Ipython notebooks are are already very widely used in the scientific community, would it be easier to integrate a cesium widget into an ipython notebook or to expand sandcastle to allow you to run python.
Are there any plans with regard to python integration with cesium not covered by answers to 1 or 2 above?
You can setup a python http server. Run your python scripts for every GET method, and write the result back to http response. Use '/proxy/' module to solve cross domain issue.
I have placed by cesium folder under the .ipython\profile_default\static\js folder, which also should contain a file custom.js (can be empty). This way the ipython javascript can access the cesium library.
But the best would likely be to have it as a javascript widget, enable direct interaction with the cesium without the need of th czml file.
One issue I had was that it seems like the 127.0.0.1 and localhost is not transparent. Chrome seems to require the localhost URL for the notebook for the embeddment to work.
in my use case i’m sung some GIS app (mix of GRASS, R and GDAL) to generate the data
then a simple HTML template to visualize the results with Cesium. (in this case i’m uploading thehtml on a web server where i’ve stored the Cesium library)