Code Monkey home page Code Monkey logo

Comments (3)

kmpaul avatar kmpaul commented on June 19, 2024

If this gets installed, does this automatically change the key bindings for jupyterlab? Or is it something you can opt in/out?

from ncar-python-tutorial.

matt-long avatar matt-long commented on June 19, 2024

@brittstephens, do you know the answer?

from ncar-python-tutorial.

kmpaul avatar kmpaul commented on June 19, 2024

I've done some research on this. JupyterLab extensions are enabled at installation time. So, this would change the behavior for everyone, which is not desired.

You could install this extension and then disable it with:

jupyter labextension disable jupyterlab_vim

But then you'd have to go to the command line and execute:

jupyter labextension enable jupyterlab_vim

to enable it. However, requiring this is not much different than having the user install the extension themself. There are differences, though, which I enumerate below.

If you Install the extension and disable it, requiring the user enable it before use:

  1. the application (jupyter) does not need to be rebuilt when enabling the extension,
  2. whether it is enabled or disabled, it can conflict with other extensions that a use might install, and
  3. the user must execute the enable command from the command line.

If you require the user install the extension themself:

  1. the extension is downloaded and the application (jupyter) is rebuilt, albeit automatically,
  2. there is minimal risk of creating conflicts for users who choose not to use the extension, and
  3. the extension can be installed via the JupyterLab extension manage (from within the browser UI), without needing to execute any command-line commands.

Personally, I think that it makes sense not to install it and let users install it themselves.

The only advantage that I can see to doing this, rather than just asking the user to install the extension themselves (which they can do through JupyterLab's extension manager in the browser

from ncar-python-tutorial.

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.