4.6 KiB
4.6 KiB
In [2]:
@file:Repository("*mavenLocal") @file:Repository("https://repo.kotlin.link") @file:Repository("https://maven.pkg.jetbrains.space/spc/p/sci/dev") @file:DependsOn("space.kscience:visionforge-jupyter-common-jvm:0.3.0-dev-11")
In [3]:
vf.startServer()
Out[3]:
Starting VisionForge server on http://localhost:7777
In [4]:
vf.page { h1 { +"AAA" } vision { solid { ambientLight() box(100, 100, 200) sphere(100) { x = 300 } } } vision { plotly { scatter { x(1, 2, 3, 1) y(1, 2, 3, 4) } } } }
Out[4]:
In [ ]:
vf.stopServer()
In [ ]: