visionforge/demo/playground/notebooks/dynamic-demo.ipynb
2023-05-29 21:38:30 +03:00

3.0 KiB

In [1]:

In [3]:
vf.startServer()
Line_2.jupyter.kts (1:1 - 3) Unresolved reference: vf
In [4]:
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())
                }
            }
        }
    }
}
Line_3.jupyter.kts (1:16 - 26) Unresolved reference: coroutines
Line_3.jupyter.kts (4:1 - 7) Unresolved reference: Plotly
Line_3.jupyter.kts (5:5 - 12) Unresolved reference: scatter
Line_3.jupyter.kts (6:9 - 10) Unresolved reference: x
Line_3.jupyter.kts (7:9 - 10) Unresolved reference: y
Line_3.jupyter.kts (8:12 - 14) Unresolved reference: vf
Line_3.jupyter.kts (9:13 - 15) Unresolved reference: vf
Line_3.jupyter.kts (10:23 - 31) Unresolved reference: isActive
Line_3.jupyter.kts (11:21 - 26) Unresolved reference: delay
Line_3.jupyter.kts (12:21 - 22) Unresolved reference: y
In [ ]:
vf.stopServer()
In [ ]: