https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
datascience
  • e

    elect

    02/24/2021, 2:25 PM
    hi, what's the best interop lib in order to offer your kotlin lib to python users (jython/py4j)?
    a
    • 2
    • 5
  • c

    Carter

    02/24/2021, 3:21 PM
    Is this the right place for discussing Kotlin Jupyter notebooks? I’m curious if there is a way to access a maven repo that requires authentication? I’m currently loading artifacts from
    mavenLocal
    with a notebook running on my desktop, although I was hoping to publish to a private GitHub Packages repo and pull this into a notebook running in the cloud.
    :yes: 1
    a
    • 2
    • 15
  • f

    Florian Magin

    02/26/2021, 12:22 PM
    @Ilya Muradyan did you come to any decision on publishing the Kotlin Kernel as a package? I am currently setting up automatic builds of my plugin that depends on the Kotlin kernel. I can just use the workaround I have been using before and grab the libraries from the Python package, but that is a bit inelegant.
    i
    • 2
    • 18
  • р

    Ролан

    03/09/2021, 3:38 PM
    @Maria Khalusova why not using transformers for that NLP task?
    m
    h
    • 3
    • 8
  • h

    holgerbrandl

    03/10/2021, 10:00 AM
    Is it possible to use kotlin-lets-plot without jcenter already or is the migration still in progress? The docs still seem to point to jcenter.
    m
    i
    • 3
    • 2
  • f

    Florian Magin

    03/11/2021, 6:18 PM
    @Ilya Muradyan there is something weird going on with the maven package for the kernel that I managed to reduce to a simple PoC: I have one class that simply tries to embed the kernel:
    import org.jetbrains.kotlinx.jupyter.IkotlinKt;
    import java.io.*;
    
    
    public class BugDemo {
    
        public static void main(String[] args) {
            IkotlinKt.embedKernel(
                    new File(args[1]),
                    null,
                    null);
        }
    }
    a default gradle file as generated by IntelliJ for a new project that specifies the maven package as a dependency
    plugins {
        id 'java'
    }
    
    group 'org.example'
    version '1.0-SNAPSHOT'
    
    repositories {
        jcenter()
        mavenCentral()
    }
    
    dependencies {
        implementation 'org.jetbrains.kotlinx:kotlin-jupyter-kernel:0.8.3.281'
    }
    Building then fails with:
    gradle classes
    
    > Task :compileJava FAILED
    error: org.jetbrains.kotlinx.jupyter.libraries.ResolutionInfoProvider: class file for org.jetbrains.kotlinx.jupyter.libraries.ResolutionInfoProvider not found
    /home/fmagin/gits/jupyter-gradle-test/src/main/java/BugDemo.java:5: error: cannot access ResolutionInfoProvider
    public class BugDemo {
           ^
      class file for org.jetbrains.kotlinx.jupyter.libraries.ResolutionInfoProvider not found
    1 error
    
    FAILURE: Build failed with an exception.
    I have no idea if this is a bug or if I am doing something wrong.
    i
    • 2
    • 8
  • h

    Hampus Londögård

    03/11/2021, 6:48 PM
    Just did a 1.0-SNAPSHOT release of some NLP tools I've thrown together 🎉 https://github.com/londogard/londogard-nlp-toolkit 🧵 for details
    :thumbsup_all: 6
    i
    • 2
    • 10
  • r

    Rafał Trójczak

    03/21/2021, 1:52 PM
    Hello! Is there a way to use kotlinx.coroutines with Kotlin Jupyter Kernel?
    a
    • 2
    • 17
  • d

    Dieter Konrad

    03/23/2021, 9:21 AM
    I want to read data from postgresql database into jupyter notebook. Is there any library for such a task in jupyter kotlin?
    %use ???
    a
    i
    c
    • 4
    • 10
  • e

    elect

    03/23/2021, 4:21 PM
    anyone here using kotlin-numpy? I'm trying to port some python to kotlin, specifically
    nr_expected_exponents = binom(m + n, n) // nr_expected_exponents: np.ndarray
    but if I try
    binomial(m + n, doubleArrayOf(n.toDouble())
    then I get
    Cannot run program "python" (in directory "/tmp/nativeKtNumPy2138897567746194273"): error=2, No such file or directory
    java.io.IOException: Cannot run program "python" (in directory "/tmp/nativeKtNumPy2138897567746194273"): error=2, No such file or directory
    👀 2
    i
    i
    a
    • 4
    • 29
  • p

    Peter

    03/30/2021, 6:44 PM
    Hi, I embedded the EChart library in Kotlin Jupyter and got it all working. Very nice overall experience, I can see Kotlin for interactive development really working out for many use-cases. But I noticed different behavior between a notebook and lab environment. If I use a notebook, I have to use the iframe solution, aka HTML(..., true) otherwise it won't work since the JavaScript library doesn't get initialized. And when using a Jupyter lab it is exactly the opposite, so I have to use the regular embedded HTML option HTML(..., false). 1. It there a way to auto detect in which environment my code is running (even in the Notebook API I couldn't find this function) so I can make these changes without bothering users 2. I didn't notice this difference in the past when using Python in notebooks and labs (but might have missed it). Is this a deliberate choice or enforced by the Jupyter platforms?
    a
    r
    i
    • 4
    • 7
  • t

    therealbluepandabear

    04/04/2021, 4:08 AM
    Getting "Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap"
    a
    • 2
    • 1
  • a

    altavir

    04/05/2021, 10:21 AM
    A blogpost on Kotlin-Jupyter-Kernel 0.9 arived: https://blog.jetbrains.com/kotlin/2021/04/kotlin-kernel-for-jupyter-notebook-v0-9-0/
    🎉 3
    p
    t
    • 3
    • 3
  • i

    Iaroslav Postovalov

    04/06/2021, 1:23 PM
    @Ilya Muradyan Is it possible to delegate rendering of an object to Jupyter? Use case: I have an
    Any
    object, and I want to render it inside my layout.
    a
    i
    • 3
    • 13
  • р

    Ролан

    04/07/2021, 9:10 AM
    For those of view doing some computer vision on JVM - how would you go about using OpenCV - (I) get it from sources as in official documentation - (II) use bytedeco stuff - (III) something else (please specify)? Thanks
    h
    a
    • 3
    • 19
  • р

    Ролан

    04/07/2021, 2:13 PM
    Anyone else would share his/her experience running CV applications on JVM? (this is not about android) thanks
    • 1
    • 1
  • p

    Peter

    04/08/2021, 9:37 AM
    Have been playing around with new notebook API, and nice improvement over the JSON file. What I'm now trying is to get DISPLAY functionality to work using the API. So for example how to translate the following code snippet using the new API (DISPLAY doesn't seem to be exposed by the new API):
    for (asset in assets) {
    val html = CandlestickChart(asset).render()
    DISPLAY(HTML(html))
    }
    I noticed the passed Notebook instance should be able to help with this (like currentCell etc), but cannot figure out last part of puzzle? Any hints?
    i
    • 2
    • 4
  • f

    Filipe Duarte

    04/08/2021, 4:56 PM
    Hi, I would like to recieve opinions on Kotlin for data science and scientific research. I'm have been using Python but know I want to invest some time in learning another language with tools good performance. So, I started to learn Scala and have been enjoying, but I saw some articles showing the tools developed for Kotlin in respect to libraries for deep learning and differential programming. #datascience #science
    a
    р
    +2
    • 5
    • 27
  • р

    Ролан

    04/12/2021, 6:36 PM
    @zaleslaw do you think it is possible to build DCGANs with KotlinDL? They have stuff like LeaklyReLU, BatchNorm2d for example?
    f
    z
    • 3
    • 7
  • f

    Filipe Duarte

    04/16/2021, 4:06 PM
    Do you know any time series manipulation and modelling libraries for Kotlin?
    a
    р
    • 3
    • 57
  • z

    zaleslaw

    04/27/2021, 10:33 AM
    Today I want to share with you my presentation about an upcoming 0.2 KotlinDL release (0.2-alpha-1 artifact is available now on Maven Central). Currently, the KotlinDL framework can boast that this is the only way to construct and train complex neural networks on JVM, such as VGG, ResNet, or MobileNet. There is also support for transfer learning for the popular models trained in Keras (or available in Keras. applications). For image preprocessing, several functions are available that allow you to avoid complex and routine work on the JVM. Code from the demo: https://github.com/zaleslaw/KotlinDL-Demo/tree/demo-1 Library: https://github.com/JetBrains/KotlinDL

    https://www.youtube.com/watch?v=jCFZc97_XQU▾

    P.S. Support our project with a star on Github!
    👍 9
    🔥 1
    р
    • 2
    • 15
  • h

    Hampus Londögård

    05/01/2021, 9:46 AM
    How would I go ahead and display an image in Kotlin Jupyter Notebook? Using BoofCV which can output BufferedImage, floatArray/intArray or a swing GUI (doesnt work because no X11 it says on datalore)
    i
    i
    • 3
    • 6
  • a

    altavir

    05/03/2021, 5:54 PM
    Julia reported release of their own DataFrame: https://dataframes.juliadata.org/stable/. Right now they are probably the main competition to emerging Kotlin for Data ecosystem, so we whould study it. 🧵
    :party-parrot: 5
    i
    h
    • 3
    • 13
  • h

    Hampus Londögård

    05/05/2021, 9:40 AM
    Is there a way to print information about a method/object/class in jupyter? Like documentation or inputs? This is possible in Python by using
    ??
    which is really nice
    a
    • 2
    • 2
  • h

    Hampus Londögård

    05/05/2021, 12:22 PM
    Is there a way to have interactive components like a Slider in Jupyter for Kotlin? 😄
    a
    • 2
    • 8
  • a

    altavir

    05/05/2021, 1:25 PM
    For some time I was thinking about doing a video-tutorial on how to do your own jupyter integration including front-end and back-end module. Please add some kind of reaction if you would like that.
    👍 9
    🤩 6
    h
    • 2
    • 6
  • p

    Peter

    05/08/2021, 7:40 PM
    I'm using my own own integration with Jupyter and in general things work great. But since I moved my artifacts to a local maven (instead of referring directly to a jar file), my plugin fails to pickup the latest versions. Is there perhaps anywhere some caching of artifacts at the Kotlin kernel level that could explain this behavior? BTW I don't update the artifact versionId since this is a SNAPSHOT.
    i
    • 2
    • 2
  • l

    LeoColman

    05/11/2021, 5:29 AM
    Hey guys! As https://github.com/thomasnield/kotlin-statistics is no longer maintained, I forked it to https://github.com/LeoColman/Kaucasus, and I intend to keep it updated. Check it out and tell me what you think! How can we keep improving this wonderful project?
    a
    • 2
    • 5
  • a

    Alan Pierri

    05/11/2021, 10:18 PM
    Does anyone know a way to use SciView in a Kotlin Intellij Idea, like a Jupyter/Datalore with Kotlin kernel but ran on Idea? I was hoping to use Let's Plot locally from the IDE (no notebook).
    👀 1
    a
    e
    i
    • 4
    • 5
  • h

    Hampus Londögård

    05/12/2021, 6:05 AM
    Is there a way to activate autocomplete without hitting tab in
    jupyter-lab
    ? This is actually working as I'd like in
    jupyter-notebook
    which makes me confused. I tried adding
    hinterland
    but didn't seem to help for Kotlin kernel
    i
    • 2
    • 4
Powered by Linen
Title
h

Hampus Londögård

05/12/2021, 6:05 AM
Is there a way to activate autocomplete without hitting tab in
jupyter-lab
? This is actually working as I'd like in
jupyter-notebook
which makes me confused. I tried adding
hinterland
but didn't seem to help for Kotlin kernel
i

Ilya Muradyan

05/12/2021, 8:59 AM
There is an extension in Notebook that makes it work. No such extension for Lab ATM, but if someone wants to make it up, I will provide all the needed info and help. https://github.com/Kotlin/kotlin-jupyter/issues/188
h

Hampus Londögård

05/12/2021, 9:03 AM
What would you approximate as time required for someone to complete this?
i

Ilya Muradyan

05/12/2021, 9:25 AM
One needs to find an appropriate extension point(s) to use: https://jupyterlab.readthedocs.io/en/stable/extension/extension_dev.html#developer-extensions Examples there may help. For completion, you should only send completion requests when user types, I think it's a couple of days deal. For errors reporting, you should send a custom request to kernel and process its response. UI also needs to be added. I think it's a week or so.
h

Hampus Londögård

05/12/2021, 9:55 AM
A week is way too much for me to find time 😞
View count: 7