Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZEPPELIN-74 Update document for changing interpreter selection from %[name] to %[group].[name] #115

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 47 additions & 0 deletions docs/development/writingzeppelininterpreter.md
Expand Up @@ -46,6 +46,7 @@ for example,

### Use your interpreter

#### 0.5.0
Inside of a notebook, %[INTERPRETER_NAME] directive will call your interpreter.
Note that the first interpreter configuration in zeppelin.interpreters will be the default one.

Expand All @@ -58,6 +59,52 @@ val a = "My interpreter"
println(a)
```

<br />
#### 0.6.0 and later
Inside of a noteobok, %[INTERPRETER\_GROUP].[INTERPRETER\_NAME] directive will call your interpreter.
Note that the first interpreter configuration in zeppelin.interpreters will be the default one.

You can omit either [INTERPRETER\_GROUP] or [INTERPRETER\_NAME]. Omit [INTERPRETER\_NAME] selects first available interpreter in the [INTERPRETER\_GROUP].
Omit '[INTERPRETER\_GROUP]' will selects [INTERPRETER\_NAME] from defualt interpreter group.


For example, if you have two interpreter myintp1 and myintp2 in group mygrp,

you can call myintp1 like

```
%mygrp.myintp1

codes for myintp1
```

and you can call myintp2 like

```
%mygrp.myintp2

codes for myintp2
```

If you ommit your interpreter name, it'll selects first available interpreter in the group (myintp1)

```
%mygrp

codes for myintp1

```

You can only ommit your interpreter group when your interpreter group is selected as a default group.

```
%myintp2

codes for myintp2
```




### Examples

Expand Down