@@ -142,7 +142,7 @@ interface ReplForJupyter {
142
142
143
143
suspend fun serializeVariables (cellId : Int , topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, callback : (SerializationReply ) -> Unit )
144
144
145
- suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, pathToDescriptor : List <String > = emptyList(),
145
+ suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, commID : String = "", pathToDescriptor : List <String > = emptyList(),
146
146
callback : (SerializationReply ) -> Unit )
147
147
148
148
val homeDir: File ?
@@ -576,9 +576,8 @@ class ReplForJupyterImpl(
576
576
doWithLock(SerializationArgs (descriptorsState, cellId = cellId, topLevelVarName = topLevelVarName, callback = callback), serializationQueue, SerializationReply (cellId, descriptorsState), ::doSerializeVariables)
577
577
}
578
578
579
- override suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, pathToDescriptor : List <String >,
580
- callback : (SerializationReply ) -> Unit ) {
581
- doWithLock(SerializationArgs (descriptorsState, topLevelVarName = topLevelVarName, callback = callback, pathToDescriptor = pathToDescriptor), serializationQueue, SerializationReply (), ::doSerializeVariables)
579
+ override suspend fun serializeVariables (topLevelVarName : String , descriptorsState : Map <String , SerializedVariablesState >, commID : String , pathToDescriptor : List <String >, callback : (SerializationReply ) -> Unit ) {
580
+ doWithLock(SerializationArgs (descriptorsState, topLevelVarName = topLevelVarName, callback = callback, comm_id = commID ,pathToDescriptor = pathToDescriptor), serializationQueue, SerializationReply (), ::doSerializeVariables)
582
581
}
583
582
584
583
private fun doSerializeVariables (args : SerializationArgs ): SerializationReply {
@@ -593,7 +592,7 @@ class ReplForJupyterImpl(
593
592
}
594
593
log.debug(" Serialization cellID: $cellId " )
595
594
log.debug(" Serialization answer: ${resultMap.entries.first().value.fieldDescriptor} " )
596
- return SerializationReply (cellId, resultMap)
595
+ return SerializationReply (cellId, resultMap, args.comm_id )
597
596
}
598
597
599
598
@@ -634,6 +633,7 @@ class ReplForJupyterImpl(
634
633
var cellId : Int = -1 ,
635
634
val topLevelVarName : String = " " ,
636
635
val pathToDescriptor : List <String > = emptyList(),
636
+ val comm_id : String = " " ,
637
637
override val callback : (SerializationReply ) -> Unit
638
638
) : LockQueueArgs<SerializationReply>
639
639
0 commit comments