Comments (11)
@benthomasson I edited my message. Sorry about that.
from ansible-jupyter-kernel.
I managed to make it work by using pip3 install --user -e .
(I was using sudo
before).
Finally I can see the exports!
Thanks!
from ansible-jupyter-kernel.
To recreate this issue please include the versions of Jupyter Notebook, Jupyter Lab, and Ansible Kernel that you have installed. Please also include the steps that you used to install Ansible Kernel.
from ansible-jupyter-kernel.
It looks like the way that adding custom exporters changed in Jupyter Lab from Jupyter Notebook. I'll look into supporting Jupyter Lab.
from ansible-jupyter-kernel.
Your first screen shot for jupyter notebook
is missing a few exporters. Try running this command python -m ansible_kernel.install --sys-prefix
to enable them.
From the command line you should see:
$ jupyter nbconvert -h | grep ansible
Options include ['ansible_playbook', 'ansible_tasks', 'ansible_zip', 'asciidoc', 'custom', 'html', 'latex', 'markdown', 'notebook', 'pdf', 'python', 'rst', 'script', 'slides']
from ansible-jupyter-kernel.
Unfortunately the list of exporters appears to be hardcoded in this version of Jupyter Lab. I manually add the exporters on this branch: https://github.com/benthomasson/jupyterlab/tree/ansible_exporters
If you want to try this out run this:
git clone https://github.com/benthomasson/jupyterlab.git
cd jupyterlab
git checkout ansible_exporters
pip install -e .
jlpm install
jlpm run build
jlpm run build:core
jupyter lab build
jupyter lab --dev-mode
from ansible-jupyter-kernel.
I tried testing your branch, but I think I have something wrong with my jupyter installation, when running jupyter lab --dev-mode
it fails to launch with a FileNotFoundError: [Errno 2] No such file or directory: '/home/dimitri/.local/lib/python3.6/site-packages/packages/theme-light-extension': '/home/dimitri/.local/lib/python3.6/site-packages/packages/theme-light-extension'
.
I'll just have to remember to test this kernel in the notebook in the meantime.
Thank you for the quick response! Hope they'll fix this harcoded exports list business soon.
from ansible-jupyter-kernel.
I ran into the same issue. Try running pip install -e .
again in the jupyterlab
directory.
from ansible-jupyter-kernel.
You mean the one inside the cloned folder? I get this message: Directory '.' is not installable. File 'setup.py' not found.
from ansible-jupyter-kernel.
Try the parent directory. There should be a setup.py
there.
from ansible-jupyter-kernel.
I added a feature request for this in JupyterLab here: jupyterlab/jupyterlab#5015
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
- Compatibility with MacOSX and python 3.7 HOT 2
- 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.