Comment by kbd

5 years ago

Worth noting that Jupyter themselves announced[1] 'nbterm'[2] recently, which seems like an attempt at the same thing but it seems very very immature compared to Euporie.

I don't understand why they announced nbterm at such an early stage tbh. When I tried it it was basically non-working.

[1] https://blog.jupyter.org/nbterm-jupyter-notebooks-in-the-ter...

[2] https://github.com/davidbrochart/nbterm

Edit: cool to see another project supporting kitty terminal's graphics protocol. kitty is a great terminal and has a lot of good ideas. Also, nice to see Euporie has a section on related projects that mentions nbterm.

nbterm, euphorie, and even Jupyter don't seem to support shortcuts for duplicating line and moving it up/down. Why is it the case? I can't be the only person using these shortcuts :-)

(Edit: VS Code, Spyder, and PyCharm do support them, but they have their own quirks.)

  • You could try emacs + org-mode + jupyter https://github.com/nnicandro/emacs-jupyter#org-mode-source-b...

    It supports moving the current line/region up/down (e.g., using <M-up> in Python mode that is activated for editing jupyter-python cells on <C-c '>).

    • Thanks for the link. Do you know if it supports interactive Plotły plots?

      I have tried emacs a couple of times over the last 20 years (spacemacs most recently) and it always made me feel stupid. I love the idea and flexibility, and it just seems so cool, but setting up the environment and config were pretty overwhelming to me.

      2 replies →

  • Currently for edit mode, euporie uses the default emacs-style key-bindings from prompt_toolkit. So duplicating a line is as simple as Ctrl-a, Ctrl-k, Ctrl-y, Return, Ctrl-y !

    I think I might add a simpler shortcut.

    • Hahaha I love this comment :) I like VS Code's shortcuts, i.e.:

      - Shift + Up/Down to a move line up or down

      - Shift + Alt + Up/Down to a copy line up or down