jharris1993
Posts: 32
Joined: Sat Oct 05, 2013 10:26 pm

Pi-4: Python shell (idle) is missing - why?

Tue Oct 15, 2019 8:07 pm

Greetings!

System:
Pi-4, 4g
Latest version, (I hope!) of Raspbian.
Configured to use:
(a) Element 14 7" display in landscape mode, installed in their case.
(b) Adafruit PFC8350 RTC module with fake-hwclock disabled and un-installed.
Bluetooth enabled and paired with a Logitech K600 "TV/Media" keyboard.
Hard wired Ethernet connection.
Stock Raspberry Pi-4 power module.

I picked up a copy of Programming the Raspberry Pi (Second Edition - it was what was available in my bookstore)

Attempting to do the exercises, they expect the user to be using a python shell called IDLE - which in older versions of Raspbian were in the "Programming" menu, listed as "Python 2" and "Python 3"

This is missing in the current version of Raspbian, though IDE's like mu, Blue-Jay, (etc.), are included.

I already know that Python 2 has been depreciated and is no longer part of the current builds.

Question: What happened to the Python shell? I'm assuming that if it wasn't included, there was a good reason for it - though I was able to install idle3 using apt-get.

Thanks for any help you can provide.
Jim "JR"

Some see things as they are, and ask "Why?"
I dream things that never were, and ask "Why Not".

Robert F. Kennedy

“Impossible” is only found in the dictionary of a fool.
Old Chinese Proverb

User avatar
rpdom
Posts: 15460
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Pi-4: Python shell (idle) is missing - why?

Tue Oct 15, 2019 8:10 pm

The recommended IDE for Python now is Thonny instead of Idle. As you found, you can still install Idle2 and 3.

Andyroo

Re: Pi-4: Python shell (idle) is missing - why?

Tue Oct 15, 2019 8:37 pm

Idle was removed as part (or not) of the 2019-06-20 release of Buster.

A lot of info on changes is to be found in the release note at http://downloads.raspberrypi.org/raspbi ... _notes.txt

jharris1993
Posts: 32
Joined: Sat Oct 05, 2013 10:26 pm

Re: Pi-4: Python shell (idle) is missing - why?

Tue Oct 15, 2019 8:53 pm

rpdom wrote:
Tue Oct 15, 2019 8:10 pm
The recommended IDE for Python now is Thonny instead of Idle. As you found, you can still install Idle2 and 3.
. . . but Thonny isn't a Python shell, which is what the book is asking for - at least in the beginning.

I've played with mu too on other platforms and it's OK.
Jim "JR"

Some see things as they are, and ask "Why?"
I dream things that never were, and ask "Why Not".

Robert F. Kennedy

“Impossible” is only found in the dictionary of a fool.
Old Chinese Proverb

User avatar
Paeryn
Posts: 2712
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Pi-4: Python shell (idle) is missing - why?

Wed Oct 16, 2019 12:18 am

jharris1993 wrote:
Tue Oct 15, 2019 8:53 pm
. . . but Thonny isn't a Python shell, which is what the book is asking for - at least in the beginning.

I've played with mu too on other platforms and it's OK.
IDLE isn't a shell either, it's an IDE just like Thonny.

Have you tried running Thonny? It has a shell pane just like IDLE has a shell window, they provide the same thing, python3's REPL (a.k.a. python shell).
She who travels light — forgot something.

fletchr
Posts: 59
Joined: Thu Jan 07, 2016 3:21 am

Re: Pi-4: Python shell (idle) is missing - why?

Wed Oct 16, 2019 9:07 pm

i just upgraded from a ras 2 to a 3 and wondered the exact same thing. I had been using the IDLE and it just disappeared without a trace.
Thanks for the info...

RossDv8
Posts: 172
Joined: Thu Jan 21, 2016 12:35 pm

Re: Pi-4: Python shell (idle) is missing - why?

Thu Oct 17, 2019 4:35 am

I've sort of given up most programming due to brain injuries, but I did look at Thonny when I got my Pi 4 out of curiosity and it has a built in shell - like IDLE.

Try this and maybe let me know if it works.
Open Thonny from the Programming section of the menu. It should open with some large icons, but no menu toolbar.
Look in the top right corner and see if it says something like Open in Normal mode (or something similar) I can't remember the exact words and I am not on the Pi.
It will ask you to restart Thonny.
This time it should have a traditional File Edit etc etc menu along the top.
Look for 'Tools'
In Tools look for something like Shell or System Shell - or similar.

If my memory is correct you should have a shell pretty well like IDLE.

EDIT:
I booted the Pi 4. Thonny starts on mine now with the Menu across the top. I can't see a way to get back to opening without it. But I DO know there was no menu across the top on the first time - Just the Icons and a note in the top right corner offering to change into another mode. :-)

And Shell is available and you can configure the Shell.. Hope this helps.

A picture is worth half a paragraph:
thonny50.jpg
thonny50.jpg (128.93 KiB) Viewed 518 times
Do not walk behind me - I may not lead
Do not walk in front of me - I may not follow
Don't walk beside me either - just B#gger off and leave me alone !

Return to “Python”