Skip to content

Commit

Permalink
fix usage of the ``` markup that lead to broken formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed Jun 1, 2018
1 parent 9d285a1 commit 63ca2b0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/interpreter/groovy.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ g.table(


* `String g.getProperty('PROPERTY_NAME')`

```groovy
g.PROPERTY_NAME
g.'PROPERTY_NAME'
Expand Down
33 changes: 25 additions & 8 deletions docs/interpreter/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,51 @@ The interpreter can use all modules already installed (with pip, easy_install...

- get the Conda Infomation:

```%python.conda info```
```
%python.conda info
```

- list the Conda environments:

```%python.conda env list```
```
%python.conda env list
```

- create a conda enviornment:
```%python.conda create --name [ENV NAME]```

```
%python.conda create --name [ENV NAME]
```

- activate an environment (python interpreter will be restarted):

```%python.conda activate [ENV NAME]```
```
%python.conda activate [ENV NAME]
```

- deactivate

```%python.conda deactivate```
```
%python.conda deactivate
```

- get installed package list inside the current environment

```%python.conda list```
```
%python.conda list
```

- install package

```%python.conda install [PACKAGE NAME]```
```
%python.conda install [PACKAGE NAME]
```

- uninstall package

```%python.conda uninstall [PACKAGE NAME]```
```
%python.conda uninstall [PACKAGE NAME]
```

### Docker

Expand Down
2 changes: 2 additions & 0 deletions docs/setup/security/shiro_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,15 @@ If you want to grant this permission to other users, you can change **roles[ ]**

### Apply multiple roles in Shiro configuration
By default, Shiro will allow access to a URL if only user is part of "**all the roles**" defined like this:

```
[urls]
/api/interpreter/** = authc, roles[admin, role1]
```

If there is a need that user with "**any of the defined roles**" should be allowed, then following Shiro configuration can be used:

```
[main]
anyofroles = org.apache.zeppelin.utils.AnyOfRolesAuthorizationFilter
Expand Down

0 comments on commit 63ca2b0

Please sign in to comment.