Live data from Hacker News

Using Vim as a Python IDE

liuchengxu.org

141–150 of 158 posts

Re: Using Vim as a Python IDE

#141

Emacs comes configured with a command called "send-region-to-shell" that will take the current region and send it to a python interpreter. It makes for a great development experience that I haven't seen replicated with other tools and I'm not sure why there's not a bigger interest in it.

For Emacs and Python, all you need is:

https://github.com/jorgenschaefer/elpy

All the bells and whistles in there and the maintainer is super friendly and responsive.

Re: Using Vim as a Python IDE

#142
post #92

Earlier quoted context omitted.

One of the features that elevates org-babel is being able to work on the same data in multiple tools. It's not uncommon for me to start with data in a table, transform it with a bit of python or lisp, and feed the result into gnuplot.

If you could point to one simple example of this it works be awesome! I've used org-babel but in a very fragmented way. My sessions were separated from each other and I did not use multiple languages on the same data

The files are gone, but you do it by referring to the table/block names.

    #+name: data-table
    ....

    #+name: process-data
    #+begin_src lisp :var data=data-table
      ...
    #+end_src

    #+begin_src gnuplot :var data=process-data
      ...
    #+end_src

Re: Using Vim as a Python IDE

#144
post #70

Earlier quoted context omitted.

A Chinese programmer emailed me because I starred the linked SpaceVim repo. I guess there's some confusion about all the forks of this project.

Wow the same thing just happened to me to! The maintainer of the competing "SpaceVim" project I mentioned just opened an GitHub issue on my personal dotfiles repo to spam me with his project: https://github.com/superquest/dotfiles/issues/1 Bizarre.

I got an email from the same guy, saying he noticed me starring a competing fork of SpaceVim, and asking if I "would like to try our project, https://github.com/SpaceVim/SpaceVim or https://spacevim.org "???

I think that's the first time I've ever gotten a personal email because I starred someone else's repo!

Re: Using Vim as a Python IDE

#145

Yesterday I've downloaded VSCode and https://github.com/DonJayamanne/pythonVSCode (seriously, look at the GIFs in this repo!) for first time and I had autocompletion (with IntelliSense and documentation lookup), refactoring and code define jumping for Python code out of the box working within 10 minutes in a VirtualEnv. VSCode + one plugin (all opensource) and I had something similar to PyCharm and fast. (nothing aga…

I used VSCode once and in just ten minutes, I helped a repressive megacorp meet their HN marketing goals, instead of supporting developers who might actually need it.

Re: Using Vim as a Python IDE

#147
post #140

Earlier quoted context omitted.

I like this answer. For everyone who wants to do this by commandline: Search for sshfs and FUSE (also possible on Mac with osxfuse). Only be aware that a mac uses a different kind of utf-8 than unix. My command I use for sshfs on a mac: sshfs -o Ciphers=aes128-gcm@openssh.com -o Compression=no -o reconnect \ -o modules=iconv,from_code=utf-8,to_code=utf-8-mac \ myremote:/somedirectory/ /mylocalmountdir

I'm not familiar with Macs. How is their UTF-8 different from the normal one? How is such a thing even possible?

I also thought the same, you would not recognize it most of the time (even while transferring). But I'm german and I use sometimes Umlauts in filenames/directories. They did not showed up in my Samba share so I got aware of this issue. I think this issue is too hidden.

If you want to read about this topic:

rsync: http://askubuntu.com/questions/533690/rsync-with-special-cha...

sshfs: https://github.com/osxfuse/sshfs/issues/14

Re: Using Vim as a Python IDE

#148

Yesterday I've downloaded VSCode and https://github.com/DonJayamanne/pythonVSCode (seriously, look at the GIFs in this repo!) for first time and I had autocompletion (with IntelliSense and documentation lookup), refactoring and code define jumping for Python code out of the box working within 10 minutes in a VirtualEnv. VSCode + one plugin (all opensource) and I had something similar to PyCharm and fast. (nothing aga…

I used VSCode once and in just ten minutes, I helped a repressive megacorp meet their HN marketing goals, instead of supporting developers who might actually need it.

hm, I also don't like MS. But kudos to this open source editor and what it can do with Python and JS code. It is by the way developed in Switzerland by a former Eclipse founder (Erich Gamma).

Re: Using Vim as a Python IDE

#149
post #73
post #53

Earlier quoted context omitted.

I use vim via ssh and in tmux everyday. I mostly love it. But sometimes there are merge conflicts. I've settled for xpra and kdiff3 as the mergetool. I just can't handle the problem without a GUI tool.

But isn't it still easier to use a proper IDE in the local machine with Linux/Windows/OSX gui and then just git push the code? What advantages does your setup have?

my $WORK issued machine is a windows box and the software i work on is 99% Linux.
Post reply on HN