https://kotlinlang.org logo
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
  • a

    altavir

    12/28/2021, 6:04 PM
    Look. A web service inside the notebook: https://gist.github.com/altavir/c959ca422288924b493fb7fc4c68220a. I saw a task for C++ recruitment in twitter and decided to try to do it in the notebook. It works!
    👍 1
    🙌 3
    • 1
    • 1
  • h

    holgerbrandl

    01/01/2022, 5:05 PM
    Hi, Is version 0.11.0-45 of the jupyter gradle plugin (org.jetbrains.kotlin.jupyter.api) meant as replacement of 0.10.0-131-1 ? Why is the latest version on maven-central https://mvnrepository.com/artifact/org.jetbrains.kotlin.jupyter.api/org.jetbrains.kotlin.jupyter.api.gradle.plugin still 0.10.0-53? I'm a bit lost here.
    i
    a
    • 3
    • 13
  • a

    altavir

    01/02/2022, 10:48 AM
    By the way, I am finalizing some things in VisionForge. Now I have fully working forms and widgets with bi-directional support as well as plots and 3d rendering. I am thinking about adding interactive tables and we are going to do a production release and a paper.
    • 1
    • 1
  • h

    holgerbrandl

    01/03/2022, 8:35 AM
    Double.MAX_VALUE-1< Double.MAX_VALUE
    is wrong on the JVM (because of limited precision) although it is conceptually true. But what's the largest
    Double
    for which the assumption holds also on the JVM?
    a
    • 2
    • 1
  • h

    Hampus Londögård

    01/04/2022, 3:27 PM
    londogard-nlp-toolkit 1.1.0 release! 🥳 One of the, if not the, best NLP toolkit on the JVM. GitHub - londogard/londogard-nlp-toolkit Some of the updates includes optimizations, classifiers, vectorizers & unsupervised keyword extraction. See 🧵 for more details
    🎉 3
    👍 4
    h
    • 2
    • 7
  • h

    holgerbrandl

    01/04/2022, 4:12 PM
    Is it just me, or is the new Duration API still struggling in Jupyter (or vice versa):
    a
    • 2
    • 2
  • a

    altavir

    01/05/2022, 1:20 PM
    Added bi-directional integration with DataFrame to Tables.kt: https://github.com/mipt-npm/tables-kt/blob/master/tables-kt-dataframe/src/test/kotlin/space/kscience/dataforge/dataframe/DataFrameTableTest.kt. Working with DataFrame outside of notebook is hard
    👍 5
    :kotlin-intensifies: 1
    🤠 1
    h
    • 2
    • 9
  • h

    holgerbrandl

    01/06/2022, 3:52 PM
    Could you also ping https://nteract.io/kernels already/again regarding the addition of the kotlin kernel?
    a
    i
    • 3
    • 5
  • h

    Hampus Londögård

    01/06/2022, 6:11 PM
    Anyone used
    @tensorflow/tfjs
    from KotlinJS?
    z
    • 2
    • 2
  • h

    holgerbrandl

    01/09/2022, 12:39 PM
    It feels like dark magic: When using the kotlin-notebook IDE integration plugin, it "eats " away commas and opening round brackets. That is: I type them, but they do not appear irrespective of the cell type. Is this a known problem?
    a
    r
    +2
    • 5
    • 7
  • h

    holgerbrandl

    01/09/2022, 10:26 PM
    In the past, I could use
    Class.forName("jupyter.kotlin.KotlinContext")
    to test if my code is running within the jupyter kernel. But with the improved integration via
    kotlin-jupyter-api-0.11.0-45.jar
    this test does no longer work, because the jar ships with the
    KotlinContext
    . How could I now perform such a test?
    r
    i
    • 3
    • 3
  • h

    holgerbrandl

    01/10/2022, 7:13 AM
    message has been deleted
    :kotlin-intensifies: 2
    a
    • 2
    • 1
  • h

    holgerbrandl

    01/11/2022, 10:48 AM
    Is there some tutorial or documentation teaching how to build an interactive vis in a jupyter notebook? I was just reading https://mesa.readthedocs.io/en/latest/ and the engine bits are already part of kalasim, but the fun bit about mesa is its integrated interactive viewer, which I guess could also live in a jupyter notebook.
    a
    • 2
    • 4
  • t

    thomasnield

    01/11/2022, 9:56 PM
    https://blog.jetbrains.com/kotlin/2020/12/lets-plot-in-kotlin/
    a
    h
    • 3
    • 5
  • h

    Hampus Londögård

    01/13/2022, 12:36 PM
    Anyone that built predictors on top of either Kmath or Multik? Like SKLearn.
    a
    p
    z
    • 4
    • 13
  • t

    thomasnield

    01/14/2022, 2:25 AM
    Does anybody know how hard it is to configure a notebook to run both Python and Kotlin? Been having a good time writing Kotlin notebooks for a customer but occasionally I want to show Python sidebars too.
    i
    h
    a
    • 4
    • 7
  • t

    thomasnield

    01/22/2022, 5:04 AM
    What's the state of Kotlin notebooks and 3D plotting? As well as 3D animation? Had anybody had success animating physics simulations in 3D? Or just plotting 3D charts…
    i
    a
    • 3
    • 7
  • c

    Carter

    01/26/2022, 5:20 PM
    The thing I did try was adding fake datapoints at the beginning of the plot, one for each label. By controlling the order, I hoped to control the colors. But it didn’t seem to have the effect I wanted.
    i
    • 2
    • 6
  • h

    Hampus Londögård

    01/31/2022, 6:51 AM
    Did a small writeup this weekend; https://blog.londogard.com/blog/kotlinjs-onnx-deep-learning-browser It’s on how you can use ONNX-webruntime from KotlinJS to run inference inside the browser (which works the same on all OS:s)! A .gif of the DL inference can be found here

    https://user-images.githubusercontent.com/7490199/151235880-2546faa6-5798-48b4-84b9-db71c20808d8.gif▾

    👍 2
    a
    z
    • 3
    • 6
  • h

    hfhbd

    02/04/2022, 11:27 AM
    Hey, do you know a jvm/Kotlin library for signal correlation, similar to scipy? https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.correlate.html and https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.correlation_lags.html#scipy.signal.correlation_lags
    a
    • 2
    • 2
  • e

    elect

    03/03/2022, 1:42 PM
    sorry for the off-topic, but if you are a scientist, postdoc, phd or master based in Ukraine, Casus may help you relocating into Germany (feel free to PM me)
    i
    z
    • 3
    • 3
  • c

    Carter

    03/04/2022, 12:22 PM
    I’m trying to import the kotlinx datetime library into a jupyter notebook. I thought I understand the syntax, but apparently not.
    @file:DependsOn("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
    %useLatestDescriptors
    %use lets-plot
    
    import java.util.Random
    import kotlinx.datetime.Instant
    Running that yields the error
    Line_214.jupyter-kts (6:25 - 32) Unresolved reference: Instant
    What am I missing?
    a
    i
    • 3
    • 13
  • c

    Carter

    03/05/2022, 2:22 PM
    I’m using LetsPlot to graph a line (electrocardiogram) plus a scatterplot of detected R peaks. This helps visualize whether the R peak detection algorithm is working correctly. The ECG line looks great. The problem is that the R peak scatterplot is behaving strangely. About half the points appear on top of the line graph as expected, but then some points cluster at the end of the graph in the top right corner.
    a
    i
    • 3
    • 13
  • c

    Carter

    03/05/2022, 11:31 PM
    As a quick followup: When I use the same data with JFreeChart, the graph looks as expected. So I’m suspecting something specific to LetsPlot.
    i
    • 2
    • 2
  • a

    Alexandre Brown

    04/01/2022, 7:15 PM
    Hello, is MultiK still maintained by JetBrains? Looks like all development suddenly stopped... https://github.com/Kotlin/multik
    a
    z
    p
    • 4
    • 5
  • a

    Alexandre Brown

    04/03/2022, 5:45 AM
    @Pavel Gorgulov Hello, could you provide an update on this issue ?https://github.com/Kotlin/multik/issues/92 We are seeing very high memory usage spikes from 750MB to 9GB of RAM after preprocessing where we create a tensor of size 500, 3, 512, 612 using
    mk.ndarray(it, batchSize, 3, targetHeight, targetWidth)
    I tried chunking it to batches of 4 but I still hit 5GB RAM usage from this line
    👀 1
    p
    • 2
    • 4
  • i

    Icyrockton

    04/13/2022, 7:29 AM
    Hi I'm using spark mllib with kotlin . but get an error
    fun main() {
        withSpark {
            dsOf(c(1, 2, 0.4f), c(2, 2, 0.5f)).map {
                ALS.Rating(it._1, it._2, it._3)
            }.show()
        }
    }
    Exception in thread "main" java.lang.ClassCastException: kotlin.reflect.jvm.internal.KTypeImpl cannot be cast to kotlin.jvm.internal.TypeReference
    a
    p
    +2
    • 5
    • 39
  • p

    Peter

    04/14/2022, 1:34 PM
    Is there a way to run pre-release versions in Kotlin notebooks? Have been playing with context receivers, but when enabling that in 1.6.20 it creates pre-prerelease versions of my libs that cannot be loaded in Jupyter kernels.
    i
    a
    • 3
    • 5
  • p

    Peter

    04/16/2022, 4:00 PM
    Used
    JupyterReplTestCase
    since a long time to automate some regression testing of notebooks and it always worked fine. But now I’m trying slightly different setup with a lib.json file containing some imports (before this was handled by
    JupyterIntegration
    ) and I cannot get it to work. In my notebook:
    %use roboquant@url[<https://roboquant.org/roboquant.json>]
    In my unit test:
    class NotebookTester() : JupyterReplTestCase(ReplProvider.forLibrariesTesting(listOf("roboquant"))) { ... }
    But if I try this, the imports that are defined in the roboquant.json are ignored. Anyone know what I’m doing wrong or how I can get the imports in the roboquant.json files to be used for my unit test (other then specifying them explicitly in my notebooks) ?
    i
    • 2
    • 10
  • i

    Iaroslav Postovalov

    04/21/2022, 11:28 AM
    @Ilya Muradyan which Maven dependency scope should I use for adding Kotlin Jupyter API when making an library definition producer:
    provided
    or
    compile
    ?
    i
    • 2
    • 2
Powered by Linen
Title
i

Iaroslav Postovalov

04/21/2022, 11:28 AM
@Ilya Muradyan which Maven dependency scope should I use for adding Kotlin Jupyter API when making an library definition producer:
provided
or
compile
?
i

Ilya Muradyan

04/21/2022, 11:32 AM
If you are going to use this artifact only in Jupyter notebooks, then definitely
provided
.
i

Iaroslav Postovalov

04/21/2022, 11:32 AM
Yes, I am. Thanks.
View count: 6