holgerbrandl / krangl

krangl is a {K}otlin DSL for data w{rangl}ing
MIT License
560 stars 50 forks source link

In Jupyter notebook: can't use a desired version of lets-plot when also using krangl. #143

Open alshan opened 2 years ago

alshan commented 2 years ago

In my notebook I'm using both, lets-plot and krangl libraries.

I've specified a particular version of lets-plot but noticed that notebook loads lets-plot' class-files that belong to a different lets-plot version.

For example, in the version I wanted to use, function ggtitle() has (new) parameter subtitle. However, when I'm trying to use this function I'm getting an error:

image

The issue occurs it seems due to lets-plot dependency in krangl maven artifact:

    <dependency>
      <groupId>org.jetbrains.lets-plot</groupId>
      <artifactId>lets-plot-kotlin-jvm</artifactId>
      <version>3.0.1</version>
      <scope>compile</scope>
    </dependency>

https://search.maven.org/artifact/com.github.holgerbrandl/krangl/0.17/jar


Would you consider building another krangl artifact - without this dependency, to be used specifically in Jupyter/Datalore notebooks with Jupyter Kotlin Kernel?

alshan commented 2 years ago

This dependency is also a possible cause of some of the issues with krangl usage in Android projects (https://github.com/holgerbrandl/krangl/issues/123#issuecomment-1030651415), as AFAIK Apache Batik is not built for Android.