There may be a way for an embedded Web VPython program to read new data. Perhaps you could use the Web VPython function get_libary() to read the contents of a JavaScript file. The program
tinyurl.com/lSurfaceCharge uses this function to read data that look like this:
var polarized_block = {}
polarized_block.get_W = function () {return 0.000100}
polarized_block.get_source_locs = function() {
return [
[-0.010000,0.000000,0.000000]
]
}
polarized_block.get_source_charges = function() {
return [
1.000000e-15
]
}
polarized_block.get_qs = function() { return [
-3.486053e-20, -2.577023e-20, -2.344574e-20, -2.228135e-20, -2.156798e-20,
-2.108724e-20, -2.074490e-20, -2.049237e-20, -2.030160e-20, -2.015512e-20, -2.004140e-20, -1.995252e-20, -1.988286e-20, -1.982834e-20, -1.978594e-20,
-1.975344e-20, -1.972916e-20, -1.971192e-20, -1.970087e-20, -1.969547e-20, -1.969547e-20, -1.970087e-20, -1.971192e-20, -1.972916e-20, -1.975344e-20,
etc.
In this case the data are unchanging, but presumably if you could arrange for there to be changing data in a JavaScript file, you could use this scheme.
Bruce