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