# Kotlin Kernel
This is a small Jupyter kernel wrapping the Kotlin language.
The only reason for it’s existence is, that I could not get [ligee’s Kotlin kernel](https://github.com/ligee/kotlin-jupyter) (is it the official Kotlin kernel) to work. That could be build and installed but was always crashing as soon as I created a new notebook.
## Installation
To install the kotlin_kernel from PyPi:
`bash pip install kotlin_kernel python -m kotlin_kernel.install `
To work on this code directly, you may want to:
`bash git clone git@github.com:HelgeCPH/kotlin_kernel.git cd kotlin_kernel pip install . python -m kotlin_kernel.install `
## Dependencies
This kernel requires that you have the Kotlin CLI tools installed on your computer. Currently, I only tested this kernel on MacOS, where I installed Kotlin and kotlinc-jvm via [homebrew](https://brew.sh).
Anyway’s, this kernel should work on any system on which kotlinc-jvm is installed and added to the PATH.
The reason for this dependency is that this kernel is a really slim wrapper around the Kotlin REPL via peexpect.
## Using the Kotlin Kernel
Notebook: The New menu in the notebook should show an option for an Kotlin notebook.
Console frontends: To use it with the console frontends, add –kernel kotlin to their command line arguments.
That should be it…
## TODO:
I am planning to add support for a configuration file, so that a classpath for the kotlinc-jvm session can be set.
I started investigating integration of the [Kotlin language server protocol implementation](https://github.com/fwcd/KotlinLanguageServer) for code completion.
Support streaming results. Currently, results of stuff like generateSequence(0) { it + 1 }.forEach { println(it) } cannot be displayed (neither stopped, support that too :))
Metadata
Release files for kotlin_kernel 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kotlin_kernel-0.0.2.tar.gz | 5.0 kB | Without provenance | Details for kotlin_kernel-0.0.2.tar.gz |
Release files / kotlin_kernel-0.0.2.tar.gz
| Download URL | kotlin_kernel-0.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92f0ab6b0c05ae3423bd03e21f850f74b2d459db598da17b99e91a9f6a2faa31
|
|
BLAKE2b-256 checksum How to use checksums |
27a9629669d319d544cb4a40561315cf0603c44c4d8f3008edc67b258b62a91a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for kotlin_kernel 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.