@@ -17,7 +17,7 @@ import org.jetbrains.kotlinx.jupyter.codegen.FieldsProcessor
17
17
import org.jetbrains.kotlinx.jupyter.codegen.FieldsProcessorImpl
18
18
import org.jetbrains.kotlinx.jupyter.codegen.FileAnnotationsProcessor
19
19
import org.jetbrains.kotlinx.jupyter.codegen.FileAnnotationsProcessorImpl
20
- import org.jetbrains.kotlinx.jupyter.codegen.TypeRenderersProcessor
20
+ import org.jetbrains.kotlinx.jupyter.codegen.ResultsTypeRenderersProcessor
21
21
import org.jetbrains.kotlinx.jupyter.codegen.TypeRenderersProcessorImpl
22
22
import org.jetbrains.kotlinx.jupyter.common.looksLikeReplCommand
23
23
import org.jetbrains.kotlinx.jupyter.compiler.CompilerArgsConfigurator
@@ -307,7 +307,11 @@ class ReplForJupyterImpl(
307
307
executedCodeLogging != ExecutedCodeLogging .Off
308
308
)
309
309
310
- private val typeRenderersProcessor: TypeRenderersProcessor = TypeRenderersProcessorImpl (contextUpdater)
310
+ private val typeRenderersProcessor: ResultsTypeRenderersProcessor = run {
311
+ val processor = TypeRenderersProcessorImpl (contextUpdater)
312
+ notebook.typeRenderersProcessor = processor
313
+ processor
314
+ }
311
315
312
316
private val fieldsProcessor: FieldsProcessor = FieldsProcessorImpl (contextUpdater)
313
317
@@ -421,11 +425,11 @@ class ReplForJupyterImpl(
421
425
currentClasspath.addAll(newClasspath)
422
426
if (trackClasspath) {
423
427
val sb = StringBuilder ()
424
- if (newClasspath.count() > 0 ) {
428
+ if (newClasspath.isNotEmpty() ) {
425
429
sb.appendLine(" ${newClasspath.count()} new paths were added to classpath:" )
426
430
newClasspath.sortedBy { it }.forEach { sb.appendLine(it) }
427
431
}
428
- if (oldClasspath.count() > 0 ) {
432
+ if (oldClasspath.isNotEmpty() ) {
429
433
sb.appendLine(" ${oldClasspath.count()} resolved paths were already in classpath:" )
430
434
oldClasspath.sortedBy { it }.forEach { sb.appendLine(it) }
431
435
}
0 commit comments