Closed holgerbrandl closed 3 years ago
Another nice way to support this would be to integrate it with the SciView in the IDE. Clearly, this would tie support to just the IDE, but would enable nice analytics when/after running kotlin applications for many users.
I agree, the show()
method should show plot out of the box. I'm planning to add a simple window for beginning. Later we can develop it to a more sophisticated viewer, ideally supporting various plots (lets-plot, kravis).
What are your plans on the viewer you have in kravis already?
The SciView is also an option but I'm not sure now if it's available without the Python plugin. Also it's a "pro" feature not available in community edition.
Indeed I totally forgot that SciView is not just part of the professional edition.
I was thinking of adding at least a preview bar (simular to the one in SciView) to bypass the rather annoying forward/backward navigation panel. But until now this is more a vague idea than an actual plan (because of too many higher priority tasks).
When trying to render a simple plot in a kotlin application
it just dies
It would be cool if (depending on the chosen backend (jfx, batik) a corresponding window could that simply shows the plot.
Currently the user has to dig through the code-base in particular https://github.com/JetBrains/lets-plot-kotlin/blob/master/demo/jvm-batik/src/main/kotlin/minimalDemo/Main.kt to to finally implement a utility to achieve this core functionality
Note: Clearly this extension lacks beauty as it is does not adjust the plot width when the user resizes the window. A better approach (similar how PyCharm does it in the ide) would be a small tabbed windows where all plots the users shows with![image](https://user-images.githubusercontent.com/200952/107847699-fa5ce200-6ded-11eb-81aa-4d6e009fdf8a.png)
.show()
are grouped together. In kravis I've implemented a similar output viewer (although not really pretty as of now):