visionforge/demo/playground/notebooks/demo3D.ipynb

7.0 MiB

In [1]:
@file:DependsOn("../build/libs/playground-0.3.0-dev-4-all.jar")
In [2]:
vf.startServer()
Out[2]:

Starting VisionForge server on http://localhost:7777

In [3]:
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())
                }
            }
        }
    }
}
Out[3]:
In [4]:
vf.stopServer()
In [ ]: