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

2.1 KiB

In [ ]:
@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-12")
//import space.kscience.visionforge.jupyter.JupyterCommonIntegration
//
//val integration = JupyterCommonIntegration()
//USE(integration.getDefinitions(notebook).first())
In [ ]:
vf.fragment {
    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)
            }
        }
    }
}
In [ ]:
Plotly.plot { 
    scatter{
        x(1,2,3)
        y(1,2,3)
    }
}
In [ ]: