visionforge/demo/playground/notebooks/dynamic-demo.ipynb

1.7 KiB

In [ ]:

In [ ]:
vf.startServer()
In [ ]:
import kotlinx.coroutines.*
import kotlin.random.Random

Plotly.plot{
    scatter{
        x(1,2,3)
        y(1,2,3)
        if(vf.isServerRunning()){
            vf.launch{
                while(isActive){
                    delay(500)
                    y(Random.nextDouble(), Random.nextDouble(), Random.nextDouble())
                }
            }
        }
    }
}
In [ ]:
vf.stopServer()
In [ ]: