forked from Kotlin/kotlin-jupyter-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lets-plot.json
74 lines (74 loc) · 3.14 KB
/
lets-plot.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"description": "ggplot-like interactive visualization for Kotlin",
"properties": {
"api": "4.1.1",
"lib": "2.5.1",
"js": "2.5.1",
"isolatedFrame": ""
},
"link": "https://github.com/JetBrains/lets-plot-kotlin",
"dependencies": [
"org.jetbrains.lets-plot:lets-plot-kotlin-kernel:$api",
"org.jetbrains.lets-plot:lets-plot-common:$lib",
"org.jetbrains.lets-plot:lets-plot-image-export:$lib",
"io.github.microutils:kotlin-logging-jvm:2.0.5"
],
"imports": [
"org.jetbrains.letsPlot.*",
"org.jetbrains.letsPlot.geom.*",
"org.jetbrains.letsPlot.geom.extras.*",
"org.jetbrains.letsPlot.stat.*",
"org.jetbrains.letsPlot.label.*",
"org.jetbrains.letsPlot.scale.*",
"org.jetbrains.letsPlot.facet.*",
"org.jetbrains.letsPlot.sampling.*",
"org.jetbrains.letsPlot.export.*",
"org.jetbrains.letsPlot.tooltips.*",
"org.jetbrains.letsPlot.themes.theme",
"org.jetbrains.letsPlot.themes.elementBlank",
"org.jetbrains.letsPlot.themes.elementRect",
"org.jetbrains.letsPlot.themes.elementLine",
"org.jetbrains.letsPlot.themes.elementText",
"org.jetbrains.letsPlot.themes.themeBW",
"org.jetbrains.letsPlot.themes.themeGrey",
"org.jetbrains.letsPlot.themes.themeLight",
"org.jetbrains.letsPlot.themes.themeClassic",
"org.jetbrains.letsPlot.themes.themeMinimal",
"org.jetbrains.letsPlot.themes.themeMinimal2",
"org.jetbrains.letsPlot.themes.themeNone",
"org.jetbrains.letsPlot.themes.margin",
"org.jetbrains.letsPlot.themes.flavorDarcula",
"org.jetbrains.letsPlot.themes.flavorSolarizedLight",
"org.jetbrains.letsPlot.themes.flavorSolarizedDark",
"org.jetbrains.letsPlot.themes.flavorHighContrastLight",
"org.jetbrains.letsPlot.themes.flavorHighContrastDark",
"org.jetbrains.letsPlot.font.*",
"org.jetbrains.letsPlot.coord.coordFixed",
"org.jetbrains.letsPlot.coord.coordCartesian",
"org.jetbrains.letsPlot.coord.coordMap",
"org.jetbrains.letsPlot.coord.coordFlip",
"org.jetbrains.letsPlot.pos.positionIdentity",
"org.jetbrains.letsPlot.pos.positionStack",
"org.jetbrains.letsPlot.pos.positionFill",
"org.jetbrains.letsPlot.pos.positionDodge",
"org.jetbrains.letsPlot.pos.positionNudge",
"org.jetbrains.letsPlot.pos.positionJitter",
"org.jetbrains.letsPlot.pos.positionJitterDodge",
"org.jetbrains.letsPlot.bistro.corr.*",
"org.jetbrains.letsPlot.bistro.qq.*",
"org.jetbrains.letsPlot.intern.toSpec"
],
"init": [
"import org.jetbrains.letsPlot.LetsPlot",
"import org.jetbrains.letsPlot.frontend.NotebookFrontendContext",
"val isolatedFrameParam = if(\"$isolatedFrame\".isNotEmpty()) \"$isolatedFrame\".toBoolean() else null",
"val frontendContext = LetsPlot.setupNotebook(\"$js\", isolatedFrameParam) {DISPLAY(HTML(it))}",
"LetsPlot.apiVersion = \"$api\"",
"// Load library JS",
"DISPLAY(HTML(frontendContext.getConfigureHtml()))"
],
"renderers": {
"org.jetbrains.letsPlot.intern.Plot": "HTML(frontendContext.getHtml($it as org.jetbrains.letsPlot.intern.Plot))",
"org.jetbrains.letsPlot.GGBunch": "HTML(frontendContext.getHtml($it as org.jetbrains.letsPlot.GGBunch))"
}
}