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

99 lines
2.1 KiB
Plaintext
Raw Normal View History

2023-07-19 22:25:32 +03:00
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"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",
"@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:25:32 +03:00
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
2023-07-19 22:25:32 +03:00
"source": [
"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:25:32 +03:00
},
{
"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": []
2023-07-19 22:25:32 +03:00
}
],
"metadata": {
"kernelspec": {
"display_name": "Kotlin",
"language": "kotlin",
"name": "kotlin"
},
"language_info": {
"codemirror_mode": "text/x-kotlin",
2023-07-19 22:25:32 +03:00
"file_extension": ".kt",
"mimetype": "text/x-kotlin",
"name": "kotlin",
"nbconvert_exporter": "",
2023-07-19 22:25:32 +03:00
"pygments_lexer": "kotlin",
"version": "1.8.20"
2023-11-29 09:41:22 +03:00
},
"ktnbPluginMetadata": {
"projectLibraries": []
2023-07-19 22:25:32 +03:00
}
},
"nbformat": 4,
"nbformat_minor": 4
2023-07-19 22:25:32 +03:00
}