Update environment to include version (#59)

* Update environment.md

* Update environment.md
This commit is contained in:
amin saied 2021-05-18 11:30:40 -07:00 коммит произвёл GitHub
Родитель f7282a2c66
Коммит 126d8b335f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -168,6 +168,20 @@ envs: Dict[str, Environment] = ws.environments
This dictionary contains custom environments that have been registered to the workspace as well as a
collection of _curated environments_ maintained by Azure ML.
#### Example.
```python
# create / update, register environment
env = Environment.from_pip_requirements('my-env', 'requirements.txt')
env.register(ws)
# use later
env = ws.environments['my-env']
# get a specific version
env = Environment.get(ws, 'my-env', version=6)
```
### Save / Load Environments
Save an environment to a local directory: