1
1
package edu.umontreal.kotlingrad.api
2
2
3
- import org.jetbrains.kotlinx.jupyter.api.annotations.JupyterLibrary
4
- import org.jetbrains.kotlinx.jupyter.api.*
5
- import org.jetbrains.kotlinx.jupyter.api.libraries.*
6
-
7
- @JupyterLibrary
8
- internal class Integration : JupyterIntegration () {
9
- override fun Builder.onLoaded () {
10
- listOf (
11
- " edu.umontreal.kotlingrad.api.*" ,
12
- " edu.mcgill.kaliningraph.*"
13
- ).forEach { import(it) }
14
-
15
- render<Fun <* >> { HTML (it.render().toString()) }
16
-
17
- // https://github.com/Kotlin/kotlin-jupyter/blob/master/docs/libraries.md#integration-using-kotlin-api
18
- // https://github.com/nikitinas/dataframe/blob/master/src/main/kotlin/org/jetbrains/dataframe/jupyter/Integration.kt
19
- // https://github.com/mipt-npm/visionforge/blob/dev/demo/jupyter-playground/src/main/kotlin/hep/dataforge/playground/VisionForgePlayGroundForJupyter.kt
20
- }
21
- }
3
+ // import org.jetbrains.kotlinx.jupyter.api.annotations.JupyterLibrary
4
+ // import org.jetbrains.kotlinx.jupyter.api.*
5
+ // import org.jetbrains.kotlinx.jupyter.api.libraries.*
6
+ //
7
+ // @JupyterLibrary
8
+ // class Integration: JupyterIntegration() {
9
+ // override fun Builder.onLoaded() {
10
+ // listOf(
11
+ // "edu.umontreal.kotlingrad.api.*",
12
+ // // "edu.mcgill.kaliningraph.*"
13
+ // ).forEach { import(it) }
14
+ //
15
+ // // render<Fun<*>> { HTML(it.render().toString()) }
16
+ //
17
+ // // https://github.com/Kotlin/kotlin-jupyter/blob/master/docs/libraries.md#integration-using-kotlin-api
18
+ // // https://github.com/nikitinas/dataframe/blob/master/src/main/kotlin/org/jetbrains/dataframe/jupyter/Integration.kt
19
+ // // https://github.com/mipt-npm/visionforge/blob/dev/demo/jupyter-playground/src/main/kotlin/hep/dataforge/playground/VisionForgePlayGroundForJupyter.kt
20
+ // }
21
+ // }
0 commit comments