Emacs and interactive Python

Make sure the package `elpa-elpy` is installed

sudo apt-get install elpa-elpy

Now you can press Ctrl-return to evalute lines in the source in the python-session-window.

Configure which python

;;(setq python-shell-interpreter "/usr/bin/python3.11")
(setq python-shell-interpreter "/home/hans/.my-venv/bin/python")

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: februari 16, 2025