Skip to content

Commit 923dc0f

Browse files
authored
Merge pull request #359 from Kotlin/upd_viz_examples_to_kandy
Migrate visualization in examples from lets-plot to kandy
2 parents 399b2f5 + 08aff0c commit 923dc0f

File tree

18 files changed

+46738
-9655
lines changed

18 files changed

+46738
-9655
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/jupyter/SampleNotebooksTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SampleNotebooksTests : DataFrameJupyterTest() {
109109
cleanup: () -> Unit = {},
110110
) {
111111
val fileName = if (notebookName == null) "$dir.ipynb" else "$notebookName.ipynb"
112-
doTest("$jupyterExamplesPath/$dir/$fileName", replacer, cellClause, cleanup)
112+
doTest("$notebookExamplesPath/$dir/$fileName", replacer, cellClause, cleanup)
113113
}
114114

115115
data class CodeCellData(
@@ -119,8 +119,8 @@ class SampleNotebooksTests : DataFrameJupyterTest() {
119119

120120
companion object {
121121
const val ideaExamplesPath = "../examples/idea-examples"
122-
const val jupyterExamplesPath = "../examples/jupyter-notebooks"
122+
const val notebookExamplesPath = "../examples/notebooks"
123123

124-
fun testFile(folder: String, fileName: String) = fileName to "$jupyterExamplesPath/$folder/$fileName"
124+
fun testFile(folder: String, fileName: String) = fileName to "$notebookExamplesPath/$folder/$fileName"
125125
}
126126
}

examples/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@
1111
* people [Datalore](https://datalore.jetbrains.com/view/notebook/aOTioEClQQrsZZBKeUPAQj)
1212
Small artificial dataset used in [DataFrame API examples](https://kotlin.github.io/dataframe/operations.html)
1313

14-
* puzzles ([Jupyter](jupyter-notebooks/puzzles/40%20puzzles.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/CVp3br3CDXjUGaxxqfJjFF)) –
14+
* puzzles ([notebook](notebooks/puzzles/40%20puzzles.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/CVp3br3CDXjUGaxxqfJjFF)) –
1515
Inspired [by 100 pandas puzzles](https://github.com/ajcr/100-pandas-puzzles). You will go from the simplest tasks to
1616
complex problems where need to think. This notebook will show you how to solve these tasks with the Kotlin
1717
Dataframe in a laconic, beautiful style.
1818
___
19-
* movies ([Jupyter](jupyter-notebooks/movies/movies.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/89IMYb1zbHZxHfwAta6eKP)) –
19+
* movies ([notebook](notebooks/movies/movies.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/89IMYb1zbHZxHfwAta6eKP)) –
2020
In this notebook you can see the basic operations of the Kotlin Dataframe on data from [movielens](https://movielens.org/).
2121
You can take the data from the [link](https://grouplens.org/datasets/movielens/latest/).
2222
___
23-
* netflix ([Jupyter](jupyter-notebooks/netflix/netflix.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/wB6Vq1oKU3GniCi1i05l2X)) –
23+
* netflix ([notebook](notebooks/netflix/netflix.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/xSJ4rx49hcH71pPnFgZBCq)) –
2424
Explore TV shows and movies from Netflix with the powerful Kotlin Dataframe API and beautiful
2525
visualizations from [lets-plot](https://github.com/JetBrains/lets-plot-kotlin).
2626
___
27-
* github ([Jupyter](jupyter-notebooks/github/github.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/wGlYql3ObFCloN0YpWR1Xw)) –
27+
* github ([notebook](notebooks/github/github.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/P9n6jYL4mmY1gx3phz5TsX)) –
2828
This notebook shows the hierarchical dataframes look like and how to work with them.
2929
___
30-
* titanic ([Jupyter](jupyter-notebooks/titanic/Titanic.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/B5YeMMONSAR78FgKQ9yJyW)) –
30+
* titanic ([notebook](notebooks/titanic/Titanic.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/B5YeMMONSAR78FgKQ9yJyW)) –
3131
Let's see how the new library will show itself on the famous Titanic dataset.
3232
___
33-
* wine ([Jupyter](jupyter-notebooks/wine/WineNetWIthKotlinDL.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/aK9vYHH8pCA8H1KbKB5WsI)) –
33+
* wine ([notebook](notebooks/wine/WineNetWIthKotlinDL.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/aK9vYHH8pCA8H1KbKB5WsI)) –
3434
Wine. Kotlin Dataframe. KotlinDL. What came out of this can be seen in this notebook.
3535
___
36-
* youtube ([Jupyter](jupyter-notebooks/youtube/Youtube.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/uXH0VfIM6qrrmwPJnLBi0j)) –
36+
* youtube ([notebook](notebooks/youtube/Youtube.ipynb)/[Datalore](https://datalore.jetbrains.com/view/notebook/uXH0VfIM6qrrmwPJnLBi0j)) –
3737
Explore YouTube videos with YouTube REST API and Kotlin Dataframe

examples/jupyter-notebooks/github/github.ipynb

Lines changed: 0 additions & 2968 deletions
This file was deleted.

0 commit comments

Comments
 (0)