summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina <fgallina@cuca>2012-05-17 00:03:32 -0300
committerFabián Ezequiel Gallina <fgallina@gnu.org>2012-05-17 00:03:32 -0300
commita1ea6ab81c362ada4899b59dbac3df0af27aa77f (patch)
tree44b6ad2acfdece73d873693e8f3e210d95ec699e /lisp/progmodes/python.el
parent722c985bb0553b4036bff2ec7227492524320425 (diff)
Enhanced shell setup for Windows.
Also added documentation explaining how to spawn the iPython process on Windows.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9e83ac77f6b..fe39ff1c4c3 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -90,6 +90,18 @@
;; (setq python-shell-completion-string-code
;; "';'.join(__IP.complete('''%s'''))\n")
+;; Unfortunately running iPython on Windows needs some more tweaking.
+;; The way you must set `python-shell-interpreter' and
+;; `python-shell-interpreter-args' is as follows:
+
+;; (setq
+;; python-shell-interpreter "C:\\Python27\\python.exe"
+;; python-shell-interpreter-args
+;; "-i C:\\Python27\\Scripts\\ipython-script.py")
+
+;; That will spawn the iPython process correctly (Of course you need
+;; to modify the paths according to your system).
+
;; Please note that the default completion system depends on the
;; readline module, so if you are using some Operating System that
;; bundles Python without it (like Windows) just install the
@@ -1565,7 +1577,7 @@ This function takes the list of setup code to send from the
(dolist (code python-shell-setup-codes)
(when code
(message (format msg code))
- (python-shell-send-string-no-output
+ (python-shell-send-string
(symbol-value code) process)))))
(add-hook 'inferior-python-mode-hook