this post was submitted on 25 Oct 2023
1 points (100.0% liked)

Emacs

311 readers
3 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I am new to python. I guess there are libraries called numpy, anaconda etc. What the best init.el setup for this. (I want to work on ML or Data Science)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

I use Emacs 29.1 or Emacs 30, because:

  1. they have built in LSP support by Eglot.
  2. they have built in tree-sitter support by python-ts-mode

And I use pyright as the LSP backend.

After install pyright, just start Emacs, open python file and M-x eglot will fire up the lsp support.

For the python virtual environment, I use envr(direnv)on macOS and Linux, use pyvenv on Windows platform.

You can see my personal configuration here:

https://github.com/Eason0210/.emacs.d/blob/6428e1a3be904a97ee354c955c879baeed90c099/init.el#L873-L948