Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3a7fed

Browse files
committed
updated README for descriptors option for libraries.json files.
1 parent e71460b commit a3a7fed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/libraries.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,13 +933,20 @@ resources. This file should contain FQNs of all integration classes in the JSON
933933
{
934934
"fqn": "org.jetbrains.kotlinx.jupyter.example.GettingStartedIntegration"
935935
}
936-
]
936+
],
937+
"descriptors": []
937938
}
938939
```
939940

940941
Classes derived from the `LibraryDefinition` interface should be added to the `definitions` array.
941942
Classes derived from the `LibraryDefinitionProducer` interface should be added to the `producers` array.
942943

944+
Additionally, you're allowed to add full custom library descriptors to the `descriptors` array.
945+
This is an advanced option that allows you to load additional dependencies or add additional imports using the
946+
[library descriptor API](#creating-a-library-descriptor).
947+
This can be particularly useful for libraries that cannot depend on the jupyter-api artifact but still want to modify
948+
the kernel behavior when loaded.
949+
943950
For more information, see:
944951

945952
* [Libraries repository](https://github.com/Kotlin/kotlin-jupyter-libraries)

0 commit comments

Comments
 (0)