Skip to content

Instantly share code, notes, and snippets.

@julienchastang
Last active October 11, 2017 06:39
Show Gist options
  • Save julienchastang/dca01658a5a5d4317e59 to your computer and use it in GitHub Desktop.
Save julienchastang/dca01658a5a5d4317e59 to your computer and use it in GitHub Desktop.
SciPy 2014 Emacs and Python BoF

SciPy 2014 Emacs and Python BoF

SciPy 2014 Emacs and Python BoF

The gist for this talk is available at https://gist.github.com/julienchastang/dca01658a5a5d4317e59 Search for the #SciPy2014 to copy/paste the link.

My Emacs Python Setup

You can find information regarding my emacs Python setup literate emacs initialization file found here: https://github.com/julienchastang/dotemacs/blob/master/settings.org

Python Related Modes I Use

python-mode.el and python.el

Various keystroke optimizations for faster editing/code folding.

ein

IPython notebook client in Emacs!

Thanks Takafumi Arakaki!

jedi

Python auto-completion for Emacs

Thanks Takafumi Arakaki!

Python Related Modes I Don’t Use (but maybe I should)

ropemacs

noseemacs

ipython (in contrast to ein)

Could not get the interpreter to display matplotlib figures. According to the BoF it is possible to display plots with Qt.

Other stuff I find useful for Python development

magit

An Emacs mode for Git.

git-gutter

Icons in the “gutter” area indicating whether a line has been inserted, modified or deleted.

IDO

A mode-line completion engine

smex

Built on top of IDO, it provides a convenient interface to your recently and most frequently used commands.

auto-complete

Auto completion with popup menu.

Org mode

Your life in plain text

Babel for org-mode

Execute source code within Org-mode documents

Challenges/Questions

What is the status of ein, especially with IPyNB 2.0?

conda create -n netcdf-np18-py27 -c julienchastang netcdf numpy  ipython-notebook=1.1

How do people deal with virtual environments within emacs?

e.g.,

source activate blah

Notes from the July 10 BoF

Pyenv mode

Integrate pyenv with python-mode.

https://github.com/proofit404/pyenv-mode

traad

Traad: Client-server Rope refactoring

https://github.com/abingham/traad

autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.

https://github.com/hhatto/autopep8

Flake8

https://pypi.python.org/pypi/flake8

pyflakes

https://pypi.python.org/pypi/pyflakes

flycheck

https://github.com/flycheck/flycheck

Code Sprint

Organize a code sprint to help emacs ipython notebook (ein) mode.

@abingham
Copy link

Github doesn't seem to support pull requests for gists, but I've made a small addition to this gist here:

https://gist.github.com/abingham/e198ffe8d1a8eb689cf8/812e8aeda103ea797a94e4e7396cd4d2b9618e28

I just added a mention of tkf's python-environment package which came up a few times in the BoF. If there's a better way to handle these kinds of additions, let me know. This feels a bit clunky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment