tests/data/notebooks/outputs/ipynb_to_myst/simple_scala_notebook.md
raw| 1 | --- |
| 2 | kernelspec: |
| 3 | display_name: Apache Toree - Scala |
| 4 | language: scala |
| 5 | name: apache_toree_scala |
| 6 | --- |
| 7 | |
| 8 | ```{code-cell} scala |
| 9 | // This is just a simple scala notebook |
| 10 | |
| 11 | object SampleObject { |
| 12 | def calculation(x: Int, y: Int): Int = x + y |
| 13 | } |
| 14 | |
| 15 | val result = SampleObject.calculation(1, 2) |
| 16 | ``` |
| 17 | |
| 18 | ```{code-cell} scala |
| 19 | println(result * 10) |
| 20 | ``` |