Add dependencies to your Kotlin Notebook

Edit pageLast modified: 11 December 2024

You've already created your first Kotlin Notebook! Now let's learn how to add dependencies to libraries, which is necessary to unlock advanced features.

You can load any library from the Maven repository by specifying its coordinates using Gradle-style syntax in any code cell. However, Kotlin Notebook has a simplified method to load popular libraries in the form of the %use statement:

You can also use the autocompletion feature in Kotlin Notebook to quickly access available libraries:

Autocompletion feature in Kotlin Notebook