99 lines
2.1 KiB
Plaintext
99 lines
2.1 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"tags": []
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"@file:Repository(\"*mavenLocal\")\n",
|
|
"@file:Repository(\"https://repo.kotlin.link\")\n",
|
|
"@file:Repository(\"https://maven.pkg.jetbrains.space/spc/p/sci/dev\")\n",
|
|
"@file:DependsOn(\"space.kscience:visionforge-jupyter-common-jvm:0.3.0-dev-12\")\n",
|
|
"//import space.kscience.visionforge.jupyter.JupyterCommonIntegration\n",
|
|
"//\n",
|
|
"//val integration = JupyterCommonIntegration()\n",
|
|
"//USE(integration.getDefinitions(notebook).first())"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"tags": []
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"vf.fragment {\n",
|
|
" h1 { +\"AAA\" }\n",
|
|
" vision {\n",
|
|
" solid {\n",
|
|
" ambientLight()\n",
|
|
" box(100, 100, 200)\n",
|
|
"\n",
|
|
" sphere(100) {\n",
|
|
" x = 300\n",
|
|
" }\n",
|
|
" }\n",
|
|
" }\n",
|
|
"\n",
|
|
" vision {\n",
|
|
" plotly {\n",
|
|
" scatter {\n",
|
|
" x(1, 2, 3, 1)\n",
|
|
" y(1, 2, 3, 4)\n",
|
|
" }\n",
|
|
" }\n",
|
|
" }\n",
|
|
"}"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"tags": []
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"Plotly.plot { \n",
|
|
" scatter{\n",
|
|
" x(1,2,3)\n",
|
|
" y(1,2,3)\n",
|
|
" }\n",
|
|
"}"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Kotlin",
|
|
"language": "kotlin",
|
|
"name": "kotlin"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": "text/x-kotlin",
|
|
"file_extension": ".kt",
|
|
"mimetype": "text/x-kotlin",
|
|
"name": "kotlin",
|
|
"nbconvert_exporter": "",
|
|
"pygments_lexer": "kotlin",
|
|
"version": "1.8.20"
|
|
},
|
|
"ktnbPluginMetadata": {
|
|
"projectLibraries": []
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 4
|
|
}
|