GithubHelp home page GithubHelp logo

Comments (11)

ShadowMitia avatar ShadowMitia commented on July 30, 2024 1

@benthomasson I edited my message. Sorry about that.

from ansible-jupyter-kernel.

ShadowMitia avatar ShadowMitia commented on July 30, 2024 1

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.

benthomasson avatar benthomasson commented on July 30, 2024

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.

benthomasson avatar benthomasson commented on July 30, 2024

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.

benthomasson avatar benthomasson commented on July 30, 2024

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.

benthomasson avatar benthomasson commented on July 30, 2024

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.

ShadowMitia avatar ShadowMitia commented on July 30, 2024

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.

benthomasson avatar benthomasson commented on July 30, 2024

I ran into the same issue. Try running pip install -e . again in the jupyterlab directory.

from ansible-jupyter-kernel.

ShadowMitia avatar ShadowMitia commented on July 30, 2024

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.

benthomasson avatar benthomasson commented on July 30, 2024

Try the parent directory. There should be a setup.py there.

from ansible-jupyter-kernel.

benthomasson avatar benthomasson commented on July 30, 2024

I added a feature request for this in JupyterLab here: jupyterlab/jupyterlab#5015

from ansible-jupyter-kernel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.