Skip to content

Commit e3df527

Browse files
committed
Revert "Remove imports/init/renders from lets-plot descriptors (move to Integ… (#421)"
This reverts commit 10fefcc.
1 parent 6211ebc commit e3df527

File tree

2 files changed

+60
-8
lines changed

2 files changed

+60
-8
lines changed

lets-plot-gt.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
"description": "Lets-Plot visualisation for GeoTools toolkit",
33
"link": "https://github.com/JetBrains/lets-plot-kotlin",
44
"properties": [
5-
{ "name": "api", "value": "4.8.0" },
6-
{ "name": "api-renovate-hint", "value": "update: package=org.jetbrains.lets-plot:lets-plot-kotlin-geotools-jupyter" },
7-
{ "name": "isolatedFrame", "value": "" }
5+
{ "name": "api", "value": "4.9.0" },
6+
{ "name": "api-renovate-hint", "value": "update: package=org.jetbrains.lets-plot:lets-plot-kotlin-geotools" },
7+
{ "name": "gt", "value": "[30,)" },
8+
{ "name": "gt-renovate-hint", "value": "update: package=org.geotools:gt-geojson" }
89
],
910
"repositories": [
1011
"https://repo.osgeo.org/repository/release"
1112
],
1213
"dependencies": [
13-
"org.jetbrains.lets-plot:lets-plot-kotlin-geotools-jupyter:$api"
14+
"org.jetbrains.lets-plot:lets-plot-kotlin-geotools:$api",
15+
"org.geotools:gt-geojson:$gt"
16+
],
17+
"imports": [
18+
"org.jetbrains.letsPlot.toolkit.geotools.toSpatialDataset"
1419
]
1520
}

lets-plot.json

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,59 @@
11
{
22
"description": "Kotlin API for Lets-Plot: multiplatform plotting library based on Grammar of Graphics",
33
"properties": [
4-
{ "name": "api", "value": "4.8.0" },
5-
{ "name": "api-renovate-hint", "value": "update: package=org.jetbrains.lets-plot:lets-plot-kotlin-jupyter" },
4+
{ "name": "api", "value": "4.9.0" },
5+
{ "name": "api-renovate-hint", "value": "update: package=org.jetbrains.lets-plot:lets-plot-kotlin-kernel" },
6+
{ "name": "lib", "value": "4.5.1" },
7+
{ "name": "lib-renovate-hint", "value": "update: package=org.jetbrains.lets-plot:lets-plot-common" },
8+
{ "name": "js", "value": "4.5.1" },
9+
{ "name": "lib-renovate-hint", "value": "update: package=org.jetbrains.lets-plot:lets-plot-common" },
610
{ "name": "isolatedFrame", "value": "" }
711
],
812
"link": "https://github.com/JetBrains/lets-plot-kotlin",
913
"dependencies": [
10-
"org.jetbrains.lets-plot:lets-plot-kotlin-jupyter:$api"
11-
]
14+
"org.jetbrains.lets-plot:lets-plot-kotlin-kernel:$api",
15+
"org.jetbrains.lets-plot:lets-plot-common:$lib",
16+
"org.jetbrains.lets-plot:platf-awt-jvm:$lib",
17+
"org.jetbrains.lets-plot:lets-plot-image-export:$lib",
18+
"io.github.microutils:kotlin-logging-jvm:2.0.5"
19+
],
20+
"imports": [
21+
"org.jetbrains.letsPlot.*",
22+
"org.jetbrains.letsPlot.geom.*",
23+
"org.jetbrains.letsPlot.geom.extras.*",
24+
"org.jetbrains.letsPlot.stat.*",
25+
"org.jetbrains.letsPlot.label.*",
26+
"org.jetbrains.letsPlot.scale.*",
27+
"org.jetbrains.letsPlot.facet.*",
28+
"org.jetbrains.letsPlot.sampling.*",
29+
"org.jetbrains.letsPlot.export.*",
30+
"org.jetbrains.letsPlot.tooltips.*",
31+
"org.jetbrains.letsPlot.annotations.*",
32+
"org.jetbrains.letsPlot.themes.*",
33+
"org.jetbrains.letsPlot.font.*",
34+
"org.jetbrains.letsPlot.coord.*",
35+
"org.jetbrains.letsPlot.pos.*",
36+
"org.jetbrains.letsPlot.interact.*",
37+
"org.jetbrains.letsPlot.bistro.corr.*",
38+
"org.jetbrains.letsPlot.bistro.qq.*",
39+
"org.jetbrains.letsPlot.bistro.joint.*",
40+
"org.jetbrains.letsPlot.bistro.residual.*",
41+
"org.jetbrains.letsPlot.bistro.waterfall.*",
42+
"org.jetbrains.letsPlot.intern.toSpec",
43+
"org.jetbrains.letsPlot.spatial.SpatialDataset"
44+
],
45+
"init": [
46+
"import org.jetbrains.letsPlot.LetsPlot",
47+
"import org.jetbrains.letsPlot.frontend.NotebookFrontendContext",
48+
"val isolatedFrameParam = if(\"$isolatedFrame\".isNotEmpty()) \"$isolatedFrame\".toBoolean() else null",
49+
"val frontendContext = LetsPlot.setupNotebook(\"$js\", isolatedFrameParam) {DISPLAY(HTML(it))}",
50+
"LetsPlot.apiVersion = \"$api\"",
51+
"// Load library JS",
52+
"DISPLAY(HTML(frontendContext.getConfigureHtml()))"
53+
],
54+
"renderers": {
55+
"org.jetbrains.letsPlot.intern.Plot": "HTML(frontendContext.getHtml($it as org.jetbrains.letsPlot.intern.Plot))",
56+
"org.jetbrains.letsPlot.intern.figure.SubPlotsFigure": "HTML(frontendContext.getHtml($it as org.jetbrains.letsPlot.intern.figure.SubPlotsFigure))",
57+
"org.jetbrains.letsPlot.GGBunch": "HTML(frontendContext.getHtml($it as org.jetbrains.letsPlot.GGBunch))"
58+
}
1259
}

0 commit comments

Comments
 (0)