* [gentoo-user] IPython with Python3 - what magic am I missing?
@ 2013-06-20 7:31 Helmut Jarausch
2013-06-20 7:49 ` Mateusz Kowalczyk
2013-06-20 14:53 ` Dustin C. Hatch
0 siblings, 2 replies; 8+ messages in thread
From: Helmut Jarausch @ 2013-06-20 7:31 UTC (permalink / raw
To: gentoo-user
Hi,
I'd like start IPython with Python3 as underlying Python interpretor.
GenToo has some magic to invoke IPython which I don't understand.
/usr/bin/ipython is a symlink to /usr/bin/python-exec which is a script
invoking the binary /usr/bin/python-exec-c
I don't have Python3 as standard Python version (too dangerous with
Portage?)
How can I convince IPython to use Python3?
I've tried
python3 /usr/lib64/python3.3/site-packages/spyderlib/widgets/ipython.py
but hits just quits without any visible action.
Many thanks for a hint,
Helmut
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 7:31 [gentoo-user] IPython with Python3 - what magic am I missing? Helmut Jarausch
@ 2013-06-20 7:49 ` Mateusz Kowalczyk
2013-06-20 12:16 ` Dale
2013-06-20 14:53 ` Dustin C. Hatch
1 sibling, 1 reply; 8+ messages in thread
From: Mateusz Kowalczyk @ 2013-06-20 7:49 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/06/13 08:31, Helmut Jarausch wrote:
> Hi,
>
> I'd like start IPython with Python3 as underlying Python
> interpretor. GenToo has some magic to invoke IPython which I don't
> understand.
>
> /usr/bin/ipython is a symlink to /usr/bin/python-exec which is a
> script invoking the binary /usr/bin/python-exec-c
>
> I don't have Python3 as standard Python version (too dangerous with
> Portage?)
Portage does just fine with Python3. In fact, it's actually faster (I
hear claims of upto 30% speed improvement but I haven't seen any data
nor tested it myself.).
>
> How can I convince IPython to use Python3?
>
> I've tried python3
> /usr/lib64/python3.3/site-packages/spyderlib/widgets/ipython.py but
> hits just quits without any visible action.
>
> Many thanks for a hint, Helmut
>
- --
Mateusz K.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQIcBAEBAgAGBQJRwrP3AAoJEM1mucMq2pqXFSMP/2QmDBlSM0y7AengDEVw/+W6
Wsnx01k+MDCBaGlA3sy6a0ZzrdAB/ARaKrxms6lpvVvIKOmSlWhfA2ucwnyK8OpW
8cdm89YQ+FlZkKdDXUGGfOoKPc8q3W4Zxq1I6pExvoQve5xX8Bbux4yzv3pmFO4O
php7ID2C43ozWM/e+ogySnAyYJCDhT69NOReF2DfU30UXjuaBT004dMZ08siwLlF
zk04Yu00nmSN9rOjbfP7g6MhZW4+CaHmnb15KHVzMWKYDbfkIvHl6BCFrinISDNL
HwCEGAD9qK++17M60CByGoi41FTgbedRlCw8fCWLRJMJMDWOZpGTYJ5i+Rb2OqjZ
sO8h1/H/3BCEojsRhHjgjb067OgM9ADJ/I9C5/QMMSy55DqWDzoWDEjuZg77NKiM
HdO3de4RXA/p/vx8H1VMn4+7S6j5ChrL5lYzKL0nrmlcGI1RsCxs9MRDQ3yY9a62
smN2RHvuiBxR0KNCpiGAvt6XsbFVETb8EmmgLRi26fk2bPRn8z10sxW8fobfJJ9r
xXGMS/j2mvU+G4Gn0SdDb4Fn8E8mS7gKW1ofR8gIo1hB5DMzYdZBfdI8ODMrvLP2
8WnGFnbuVCsPN96D0vFuFGp9NWMIbf7tVQyPJ+9CCPCqJHN3YFn+/zO+KG4tAfHU
y3MjYfrjml5nglUiUuL8
=SpVg
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 7:49 ` Mateusz Kowalczyk
@ 2013-06-20 12:16 ` Dale
2013-06-20 12:32 ` Adam Carter
2013-06-20 13:14 ` Neil Bothwick
0 siblings, 2 replies; 8+ messages in thread
From: Dale @ 2013-06-20 12:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 877 bytes --]
Mateusz Kowalczyk wrote:
> On 20/06/13 08:31, Helmut Jarausch wrote:
> > Hi,
>
> > I'd like start IPython with Python3 as underlying Python
> > interpretor. GenToo has some magic to invoke IPython which I don't
> > understand.
>
> > /usr/bin/ipython is a symlink to /usr/bin/python-exec which is a
> > script invoking the binary /usr/bin/python-exec-c
>
> > I don't have Python3 as standard Python version (too dangerous with
> > Portage?)
>
> Portage does just fine with Python3. In fact, it's actually faster (I
> hear claims of upto 30% speed improvement but I haven't seen any data
> nor tested it myself.).
>
Is there a way to tell portage to use python3 by default then? I have
it here so maybe it is already using python3? Anyway to know?
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
[-- Attachment #2: Type: text/html, Size: 1497 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 12:16 ` Dale
@ 2013-06-20 12:32 ` Adam Carter
2013-06-20 13:14 ` Neil Bothwick
1 sibling, 0 replies; 8+ messages in thread
From: Adam Carter @ 2013-06-20 12:32 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
>
> Is there a way to tell portage to use python3 by default then? I have it
> here so maybe it is already using python3? Anyway to know?
>
I just tried eselect python set 2, the grepped ps when running an emerge
--sync:
# eselect python list
Available Python interpreters:
[1] python2.7
[2] python3.2 *
# ps -ef | grep emerge
root 6242 6127 2 22:29 pts/0 00:00:00 /usr/bin/python3.2
/usr/bin/emerge --sync
So, just the usual.
[-- Attachment #2: Type: text/html, Size: 866 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 12:16 ` Dale
2013-06-20 12:32 ` Adam Carter
@ 2013-06-20 13:14 ` Neil Bothwick
2013-06-20 17:29 ` Dale
1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2013-06-20 13:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
On Thu, 20 Jun 2013 07:16:31 -0500, Dale wrote:
> Is there a way to tell portage to use python3 by default then?
emerge it with the python3 USE flag.
> I have
> it here so maybe it is already using python3? Anyway to know?
ps aux | grep emerge
while emerge is running.
--
Neil Bothwick
Give a man a fish and you feed him for a day;
Teach him to use the Net and he won't bother you for weeks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 7:31 [gentoo-user] IPython with Python3 - what magic am I missing? Helmut Jarausch
2013-06-20 7:49 ` Mateusz Kowalczyk
@ 2013-06-20 14:53 ` Dustin C. Hatch
2013-06-21 8:41 ` Helmut Jarausch
1 sibling, 1 reply; 8+ messages in thread
From: Dustin C. Hatch @ 2013-06-20 14:53 UTC (permalink / raw
To: gentoo-user
On 6/20/2013 02:31, Helmut Jarausch wrote:
> Hi,
>
> I'd like start IPython with Python3 as underlying Python interpretor.
> GenToo has some magic to invoke IPython which I don't understand.
>
> /usr/bin/ipython is a symlink to /usr/bin/python-exec which is a script
> invoking the binary /usr/bin/python-exec-c
>
> I don't have Python3 as standard Python version (too dangerous with
> Portage?)
>
> How can I convince IPython to use Python3?
>
> I've tried
> python3 /usr/lib64/python3.3/site-packages/spyderlib/widgets/ipython.py
> but hits just quits without any visible action.
>
> Many thanks for a hint,
> Helmut
>
If you built dev-python/ipython with PYTHON_TARGETS="python3_2", then
there will be a /usr/bin/ipython-python3.2 script that will launch
IPython with the Python 3.2 interpreter, even if the default Python
implementation is 2.7.
--
♫Dustin
http://dustin.hatch.name/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 13:14 ` Neil Bothwick
@ 2013-06-20 17:29 ` Dale
0 siblings, 0 replies; 8+ messages in thread
From: Dale @ 2013-06-20 17:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]
Neil Bothwick wrote:
> On Thu, 20 Jun 2013 07:16:31 -0500, Dale wrote:
>
>> Is there a way to tell portage to use python3 by default then?
>
> emerge it with the python3 USE flag.
I added that in package.use for future reference. That took out the
python2 support. I also added this to make.conf:
PYTHON_TARGETS="python3_2"
>
>
>> I have
>> it here so maybe it is already using python3? Anyway to know?
>
> ps aux | grep emerge
>
> while emerge is running.
>
>
Now I get this:
root@fireball / # ps aux | grep emerge
root 23969 92.5 0.5 184900 94644 pts/1 RN+ 12:25 0:01
/usr/bin/python3 /usr/bin/emerge -pv portage
root 23977 0.0 0.0 8596 880 pts/2 S+ 12:25 0:00 grep
--colour=auto emerge
root@fireball / #
By the way, you better be fast to get that too. It seems emerge is
faster with python3. Now to sync and do some real testing. ;-)
Thanks Neil and Adam.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
[-- Attachment #2: Type: text/html, Size: 1897 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] IPython with Python3 - what magic am I missing?
2013-06-20 14:53 ` Dustin C. Hatch
@ 2013-06-21 8:41 ` Helmut Jarausch
0 siblings, 0 replies; 8+ messages in thread
From: Helmut Jarausch @ 2013-06-21 8:41 UTC (permalink / raw
To: gentoo-user
On 06/20/2013 04:53:00 PM, Dustin C. Hatch wrote:
> If you built dev-python/ipython with PYTHON_TARGETS="python3_2", then
> there will be a /usr/bin/ipython-python3.2 script that will launch
> IPython with the Python 3.2 interpreter, even if the default Python
> implementation is 2.7.
Yes, thanks,
that works!
Helmut
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-06-21 8:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20 7:31 [gentoo-user] IPython with Python3 - what magic am I missing? Helmut Jarausch
2013-06-20 7:49 ` Mateusz Kowalczyk
2013-06-20 12:16 ` Dale
2013-06-20 12:32 ` Adam Carter
2013-06-20 13:14 ` Neil Bothwick
2013-06-20 17:29 ` Dale
2013-06-20 14:53 ` Dustin C. Hatch
2013-06-21 8:41 ` Helmut Jarausch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox