forked from coltfred/wisp
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lucas Partridge edited this page Oct 15, 2015
·
10 revisions
This is a fork of Wisp. Apache Zeppelin has limited plotting capability, although it's growing all the time! The purpose of this fork is to allow Zeppelin users to create Highcharts plots within their Zeppelin notebook paragraphs using Scala syntax.
$ git clone https://github.com/cacti77/wisp.git
$ cd wisp
$ sbt 'project wisp' ++2.10.5 assembly
From within a notebook's paragraph, issue these commands:
%dep
z.reset()
z.load("/<your_path>/wisp/core/target/scala-2.10/Wisp-assembly-0.0.4.jar")
In another paragraph, do this to make the new commands available:
import com.quantifind.charts.Figures._
(Precede this with %spark if spark is not your default interpreter.)
All of these can be issued in the same paragraph:
val fig1 = newFigure()
fig1.pie(1 to 5)
fig1.line((1 to 10), (1 to 10))
fig1.show()