-
Notifications
You must be signed in to change notification settings - Fork 21
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
PlotlyKt not working with Kotlin Jupyter notebook #108
Comments
@parrotcar00 I just tested and static version seems to work fine both with version
Dynamic version (server mode) works in jupyter lab but does not work in IDEA. If you do not need dynamic updates of your plots, switch from The dependency configuration for static rendering looks like this: @file:CompilerArgs("-jvm-target=11")
@file:Repository("https://repo.kotlin.link")
@file:DependsOn("space.kscience:plotlykt-jupyter-jvm:0.7.1.1") |
@zaleslaw it works in jupyter lab, but does not work in IDEA, so the problem is probably on IDEA side. |
@SPC-code commented out the server dependency |
You should add |
Restarted both the IDE and the kernel in between runs, still the same issue |
OK, it is strange, but I run it the second time. And now it does not work even in static regime. |
I tried it multiple times and sometimes it works. I think it could be something like a data race in resource loading. I think it should be fixed in new version of Plotly-kt that works on top of VisionForge because it uses lazy resource loading. So stay tuned. |
Plotly kt not working in Kotlin Jupyter notebook in IntelliJ Ultimate version Build #IU-243.23654.153.
Looks like other people are also seeing this issue:
https://youtrack.jetbrains.com/issue/KTNB-578/plotly.kt-plots-are-not-rendered-in-notebook
Here's the code that I tried:
These are the dependencies I have defined in my project build.gradle.kts:
When I run the above code, I don't get any plot output. I just get a truncated output of "A custom header"
The text was updated successfully, but these errors were encountered: