Comments (2)
Does not work under linux either
(ansible) [bpeng1@localhost ~]$ conda create -n ansible python=3.7
(ansible) [bpeng1@localhost ~]$ pip install ansible-kernel
(ansible) [bpeng1@localhost ~]$ python -m ansible_kernel.install
Installing IPython kernel spec
/home/bpeng1/anaconda3/envs/ansible/lib/python3.7/site-packages/ansible_kernel/install.py:26: DeprecationWarning: replace is ignored. Installing a kernelspec always replaces an existing installation
td, 'ansible', user=user, replace=True, prefix=prefix)
(ansible) [bpeng1@localhost ~]$ jupyter notebook
[I 13:42:10.274 NotebookApp] Writing notebook server cookie secret to /home/bpeng1/.local/share/jupyter/runtime/notebook_cookie_secret
[I 13:42:10.488 NotebookApp] Serving notebooks from local directory: /home/bpeng1
[I 13:42:10.489 NotebookApp] The Jupyter Notebook is running at:
[I 13:42:10.489 NotebookApp] http://localhost:8888/?token=af98f5e99043d650af86725dc1026c330f86648182068cd0
[I 13:42:10.489 NotebookApp] or http://127.0.0.1:8888/?token=af98f5e99043d650af86725dc1026c330f86648182068cd0
[I 13:42:10.489 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:42:10.576 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/bpeng1/.local/share/jupyter/runtime/nbserver-12886-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=af98f5e99043d650af86725dc1026c330f86648182068cd0
or http://127.0.0.1:8888/?token=af98f5e99043d650af86725dc1026c330f86648182068cd0
[I 13:42:19.291 NotebookApp] Creating new notebook in
[I 13:42:19.301 NotebookApp] Writing notebook-signing key to /home/bpeng1/.local/share/jupyter/notebook_secret
[I 13:42:20.396 NotebookApp] Kernel started: e82625dc-8646-4993-aa1f-bcb1df6d15dc
/home/bpeng1/anaconda3/envs/ansible/lib/python3.7/site-packages/ansible_kernel/modules.py:4: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
modules = yaml.load(f.read())
/home/bpeng1/anaconda3/envs/ansible/lib/python3.7/site-packages/ansible_kernel/module_args.py:4: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
module_args = yaml.load(f.read())
Traceback (most recent call last):
File "/home/bpeng1/anaconda3/envs/ansible/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/bpeng1/anaconda3/envs/ansible/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/bpeng1/anaconda3/envs/ansible/lib/python3.7/site-packages/ansible_kernel/__main__.py", line 6, in <module>
IPKernelApp.launch_instance(kernel_class=AnsibleKernel)
from ansible-jupyter-kernel.
Same with macos 11.2 and python 3.5; ansible_kenel.log
looks like
[2020-09-03 16:40:24,204] DEBUG [asyncio.__init__:65] Using selector: KqueueSelector
[2020-09-03 16:40:24,209] DEBUG [asyncio.__init__:65] Using selector: KqueueSelector
[2020-09-03 16:40:24,211] DEBUG [ansible_kernel.kernel.__init__:179] session <class 'jupyter_client.session.Session'> <jupyter_client.session.Session object at 0x10d6ffc18>
[2020-09-03 16:40:24,211] DEBUG [ansible_kernel.kernel.__init__:180] iopub_socket <class 'ipykernel.iostream.BackgroundSocket'> <ipykernel.iostream.BackgroundSocket object at 0x10d705ac8>
[2020-09-03 16:40:24,281] DEBUG [ansible_kernel.kernel.__init__:228] /var/folders/0m/ls08dfrx6sz0xw1jnqglswb80000gn/T/ansible_kernel_playbookj5sur5i5
[2020-09-03 16:40:24,284] INFO [ansible_kernel.kernel.do_inventory:566] inventory set to [all]
localhost ansible_connection=local
[2020-09-03 16:40:24,286] INFO [ansible_kernel.kernel.is_ansible_alive:1137] NOT STARTED
[2020-09-03 16:40:24,286] DEBUG [asyncio.__init__:65] Using selector: KqueueSelector
[2020-09-03 16:40:24,287] INFO [ansible_kernel.kernel.start:114] thread.start
[2020-09-03 16:40:24,288] DEBUG [ansible_kernel.kernel.process_widgets:728] widget_vars_file /var/folders/0m/ls08dfrx6sz0xw1jnqglswb80000gn/T/ansible_kernel_playbookj5sur5i5/project/widget_vars.yml
[2020-09-03 16:40:24,288] INFO [ansible_kernel.kernel.start_helper:257] Started helper
[2020-09-03 16:40:24,289] DEBUG [ansible_kernel.kernel.start_helper:275] vault_password? None
[2020-09-03 16:40:24,290] INFO [ansible_kernel.kernel.start_helper:287] Wrote ansible.cfg
[2020-09-03 16:40:24,291] DEBUG [ansible_kernel.kernel.do_execute_play:632] code_data {'name': 'default', 'gather_facts': False, 'hosts': 'localhost'}
[2020-09-03 16:40:24,291] DEBUG [ansible_kernel.kernel.do_execute_play:633] code_data type: <class 'dict'>
[2020-09-03 16:40:24,296] DEBUG [ansible_kernel.kernel.do_execute_play:659] - gather_facts: false
hosts: localhost
name: default
roles:
- ansible_kernel_helpers
tasks:
- pause_for_kernel:
host: 127.0.0.1
port: 49351
task_num: -1
- include_vars:
file: widget_vars.yml
- include_tasks: next_task0.yml
[2020-09-03 16:40:24,299] DEBUG [ansible_kernel.kernel.send_multipart:86] send_multipart [b'<IDS|MSG>', b'd32b8aa6d42c7b50d3b035431abfd05e6b03f6186b9fa450d8d20669f9fbe0e5', b'{"username":"alex","msg_id":"4c5d768f-5e740e9f92ee358a12a5d0e5_0","session":"4c5d768f-5e740e9f92ee358a12a5d0e5","version":"5.3","date":"2020-09-03T13:40:24.299514Z","msg_type":"stream"}', b'{}', b'{}', b'{"text":"\\n","name":"stdout"}'] () {'copy': True}
[2020-09-03 16:40:24,299] DEBUG [ansible_kernel.kernel.send_multipart:89] result None
[2020-09-03 16:40:24,300] DEBUG [ansible_kernel.kernel.send_multipart:1233] send_multipart 6 [b'<IDS|MSG>', b'd32b8aa6d42c7b50d3b035431abfd05e6b03f6186b9fa450d8d20669f9fbe0e5', b'{"username":"alex","msg_id":"4c5d768f-5e740e9f92ee358a12a5d0e5_0","session":"4c5d768f-5e740e9f92ee358a12a5d0e5","version":"5.3","date":"2020-09-03T13:40:24.299514Z","msg_type":"stream"}', b'{}', b'{}', b'{"text":"\\n","name":"stdout"}'] () {'copy': True}
[2020-09-03 16:40:24,300] DEBUG [ansible_kernel.kernel.send_multipart:89] result None
[2020-09-03 16:40:24,300] INFO [ansible_kernel.kernel.start_ansible_playbook:681] runner starting
[2020-09-03 16:40:24,302] INFO [ansible_kernel.kernel.start_ansible_playbook:692] runner started
[2020-09-03 16:40:24,302] INFO [ansible_kernel.kernel.start_ansible_playbook:693] Runner status: starting
[2020-09-03 16:40:24,302] INFO [ansible_kernel.kernel.start_ansible_playbook:695] In runner loop
[2020-09-03 16:40:24,303] INFO [ansible_kernel.kernel.start_ansible_playbook:698] getting message 49351
[2020-09-03 16:40:25,307] INFO [ansible_kernel.kernel.start_ansible_playbook:701] Queue Empty!
[2020-09-03 16:40:25,307] INFO [ansible_kernel.kernel.start_ansible_playbook:695] In runner loop
[2020-09-03 16:40:25,307] INFO [ansible_kernel.kernel.start_ansible_playbook:698] getting message 49351
[2020-09-03 16:40:26,310] INFO [ansible_kernel.kernel.start_ansible_playbook:701] Queue Empty!
<endless repetition>
from ansible-jupyter-kernel.
Related Issues (20)
- Multiple unexpected messages are returned from roles HOT 2
- Add #summary to end play context and print a summary of the tasks
- Add #python cell type HOT 1
- Ansible Kernel 0.8.0 did not work with Python3
- Python variable not accessible in a Ansible task HOT 1
- Getting the output of tasks on multiple hosts HOT 3
- In case of Python 3.6, register variable error occurs. HOT 1
- Unable to retrieve file contents HOT 5
- How to become? HOT 1
- Jupyterhub/lab ; Python 3.6 : using #vault_password throws type error HOT 3
- Shared resources across notebooks.
- AttributeError: 'AnsibleKernel' object has no attribute 'user_ns' HOT 2
- Getting lots of extraneous output HOT 1
- Unable to ping: after installation ansible_kernel using pip3
- Release 0.9.1 (or 0.10.0) on pypi? HOT 1
- Excessive files in /tmp HOT 1
- copy link file BUG !
- Docker image tag lags behind PyPI releases, and contains deprecated dependencies
- pip install fails on python3.12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-jupyter-kernel.