In [3]:
import org.apache.spark.sql.DataFrame

In [4]:
val seq = (0 until 3).map(i => (i, i)).toSeq
val df = spark.sqlContext.createDataFrame(seq)


seq = Vector((0,0), (1,1), (2,2))
df = [_1: int, _2: int]
Out[4]:
[_1: int, _2: int]

In [5]:
%%brunel data('df') x(_1) y(_2) bar  style("fill:red") filter(_1:2) :: width=300, height=300


                'topojson' : '//cdnjs.cloudflare.com/aja...
Out[5]:

In [6]:
%%brunel data('df') x(_1) y(_2) point   filter(_2, _1) :: width=300, height=300


                'brunel' : 'https://brunelvis.org/js/...
Out[6]:

In [7]:
%%brunel  map('uk','france','spain','germany')


                'brunel' : 'https://brunelvis.org/js/...
Out[7]:

In [22]:
%%brunel data('raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f') edge key(A, B) + 
         data('raw:I;a;b;c;d;e;f;g') network color(I) key(I) legends(none) style('fill-opacity:1')


<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
     ^
<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
         ^
<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
             ^
<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
                 ^
<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
                     ^
<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
                         ^
<console>:1: error: ';' expected but ',' found.
raw:A,B;a,b;a,c;a,d;b,c;a,e;e,f
                             ^
Out[22]:
Magic brunel failed to execute with error: 
compile-time error

In [ ]: