Skip to content

Commit d578f13

Browse files
authored
Add plotly descriptors (#103)
* Add plotly descriptors * Fix kmath descriptor
1 parent 25f9f0d commit d578f13

File tree

4 files changed

+72
-2
lines changed

4 files changed

+72
-2
lines changed

docs/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ List of supported libraries:
168168
- [gral](https://github.com/eseifert/gral) - Java library for displaying plots
169169
- [khttp](https://github.com/jkcclemens/khttp) - HTTP networking library
170170
- [klaxon](https://github.com/cbeust/klaxon) - JSON parser for Kotlin
171-
- [kmath](https://github.com/mipt-npm/kmath) - Kotlin mathematical library analogous to NumPy
171+
- [kmath](https://github.com/mipt-npm/kmath) - Experimental Kotlin mathematical library operating on generic algebras
172172
- [koma](https://koma.kyonifer.com/index.html) - Scientific computing library
173173
- [kotlin-statistics](https://github.com/thomasnield/kotlin-statistics) - Idiomatic statistical operators for Kotlin
174174
- [krangl](https://github.com/holgerbrandl/krangl) - Kotlin DSL for data wrangling
@@ -177,6 +177,8 @@ List of supported libraries:
177177
- [lets-plot-dataframe](https://github.com/JetBrains/lets-plot-kotlin) - A bridge between lets-plot and dataframe libraries
178178
- [mysql](https://github.com/mysql/mysql-connector-j) - MySql JDBC Connector
179179
- [numpy](https://github.com/Kotlin/kotlin-numpy) - Kotlin wrapper for Python NumPy package
180+
- [plotly](https://github.com/mipt-npm/plotly.kt) - An experimental plotly.kt integration module. Supports static plots and HTML dashboards.
181+
- [plotly-server](https://github.com/mipt-npm/plotly.kt) - An experimental plotly.kt-server integration module. Allows dynamic rendering of changing plots.
180182
- [smile](https://github.com/haifengl/smile) - Statistical Machine Intelligence and Learning Engine
181183
- [spark](https://github.com/apache/spark) - Unified analytics engine for large-scale data processing
182184

libraries/kmath.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "Kotlin mathematical library analogous to NumPy",
2+
"description": "Experimental Kotlin mathematical library operating on generic algebras",
33
"properties": {
44
"v": "0.1.3"
55
},

libraries/plotly-server.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"imports": [
3+
"kscience.plotly.*",
4+
"kscience.plotly.models.*",
5+
"kscience.plotly.server.JupyterPlotlyServer",
6+
"hep.dataforge.meta.*",
7+
"kotlinx.html.*"
8+
],
9+
"repositories": [
10+
"https://dl.bintray.com/mipt-npm/dataforge",
11+
"https://dl.bintray.com/mipt-npm/kscience",
12+
"https://dl.bintray.com/mipt-npm/dev"
13+
],
14+
"properties": {
15+
"v": "0.2.0",
16+
"port": 8882
17+
},
18+
"link": "https://github.com/mipt-npm/plotly.kt",
19+
"description": "An experimental plotly.kt-server integration module. Allows dynamic rendering of changing plots.",
20+
"dependencies": [
21+
"kscience.plotlykt:plotlykt-server:$v"
22+
],
23+
"init": [
24+
"DISPLAY(HTML(JupyterPlotlyServer.start($port).toString()))",
25+
"DISPLAY(HTML(\"<p>Plotly.kt jupyter integration is in the development phase. Expect glitches! Classic jupyter notebook is not fully supported.</p>\"))"
26+
],
27+
"shutdown":[
28+
"DISPLAY(HTML(JupyterPlotlyServer.stop().toString()))"
29+
],
30+
"renderers": {
31+
"kscience.plotly.HtmlFragment": "HTML($it.toString())",
32+
"kscience.plotly.Plot": "HTML(JupyterPlotlyServer.renderPlot($it))",
33+
"kscience.plotly.PlotlyFragment": "HTML(JupyterPlotlyServer.renderFragment($it))",
34+
"kscience.plotly.PlotlyPage": "HTML(JupyterPlotlyServer.renderPage($it), true)"
35+
}
36+
}

libraries/plotly.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"imports": [
3+
"kscience.plotly.*",
4+
"kscience.plotly.models.*",
5+
"kscience.plotly.JupyterPlotly",
6+
"hep.dataforge.meta.*",
7+
"kotlinx.html.*"
8+
],
9+
"repositories": [
10+
"https://dl.bintray.com/mipt-npm/dataforge",
11+
"https://dl.bintray.com/mipt-npm/kscience",
12+
"https://dl.bintray.com/mipt-npm/dev"
13+
],
14+
"properties": {
15+
"v": "0.2.0"
16+
},
17+
"link": "https://github.com/mipt-npm/plotly.kt",
18+
"description": "An experimental plotly.kt integration module. Supports static plots and HTML dashboards.",
19+
"dependencies": [
20+
"kscience.plotlykt:plotlykt-core-jvm:$v"
21+
],
22+
"init": [
23+
"DISPLAY(HTML(JupyterPlotly.loadJs().toString()))",
24+
"DISPLAY(HTML(\"<p>Plotly.kt jupyter integration is in the development phase. Expect glitches! Classic jupyter notebook is not fully supported.</p>\"))"
25+
],
26+
"renderers": {
27+
"kscience.plotly.HtmlFragment": "HTML($it.toString())",
28+
"kscience.plotly.Plot": "HTML(JupyterPlotly.renderPlot($it))",
29+
"kscience.plotly.PlotlyFragment": "HTML(JupyterPlotly.renderFragment($it))",
30+
"kscience.plotly.PlotlyPage": "HTML(JupyterPlotly.renderPage($it), true)"
31+
}
32+
}

0 commit comments

Comments
 (0)