Skip to content

Commit b2df4f0

Browse files
Feat: Notebooks: mention we can set a version for libraries (#4995)
* notebooks: mention we can set a version * Mention v= * Update docs/topics/data-analysis/kotlin-notebook-add-dependencies.md Co-authored-by: alejandrapedroza <[email protected]> * Update docs/topics/data-analysis/kotlin-notebook-add-dependencies.md Co-authored-by: alejandrapedroza <[email protected]> --------- Co-authored-by: alejandrapedroza <[email protected]>
1 parent ac1854d commit b2df4f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/topics/data-analysis/kotlin-notebook-add-dependencies.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ However, Kotlin Notebook has a simplified method to load popular libraries in th
2222
```kotlin
2323
// Replace libraryName with the library dependency you want to add
2424
%use libraryName
25+
// Specify a version, if required
26+
%use libraryName(version)
27+
// Add v= to trigger autocomplete
28+
%use libraryName(v=version)
29+
// Example: kotlinx.datetime:0.7.1
30+
%use datetime(v=0.7.1)
2531
```
2632

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

0 commit comments

Comments
 (0)