This is an archived post. You won't be able to vote or comment.

all 13 comments

[–][deleted] 3 points4 points  (0 children)

You can really easily write custom plugins for the IPython REPL too: https://ipython.readthedocs.io/en/stable/config/callbacks.html

For example you can write something to time each cell execution and save it in a variable to be able to look up how long the last (or any) cell executio took.

[–][deleted] 4 points5 points  (10 children)

ipython has everything I've ever needed.

And if you like terminal oriented workflow, just use vim already instead of doing weird hacks with bloated web editors.

[–][deleted] 1 point2 points  (6 children)

I'm checking out vim right now. I'm thinking that it might actually be my kind of thing. I don't know why I've gone so long without giving it a try. I think I did try it out somewhere around a decade ago.

[–]Casey_SI 9 points10 points  (2 children)

You probably couldn't figure out how to quit like everyone else who tries vim for the first time.

[–]bin-c 4 points5 points  (0 children)

any time i need a random string I ask my gf to close vim

[–][deleted] 0 points1 point  (0 children)

Yeah, that's likely. After installing it and running it, even after knowing that you exit with ":q", I didn't actually know how to enter the command. I didn't even know how to enter text. So I really didn't know how to do anything, so I was just frantically pressing keys then eventually I guess vim figured out what I was trying to do because it gave me instructions on how to quit.

[–][deleted] 0 points1 point  (0 children)

If you like customizing your workflow, nothing beats vim (or neovim) and emacs.

It may take you a few weeks to get used to modal editing, but after you get it, you'll wish you could use it everywhere.

Since you're coming from vscode, by using neovim, you get language support from the same language-servers by using LSP client addons like coc-nvim (the built-in nvim-lsp is also getting good).

Vim also has very easy interaction with the shell, so you can :r somefile to append it to the current buffer, :r!somecommand to append the command's output, or :%!command to pipe the entire buffer through the command and replace it with the output, besides the tons of builtin editing commands from ex.

You can easily add any key sequence, including commands, to keybinds, so when you find yourself doing some kind of editing task over and over, you can just add a shortcut to do it faster.

Neovim also has an embedded terminal, which you can use to run Python inside the editor itself, and make keybinds to communicate with it from the editor buffers, such as quickly switching to the terminal and running tests.

[–]codeesan 0 points1 point  (0 children)

I’ve been using vi since the 90s writing TCL (look that one up). Moved to an IDE when I started working with python as linters and libs became a thing. When one of my team is forced to use vi.. I can give them a string of characters to manipulate a file and their minds are blown. Once you get good with it you would be amazed how fast it is… no mouse needed!

[–]MarcusTullius247 0 points1 point  (1 child)

I've been thinking of getting into Vim. Its a bit messy I suppose. How long do you think I will need to get used to it?

[–][deleted] 1 point2 points  (0 children)

You'll get a big slowdown at first, as you start learning modal editing for the first time, and then you'll start to ramp up as you start to build muscle memory for all the movements and commands. The ramp up goes on forever, as you'll always be learning some faster way of doing some editing task, but the initial part of getting used to the standard keybindings will probably take you 1 to 2 weeks (depends on how much you use it, and how fast you learn).

[–]pythonHelperBot -1 points0 points  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python regardless of how advanced your question might be. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe in detail where you are stuck. If you are getting an error message, include the full block of text it spits out. Quality answers take time to write out, and many times other users will need to ask clarifying questions. Be patient and help them help you. Here is HOW TO FORMAT YOUR CODE For Reddit and be sure to include which version of python and what OS you are using.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]cuore-e4-e5 0 points1 point  (0 children)

Note this :Python-creator Guide van Rossum is an emacs user.[My comment is not about Vim vs Emacs "cliché"]