-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM target in Jupyter #328
Comments
Hello! Could you please update version to the latest dev? |
Many kandy features may not work with an older version of kernel. However, you specify your JVM version: |
Hi! What is the output of System.getProperty("java.version") when you use this newly created kernel? |
Also, please update to the latest kernel version, namely |
OK it appears I was able to solve this issue by taking a hint from this comment from 2020 and adding the following line to
as the second-to-last line in the function, right above the Ultimately this feels like this should be addressed by the kernel developers, not kandy, however using the kandy package (or lets-plot) raises the error, so perhaps some documentation for potential users would be helpful. I think this only affects Python-based Jupyter (not Kotlin notebooks) but it is tricky because you don't have a normal command line on which to add arguments, and no Gradle to set the configuration options. Appreciate the help! |
With the newer versions of kernel it shouldn't be needed, so probably several versions of kernel including older ones are installed on your computer. I'm glad that the problem is resolved |
Hope that is the case- however I installed the newest Python (3.12.2), created a brand new virtual environment, installed only 2 packages (via pip)
Me too! Spent way too many hours on setup. Happy it's working now. |
@AndreiKingsley Can I close this issue or we have some related issues? |
No, I suppose we can close it, no recent related issues. |
Using version 0.11.0.385 of the Kotlin Jupyter kernel in a traditional (web-based) Jupyter notebook (not IDEA Kotlin notebook).
added kandy with
%use kandy(0.5.0)
and now when I try to plot I get the error:This is in the browser, not a Gradle project, how would I add this command-line flag, or is there another way to make the projects work together?
note: I downgraded to kandy 0.4.2 which does not specify JVM 11 in its
build.gradle.kts
and eliminated this error -- but a number of plot types are missing of course2nd note: I created and used a custom kernel with JVM 21:
python -m kotlin_kernel add-kernel --name "JDK21" --jdk ./path/to/jdk21
and still got the same error message`The text was updated successfully, but these errors were encountered: