{"id":17625401,"url":"https://github.com/cben/ansible_jupyter_kernel","last_synced_at":"2025-10-27T06:01:49.084Z","repository":{"id":147391268,"uuid":"93965316","full_name":"cben/ansible_jupyter_kernel","owner":"cben","description":"[PyCon IL 2017] WIP Jupyter kernel for executing Ansible plays","archived":false,"fork":false,"pushed_at":"2017-06-13T12:03:49.000Z","size":667,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T20:02:03.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cben.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-10T21:05:38.000Z","updated_at":"2019-07-12T20:38:17.000Z","dependencies_parsed_at":"2023-07-11T16:02:28.891Z","dependency_job_id":null,"html_url":"https://github.com/cben/ansible_jupyter_kernel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cben%2Fansible_jupyter_kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cben%2Fansible_jupyter_kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cben%2Fansible_jupyter_kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cben%2Fansible_jupyter_kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cben","download_url":"https://codeload.github.com/cben/ansible_jupyter_kernel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252523419,"owners_count":21761913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T22:42:31.148Z","updated_at":"2025-10-27T06:01:49.026Z","avatar_url":"https://github.com/cben.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"ansible_jupyter_kernel\n======================\n\nWIP Jupyter kernel for executing Ansible plays\n\nUsage\n-----\n\n    $ git clone https://github.com/cben/ansible_jupyter_kernel\n    $ cd ansible_jupyter_kernel\n    $ pip3 install . [--user]\n\n(can't `pip install ansible_jupyter_kernel`, not uploaded to PyPI yet)\n\nNote that \"develop mode\" `pip install -e .` does not copy `kernel.json` into the correct place.\nYou can manually create a directory `/usr/share/jupyter/kernels/ansible/`, `~/.local/share/jupyter/kernels/ansible/`, or `\u003cvirtualenv\u003e/share/jupyter/kernels/ansible/` and copy `kernel.json` there.\n\nLicense\n-------\n\nGPL v3 or later, same as Ansible.\n\nPrior Art\n---------\n\nSome people have been using Ansible inside Jupyter:\n\n- https://github.com/NII-cloud-operation/Literate-computing-Basics\n  - https://www.youtube.com/watch?v=xyfdufiibQk\n- http://enakai00.hatenablog.com/entry/2016/04/22/204125\n- https://chusiang.gitbooks.io/automate-with-ansible/content/07.how-to-practive-the-ansible-with-jupyter1.html\n- https://www.slideshare.net/irix_jp/osc2016-kyoto-heat-ansible-jupyter\n- https://chusiang.gitbooks.io/automate-with-ansible/content/07.how-to-practive-the-ansible-with-jupyter1.html,\n  https://chusiang.gitbooks.io/automate-with-ansible/content/08.how-to-practive-the-ansible-with-jupyter2.html\n\nAFAICT all these are running a Python kernel and shelling out using `!ansible` syntax, or `%%writefile ...playbook.yml` followed by `!ansible-notebook`.\n\nThat might actually be more flexible (and less buggy) than a kernel that only runs ansible like I'm doing here — and they clearly unlike me have lots of experience actually achieving things using Ansible inside Jupyter — but the purpose of this exercise was seeing what I can gain from writing a kernel...\n\n- But https://github.com/NII-cloud-operation also have some nbextensions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcben%2Fansible_jupyter_kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcben%2Fansible_jupyter_kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcben%2Fansible_jupyter_kernel/lists"}