Skip to content

Commit f6d809a

Browse files
committed
migrate youtube notebook to kandy
1 parent cef943e commit f6d809a

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

examples/notebooks/youtube/Youtube.ipynb

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@
976976
}
977977
],
978978
"source": [
979-
"%use lets-plot"
979+
"%use kandy"
980980
]
981981
},
982982
{
@@ -1032,11 +1032,12 @@
10321032
}
10331033
],
10341034
"source": [
1035-
"letsPlot(channels.sortBy { viewCount.desc() }.toMap()) +\n",
1036-
" geomBar(stat = Stat.identity) {\n",
1037-
" x = \"channelTitle\"\n",
1038-
" y = \"viewCount\"\n",
1039-
" }"
1035+
"channels.sortBy { viewCount.desc() }.plot {\n",
1036+
" bars {\n",
1037+
" x(channelTitle)\n",
1038+
" y(viewCount)\n",
1039+
" }\n",
1040+
"}"
10401041
]
10411042
},
10421043
{
@@ -1097,21 +1098,13 @@
10971098
}
10981099
],
10991100
"source": [
1100-
"letsPlot(growth.toMap()) + \n",
1101-
" geomArea {\n",
1102-
" x = \"publishedAt\"\n",
1103-
" y = \"viewCount\"\n",
1104-
" \n",
1105-
" scaleXDateTime()\n",
1106-
" }"
1101+
"growth.plot {\n",
1102+
" area {\n",
1103+
" x(publishedAt)\n",
1104+
" y(viewCount)\n",
1105+
" }\n",
1106+
"}"
11071107
]
1108-
},
1109-
{
1110-
"cell_type": "code",
1111-
"execution_count": null,
1112-
"metadata": {},
1113-
"outputs": [],
1114-
"source": []
11151108
}
11161109
],
11171110
"metadata": {
@@ -1127,7 +1120,7 @@
11271120
"name": "kotlin",
11281121
"nbconvert_exporter": "",
11291122
"pygments_lexer": "kotlin",
1130-
"version": "1.8.0-dev-707"
1123+
"version": "1.8.20-Beta"
11311124
}
11321125
},
11331126
"nbformat": 4,

0 commit comments

Comments
 (0)