Skip to content

Commit b78f5e1

Browse files
authored
Merge pull request #1 from AndreyG/master
add language_info to kernel_info_reply
2 parents 2922692 + e90d8af commit b78f5e1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Alpha version. Tested only with jupyter 4.1.1 on OS X so far.
88

99
## Example
1010

11-
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)
11+
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)
1212
project's `ConvolutionExample.java`).*
1313

1414
The notebook itself is located in the `samples` folder.

src/main/kotlin/org/jetbrains/kotlin/jupyter/ikotlin.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ fun JupyterConnection.Socket.shellMessagesHandler(msg: Message, repl: ReplForJup
111111
content = jsonObject(
112112
"protocol_version" to protocolVersion,
113113
"language" to "Kotlin",
114-
"language_version" to KotlinVersion.VERSION
114+
"language_version" to KotlinVersion.VERSION,
115+
"language_info" to jsonObject("name" to "kotlin", "file_extension" to "kt")
115116
)))
116117
"history_request" ->
117118
send(makeReplyMessage(msg, "history_reply",

0 commit comments

Comments
 (0)