2023-07-19 22:25:32 +03:00
|
|
|
{
|
|
|
|
"cells": [
|
2023-07-20 08:58:41 +03:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-22 15:39:43 +03:00
|
|
|
"execution_count": null,
|
2023-07-20 08:58:41 +03:00
|
|
|
"metadata": {
|
2023-07-22 15:39:43 +03:00
|
|
|
"tags": []
|
2023-07-20 09:13:24 +03:00
|
|
|
},
|
2023-07-19 22:25:32 +03:00
|
|
|
"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",
|
2023-07-22 15:39:43 +03:00
|
|
|
"@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())"
|
2023-07-19 22:54:13 +03:00
|
|
|
]
|
2023-07-19 22:25:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-22 15:39:43 +03:00
|
|
|
"execution_count": null,
|
2023-07-19 22:54:13 +03:00
|
|
|
"metadata": {
|
2023-07-22 15:39:43 +03:00
|
|
|
"tags": []
|
2023-07-19 22:54:13 +03:00
|
|
|
},
|
2023-07-22 15:39:43 +03:00
|
|
|
"outputs": [],
|
2023-07-19 22:25:32 +03:00
|
|
|
"source": [
|
2023-07-22 15:39:43 +03:00
|
|
|
"vf.fragment {\n",
|
2023-07-19 22:25:32 +03:00
|
|
|
" 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",
|
|
|
|
"}"
|
2023-07-19 22:54:13 +03:00
|
|
|
]
|
2023-07-19 22:25:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {
|
2023-07-19 22:54:13 +03:00
|
|
|
"jupyter": {
|
|
|
|
"outputs_hidden": false
|
2023-07-22 15:39:43 +03:00
|
|
|
},
|
|
|
|
"tags": []
|
2023-07-19 22:54:13 +03:00
|
|
|
},
|
|
|
|
"outputs": [],
|
2023-07-20 08:58:41 +03:00
|
|
|
"source": [
|
2023-07-22 15:39:43 +03:00
|
|
|
"Plotly.plot { \n",
|
|
|
|
" scatter{\n",
|
|
|
|
" x(1,2,3)\n",
|
|
|
|
" y(1,2,3)\n",
|
|
|
|
" }\n",
|
|
|
|
"}"
|
2023-07-20 08:58:41 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
2023-07-22 15:39:43 +03:00
|
|
|
"metadata": {},
|
2023-07-20 08:58:41 +03:00
|
|
|
"outputs": [],
|
2023-07-22 15:39:43 +03:00
|
|
|
"source": []
|
2023-07-19 22:25:32 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Kotlin",
|
|
|
|
"language": "kotlin",
|
|
|
|
"name": "kotlin"
|
|
|
|
},
|
2023-07-19 22:54:13 +03:00
|
|
|
"ktnbPluginMetadata": {
|
|
|
|
"isAddProjectLibrariesToClasspath": false
|
|
|
|
},
|
2023-07-19 22:25:32 +03:00
|
|
|
"language_info": {
|
2023-07-19 22:54:13 +03:00
|
|
|
"codemirror_mode": "text/x-kotlin",
|
2023-07-19 22:25:32 +03:00
|
|
|
"file_extension": ".kt",
|
2023-07-19 22:54:13 +03:00
|
|
|
"mimetype": "text/x-kotlin",
|
|
|
|
"name": "kotlin",
|
|
|
|
"nbconvert_exporter": "",
|
2023-07-19 22:25:32 +03:00
|
|
|
"pygments_lexer": "kotlin",
|
2023-07-19 22:54:13 +03:00
|
|
|
"version": "1.8.20"
|
2023-07-19 22:25:32 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
2023-07-19 22:54:13 +03:00
|
|
|
"nbformat_minor": 4
|
2023-07-19 22:25:32 +03:00
|
|
|
}
|