<@UQ8NE6A86> Is it possible to delegate rendering ...
# datascience
i
@Ilya Muradyan Is it possible to delegate rendering of an object to Jupyter? Use case: I have an
Any
object, and I want to render it inside my layout.
message has been deleted
a
Clarification. Iaroslav wants to acces renderers currently registered in the notebook. In theory, it should be possible with the Notebook API.
i
Yes, I understand. It's not currently possible, but it's rather simple to support
a
I am not sure that this feature could be used broadly, but it indeed seems to be simple. It probably also possible to add renderers dynamically...
...which opens up a lot of new possibilities.
i
i
@altavir @Iaroslav Postovalov Review API please: https://github.com/Kotlin/kotlin-jupyter/pull/183
BTW, this automatically adds a possibility to add new renderers dynamically as @altavir mentioned
i
@Ilya Muradyan Стоп, я тут понял, что это не совсем то, что нужно. Эта функция позволяет делегировать отрисовку значения из ячейки, но я бы хотел делегировать отрисовку произвольного значения
🏴󠁧󠁢󠁥󠁮󠁧󠁿 2
a
fun renderValue(host: ExecutionHost, value: Any?): Any?
This one seems to allow rendering the value
i
Nope, value_to_be_rendered in the example is actually arbitrary
i
Got it.
i
Use
0.9.0-22
version of API with this feature added