ryantam626 / jupyterlab_sublime

A slightly opinionated Sublime notebook cell keybinding for JupyterLab.
MIT License
93 stars 30 forks source link

Does not seem to be working #21

Open vianamp opened 3 years ago

vianamp commented 3 years ago

Hi. I have installed the extension on Mac OS but when I try the binding CMD+D for multiple selections, it ends up deleting the line, which is the default behavior. The installation seemed to be ok. Do you have any idea on how to debug?

See my current configuration below. Please let me know what else you need to help me with this and thanks a lot for the extension.

Matheus.

jupyter                            1.0.0
jupyter-client                     6.1.7
jupyter-console                    6.2.0
jupyter-core                       4.6.3
jupyter-server                     1.2.2
jupyterlab                         3.0.5
jupyterlab-git                     0.30.0b1
jupyterlab-pygments                0.1.2
jupyterlab-server                  2.1.2
jupyterlab-sublime                 0.4.1
lckr-jupyterlab-variableinspector  3.0.6
StefanBrand commented 3 years ago

Same for me, doesn't work in this environment:

jupyter core     : 4.7.1
jupyter-notebook : 6.2.0
qtconsole        : not installed
ipython          : 7.21.0
ipykernel        : 5.3.4
jupyter client   : 6.1.11
jupyter lab      : 3.1.0a3
nbconvert        : 6.0.7
ipywidgets       : 7.6.3
nbformat         : 5.1.2
traitlets        : 5.0.5
LukaPitamic commented 3 years ago

@ryantam626 please update your extension to work with JL v3. We neeeeeeeed sublime capabilities in JL. Thank you for your contribution to community!

LukaPitamic commented 3 years ago

wow, it works, exactly as it's explained to be installed for JupyterLab v3: pip install jupyterlab_sublime. I haven't read the manual :). @ryantam626 once again, thank you for your contribution.

LukaPitamic commented 3 years ago

@ryantam626 I'm tying to install this your extension with my config file index.ts the way it is suggested in development section of README.md.

However in first step make conda-install-frozen I'm getting error: image

I used to build it locally and install it from there, but this was only working for JL<3.

So, do you have any other idea how to install it with tweaked config?

LukaPitamic commented 3 years ago

@ryantam626 got it working, here are the steps if anyone finds it valuable in the future:

  1. clone original repo: git clone https://github.com/ryantam626/jupyterlab_sublime.git
  2. tweak keybindings in file: vim src/index.ts
  3. create wheel file: python setup.py bdist_wheel
  4. go to newly created dist directory: cd dist
  5. pip local install: pip install jupyterlab_sublime-0.4.1-py3-none-any.whl (your whl file might have different name)
  6. reload the browser
alexlenail commented 4 months ago

^ that still works

LukaPitamic commented 4 months ago

@alexlenail I'm still using it (but I use JLab v3, not v4) all shortcuts are set in: Advanced Settings Editor, like entry:

        {
            "args": {},
            "command": "sublime:duplicateLine",
            "keys": [
                "Accel D"
            ],
            "selector": ".jp-Notebook.jp-mod-editMode"
        },

If you need more help with it, don't hesitate to ask