[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21656: 25.0.50; Slashes, Windows, and IPython
From: |
Noam Postavsky |
Subject: |
bug#21656: 25.0.50; Slashes, Windows, and IPython |
Date: |
Sun, 03 Dec 2017 10:54:28 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) |
close 21656 26.1
quit
Matthew Alhonte <mattalhonte@gmail.com> writes:
> Hello,
>
> Python.el has this text:
>
> " ;; Running IPython on Windows needs more tweaking. The way you
> should
> ;; set `python-shell-interpreter' and `python-shell-interpreter-args'
> ;; is as follows (of course you need to modify the paths according to
> ;; your system):
>
> ;; (setq python-shell-interpreter "C:\\Python27\\python.exe"
> ;; python-shell-interpreter-args
> ;; "-i C:\\Python27\\Scripts\\ipython-script.py")
> "
>
> I uncommented the code, but got an error saying " error: Non-hex
> digit used for Unicode escape."
Presumably you forgot to double the backslashes like in the example,
e.g., something like
(defcustom python-shell-interpreter
"C:\Users\\Matt\\Anaconda\\python.exe"...
^^
> (defcustom python-shell-interpreter "C:/Users/Matt/Anaconda/
> python.exe"
> "Default Python interpreter for shell."
> :type 'string
> :group 'python)
>
> And it worked! Maybe change the warning in python.el?
I changed the text in emacs-26 to forward slashes to reduce the chances
of confusion.
[1: afb04f7f3c]: 2017-12-03 10:01:12 -0500
Use forward slashes for python w32 config example (Bug#21656)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=afb04f7f3cb75c7c744d8fa8cd1cd70ad1755e6f
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#21656: 25.0.50; Slashes, Windows, and IPython,
Noam Postavsky <=