From e68b809791462ebfb8ea7691fd5bd1d31f3c90d2 Mon Sep 17 00:00:00 2001 From: Andrey Davydov Date: Sat, 27 Aug 2016 10:33:49 +0300 Subject: [PATCH 1/2] add language_info to kernel_info_reply --- src/main/kotlin/org/jetbrains/kotlin/jupyter/ikotlin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/jetbrains/kotlin/jupyter/ikotlin.kt b/src/main/kotlin/org/jetbrains/kotlin/jupyter/ikotlin.kt index ba80d069a..60eba0870 100644 --- a/src/main/kotlin/org/jetbrains/kotlin/jupyter/ikotlin.kt +++ b/src/main/kotlin/org/jetbrains/kotlin/jupyter/ikotlin.kt @@ -111,7 +111,8 @@ fun JupyterConnection.Socket.shellMessagesHandler(msg: Message, repl: ReplForJup content = jsonObject( "protocol_version" to protocolVersion, "language" to "Kotlin", - "language_version" to KotlinVersion.VERSION + "language_version" to KotlinVersion.VERSION, + "language_info" to jsonObject("name" to "kotlin", "file_extension" to "kt") ))) "history_request" -> send(makeReplyMessage(msg, "history_reply", From e90d8af1b81e12798549e503c9b531778c5dbfeb Mon Sep 17 00:00:00 2001 From: Andrey Davydov Date: Sat, 27 Aug 2016 11:15:30 +0300 Subject: [PATCH 2/2] README typo fix --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3693ca6ff..c4972cf05 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ Alpha version. Tested only with jupyter 4.1.1 on OS X so far. ## Example -Example notebook output is [here](http://htmlpreview.github.com/?https://github.com/ligee/kotlin-jupyter/blob/master/samples/KotlinSample01.html). *(It is ported form [Gral](https://github.com/eseifert/gral) +Example notebook output is [here](http://htmlpreview.github.com/?https://github.com/ligee/kotlin-jupyter/blob/master/samples/KotlinSample01.html). *(It is ported from [Gral](https://github.com/eseifert/gral) project's `ConvolutionExample.java`).* The notebook itself is located in the `samples` folder.