@@ -139,7 +139,7 @@ interface ReplForJupyter {
139
139
140
140
suspend fun serializeVariables (cellId : Int , topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, callback : (SerializationReply ) -> Unit )
141
141
142
- suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, pathToDescriptor : List <String > = emptyList(),
142
+ suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, commID : String = "", pathToDescriptor : List <String > = emptyList(),
143
143
callback : (SerializationReply ) -> Unit )
144
144
145
145
val homeDir: File ?
@@ -568,9 +568,8 @@ class ReplForJupyterImpl(
568
568
doWithLock(SerializationArgs (descriptorsState, cellId = cellId, topLevelVarName = topLevelVarName, callback = callback), serializationQueue, SerializationReply (cellId, descriptorsState), ::doSerializeVariables)
569
569
}
570
570
571
- override suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, pathToDescriptor : List <String >,
572
- callback : (SerializationReply ) -> Unit ) {
573
- doWithLock(SerializationArgs (descriptorsState, topLevelVarName = topLevelVarName, callback = callback, pathToDescriptor = pathToDescriptor), serializationQueue, SerializationReply (), ::doSerializeVariables)
571
+ override suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, commID : String , pathToDescriptor : List <String >, callback : (SerializationReply ) -> Unit ) {
572
+ doWithLock(SerializationArgs (descriptorsState, topLevelVarName = topLevelVarName, callback = callback, comm_id = commID ,pathToDescriptor = pathToDescriptor), serializationQueue, SerializationReply (), ::doSerializeVariables)
574
573
}
575
574
576
575
private fun doSerializeVariables (args : SerializationArgs ): SerializationReply {
@@ -585,7 +584,7 @@ class ReplForJupyterImpl(
585
584
}
586
585
log.debug(" Serialization cellID: $cellId " )
587
586
log.debug(" Serialization answer: ${resultMap.entries.first().value.fieldDescriptor} " )
588
- return SerializationReply (cellId, resultMap)
587
+ return SerializationReply (cellId, resultMap, args.comm_id )
589
588
}
590
589
591
590
@@ -626,6 +625,7 @@ class ReplForJupyterImpl(
626
625
var cellId : Int = -1 ,
627
626
val topLevelVarName : String = " " ,
628
627
val pathToDescriptor : List <String > = emptyList(),
628
+ val comm_id : String = " " ,
629
629
override val callback : (SerializationReply ) -> Unit
630
630
) : LockQueueArgs<SerializationReply>
631
631
0 commit comments