齐柏林飞艇-注意

时间:2019-12-12 13:57:34

标签: groovy apache-zeppelin

我想使用Groovy创建动态的“选择”。 选择范围应该是笔记本。

Zeppelin版本:0.8.0

问题在于,当我尝试使用g.noteSelect时会遇到异常。 在检查g上可用的方法之后,很明显noteSelect不是g方法。

如何创建具有动态特性的动态(笔记本范围)选择?

我的代码:

%groovy

def tunnels =  ['c':'c','v':'v']
//g.noteSelect('SelectTunnel', 'None', tunnels)
print(org.apache.zeppelin.groovy.GObject.declaredMethods.findAll { !it.synthetic }.name)

输出

class org.apache.zeppelin.groovy.GObject[html, startOutputType, toParamOptions, getAngularObject, angular, angularBind, angularBind, getInterpreterContextRunner, getInterpreterContextRunner, runNote, runNote, runAll, runAll, checkbox, checkbox, select, select, input, input, getGui, run, run, run, get, get, put, setProperty, getProperty, getProperties, table]

1 个答案:

答案 0 :(得分:0)

我的解决方案是使用scala(%spark),以便可以使用z.noteSelect(..)