vegas-viz / Vegas

The missing MatPlotLib for Scala + Spark
MIT License
730 stars 99 forks source link

Spark - Vegas - Zeppelin - Trying to plot a simple bar graph. It is just printing the html file and not rendering. #143

Open infoankitp opened 6 years ago

infoankitp commented 6 years ago

Below is the code that I have written. and the output:

screenshot from 2018-06-22 14-08-53

I have added the implicit

val render = vegas.render.ShowHTML(s => print("%html " + s))

Still no success with Zeppelin. I am using Spark 2.2.1 and Vegas 0.3.11

oshikiri commented 5 years ago

@infoankitp One of quick workarounds may be setting zeppelin.spark.printREPLOutput = false in the Spark interpreter menu.

EDIT: executing plot.show in another cell is also working in my environment.

infoankitp commented 5 years ago

@oshikiri Thanks a lot. Both of these worked for me.

oshikiri commented 5 years ago

👍

Reopened because we still need to take some actions (updating documents or fixing the behavior).