Plotly and IntelliJ IDEA (Scala)

The below code executes fine but without displaying the window I am waiting for. I believe it’s a problem due to my IDE (IntelliJ IDEA), which just launches the console impeding it from displaying any window. How could I solve that ? Is there any option within the IDE to check e.g. ?

import co.theasi.plotly.{Plot, draw}

object Main {
  def main(args : Array[String]) : Unit = {

    val xs = 0.0 to 2.0 by 0.1
    val ys = xs.map { x => x*x }
    val plot = Plot().withScatter(xs, ys)
    draw(plot, "my-first-plot")

  }
}

The same problem occures for someone else : https://community.plotly.com/t/i-can-not-see-my-graph-after-a-successful-execution-in-scala

Note that charts are actually created and stored in the servers, as I can see them in the Plotly’s Web interface.

Solution : draw just generates and sends the data to Plotly’s servers ; it doesn’t display a window containing the charts.
Cf. : https://stackoverflow.com/questions/48244473/plotly-and-intellij-idea