jupyter的可扩展内核
ansible-kernel的Python项目详细描述
#Ansible Jupyter内核
[![构建状态](https://travis-ci.org/benthomasson/ansible-jupyter-kernel.svg?branch=master)(https://travis ci.org/benthomasson/ansible jupyter kernel)
[![活页夹](https://mybinder.org/badge.svg)(https://mybinder.org/v2/gh/ansible/ansible jupyter kernel/master)
![jupyter用法示例](https://raw.githubusercontent.com/ansible/ansible jupyter kernel/master/docs/example撸session.png)
ansible[jupyter](http://jupyter.readthedocs.io/en/latest/)内核为jupyter添加了一个内核后端,用于直接与ansible接口并构造播放和任务并在运行中执行。
\demo
[![演示](https://raw.githubusercontent.com/ansible/ansible jupyter kernel/master/docs/ansible_jupyter_kernel_vimeo.png)(https://vimeo.com/279049946"从jupyter笔记本运行ansible任务-单击观看!")
*[安装](安装)
*[从pypi(从pypi(从pypi(从pypi)开始]
*[从本地签出](\35;从-a-本地-签出)
*[用法]
*[使用单元格](;使用单元格)
*[用法]
*[用法](;用法]
*[使用单元格](;使用单元格)
*[示例](;示例)
*[使用示例]
*[使用单元格]
*[使用单元格]
*[使用单元格]
*[使用单元格]
*发展环境](使用开发环境)
安装程序包本身将自动向"jupyter"注册内核。
Ansible嫒u kernel.install
从"new"菜单中选择ansible
``
\container
,然后将输出的url复制到浏览器中:
http://localhost:8888/?token=abcd1234
\对于这个
`jupyter`接口,您需要在单元格中提供此信息,方法是指示单元格包含的内容,然后最后编写将使用它们的任务。有[例子](例子)可以帮助你,在本节中,我们将介绍当前支持的单元格类型。
为了表示单元格包含的内容,您应该在单元格前面加上一个磅/哈希符号(),并将此处列出的类型作为下面示例中所示的第一行。
您的任务将使用
```
br/>主机:all
gather_facts: false
```
#### #task
This is the default cell type if no type is given for the first line
```
#task
debug:
```
```
#task
shell: cat /tmp/afile
register: output
```
#### #host_vars
This takes 表示主机名的参数。此文件中定义的变量
将在该主机的任务中可用。
````
此文件中定义的变量
将在该
组中的主机的任务中可用。
`````
日后的牢房
```
``
```
```
```
` `
` ` `
` ` ` `
` ` ` ` `
` ` ` ` `
` `
` ` `
` `
` ` ` `
` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` template
这需要一个参数来创建可以在以后的单元格中使用的模板化文件
````
`` ` ` ` `
` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
提供通常在ansible.cfg
```
ansible.cfg
[默认值]
主机密钥检查=false
```
环境
您可以使用任何您觉得合适的python开发过程。存储库本身包括使用[pipenv]的
机制(https://github.com/pypa/pipenv)
````
pipenv install
…
pipenv shell
```
[![构建状态](https://travis-ci.org/benthomasson/ansible-jupyter-kernel.svg?branch=master)(https://travis ci.org/benthomasson/ansible jupyter kernel)
[![活页夹](https://mybinder.org/badge.svg)(https://mybinder.org/v2/gh/ansible/ansible jupyter kernel/master)
![jupyter用法示例](https://raw.githubusercontent.com/ansible/ansible jupyter kernel/master/docs/example撸session.png)
ansible[jupyter](http://jupyter.readthedocs.io/en/latest/)内核为jupyter添加了一个内核后端,用于直接与ansible接口并构造播放和任务并在运行中执行。
\demo
[![演示](https://raw.githubusercontent.com/ansible/ansible jupyter kernel/master/docs/ansible_jupyter_kernel_vimeo.png)(https://vimeo.com/279049946"从jupyter笔记本运行ansible任务-单击观看!")
*[安装](安装)
*[从pypi(从pypi(从pypi(从pypi)开始]
*[从本地签出](\35;从-a-本地-签出)
*[用法]
*[使用单元格](;使用单元格)
*[用法]
*[用法](;用法]
*[使用单元格](;使用单元格)
*[示例](;示例)
*[使用示例]
*[使用单元格]
*[使用单元格]
*[使用单元格]
*[使用单元格]
*发展环境](使用开发环境)
安装程序包本身将自动向"jupyter"注册内核。
Ansible嫒u kernel.install
从"new"菜单中选择ansible
``
\container
,然后将输出的url复制到浏览器中:
http://localhost:8888/?token=abcd1234
\对于这个
`jupyter`接口,您需要在单元格中提供此信息,方法是指示单元格包含的内容,然后最后编写将使用它们的任务。有[例子](例子)可以帮助你,在本节中,我们将介绍当前支持的单元格类型。
为了表示单元格包含的内容,您应该在单元格前面加上一个磅/哈希符号(),并将此处列出的类型作为下面示例中所示的第一行。
您的任务将使用
```
br/>主机:all
gather_facts: false
```
#### #task
This is the default cell type if no type is given for the first line
```
#task
debug:
```
```
#task
shell: cat /tmp/afile
register: output
```
#### #host_vars
This takes 表示主机名的参数。此文件中定义的变量
将在该主机的任务中可用。
````
此文件中定义的变量
将在该
组中的主机的任务中可用。
`````
日后的牢房
```
``
```
```
```
` `
` ` `
` ` ` `
` ` ` ` `
` ` ` ` `
` `
` ` `
` `
` ` ` `
` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` template
这需要一个参数来创建可以在以后的单元格中使用的模板化文件
````
`` ` ` ` `
` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
提供通常在ansible.cfg
```
ansible.cfg
[默认值]
主机密钥检查=false
```
环境
您可以使用任何您觉得合适的python开发过程。存储库本身包括使用[pipenv]的
机制(https://github.com/pypa/pipenv)
````
pipenv install
…
pipenv shell
```