1
;; Commands calling installed python shells generated by python-mode's python-mode-shell-install.el.
2
;; Install these commands, to get it loaded next time python-mode starts.
3
;; Copying it onto the end of python-mode-shell-install.el should do it.
5
(defun ipython (&optional argprompt)
6
"Start an interactive Ipython interpreter in another window.
7
With optional \\[universal-argument] user is prompted
8
for options to pass to the Ipython interpreter. "
10
(let ((py-shell-name "ipython"))
11
(py-shell argprompt)))
13
(defun python2 (&optional argprompt)
14
"Start an interactive Python2 interpreter in another window.
15
With optional \\[universal-argument] user is prompted
16
for options to pass to the Python2 interpreter. "
18
(let ((py-shell-name "python2"))
19
(py-shell argprompt)))
21
(defun python3 (&optional argprompt)
22
"Start an interactive Python3 interpreter in another window.
23
With optional \\[universal-argument] user is prompted
24
for options to pass to the Python3 interpreter. "
26
(let ((py-shell-name "python3"))
27
(py-shell argprompt)))
29
(defun python2.7 (&optional argprompt)
30
"Start an interactive Python2.7 interpreter in another window.
31
With optional \\[universal-argument] user is prompted
32
for options to pass to the Python2.7 interpreter. "
34
(let ((py-shell-name "python2.7"))
35
(py-shell argprompt)))
37
(defun python (&optional argprompt)
38
"Start an interactive Python interpreter in another window.
39
With optional \\[universal-argument] user is prompted
40
for options to pass to the Python interpreter. "
42
(let ((py-shell-name "python"))
43
(py-shell argprompt)))
45
(defun jython (&optional argprompt)
46
"Start an interactive Jython interpreter in another window.
47
With optional \\[universal-argument] user is prompted
48
for options to pass to the Jython interpreter. "
50
(let ((py-shell-name "jython"))
51
(py-shell argprompt)))