forked from kscience/visionforge
Work-around for strange dependency resolution in notebooks
This commit is contained in:
parent
c1f275ce45
commit
5783cf1430
@ -1,5 +1,16 @@
|
|||||||
{
|
{
|
||||||
"cells": [
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"//SessionOptions.resolveMpp = true"
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
@ -10,9 +21,9 @@
|
|||||||
"@file:Repository(\"https://repo.kotlin.link\")\n",
|
"@file:Repository(\"https://repo.kotlin.link\")\n",
|
||||||
"@file:Repository(\"https://maven.pkg.jetbrains.space/spc/p/sci/dev\")\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-11\")\n",
|
"@file:DependsOn(\"space.kscience:visionforge-jupyter-common-jvm:0.3.0-dev-11\")\n",
|
||||||
"@file:DependsOn(\"io.ktor:ktor-server-cio-jvm:2.3.0\")\n",
|
"//@file:DependsOn(\"io.ktor:ktor-server-cio-jvm:2.3.0\")\n",
|
||||||
"@file:DependsOn(\"io.ktor:ktor-server-websockets-jvm:2.3.0\")\n",
|
"//@file:DependsOn(\"io.ktor:ktor-server-websockets-jvm:2.3.0\")\n",
|
||||||
"@file:DependsOn(\"io.ktor:ktor-server-cors-jvm:2.3.0\")"
|
"//@file:DependsOn(\"io.ktor:ktor-server-cors-jvm:2.3.0\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -26,10 +37,6 @@
|
|||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"import io.ktor.server.cio.CIO\n",
|
|
||||||
"\n",
|
|
||||||
"println(CIO)\n",
|
|
||||||
"\n",
|
|
||||||
"vf.startServer()"
|
"vf.startServer()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -82,7 +89,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": []
|
"source": [
|
||||||
|
"vf.stopServer()"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"outputs": [],
|
||||||
|
"source": [],
|
||||||
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
@ -13,7 +13,9 @@ kscience {
|
|||||||
api(projects.visionforgeCore)
|
api(projects.visionforgeCore)
|
||||||
}
|
}
|
||||||
dependencies(jvmMain){
|
dependencies(jvmMain){
|
||||||
api("io.ktor:ktor-server-cio")
|
api("io.ktor:ktor-server-cio-jvm")
|
||||||
|
api("io.ktor:ktor-server-websockets-jvm")
|
||||||
|
api("io.ktor:ktor-server-cors-jvm")
|
||||||
api(projects.visionforgeServer)
|
api(projects.visionforgeServer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user