Kotlin notebook not finding sources of local project

21 views Asked by At

I have a simple kotlin gradle project and I'd like to use the Kotlin notebook to try out quickly my code.

The Kotlin notebook is supposed to be able to access the sources of a local project but those can't actuallty be found:

enter image description here

Steps to reproduce:

  • Generate a Gradle project
gradle init \
  --type kotlin-application \
  --dsl kotlin \
  --package my.project \
  --project-name my-project  \
  --no-split-project  \
  --java-version 17
  • Add a playground.ipynb to the project
1

There are 1 answers

0
Jan On

One has to go to the Kotlin Notebook settings on the top of the notebook to "Select modules to use in the Notebook". There I needed to select on which of my modules the notebook depends

enter image description here