Python Forum
better python text editor
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
better python text editor
#1
sorry if I put in the wrong section or my bad English,
currently, I using the Default IDLE Python text editor,
and because it is very basic, I found some troubles,
I hope to find a new Python text editor that is capable to :
-backup before save(and run)
-can [split screen] the code so I can see what [def] in upper-parts without scrolling back and forth,

Does anyone have suggestions?

Note : I using Windows 11
Reply
#2
IDLE is a poor IDE choice. Code running in IDLE sometimes runs differently than code running outside IDLE.

If you have to scroll to see all of a function it probably means you should write shorter functions.

Thonny come up again and again when people ask what IDE is a good choice for new python programmers.

I use VSCode and PyCharm community edition. I like VSCode better, but some of my coworkers prefer PyCharm.
Reply
#3
(Aug-12-2024, 04:05 PM)deanhystad Wrote: IDLE is a poor IDE choice. Code running in IDLE sometimes runs differently than code running outside IDLE.

If you have to scroll to see all of a function it probably means you should write shorter functions.

Thonny come up again and again when people ask what IDE is a good choice for new python programmers.

I use VSCode and PyCharm community edition. I like VSCode better, but some of my coworkers prefer PyCharm.

the functions is quite short, but i add to many #comentary to tell [which is which] and explanations

i tried Thonny,
based on my experience,
it inconvenience for using complex programming like cuda, tensor,

anyway is there any youtube tutorial using VSCode?
and what module i must use in VS installation?
Reply
#4
Well written code shouldn't need a lot of #commentary either. A docstring below the def that describes what the function does is usually sufficient. Maybe a one or two comments to describe what a code block does.

VSCode supports many languages, not just Python. It is not a Python module.

There are many videos about using and installing VSCode.
Reply
#5
fine, i will find it my self
Reply
#6
A few pointers to get you started -
Here is official documentation on installing and starting up with VS Code and Python
Here is a nice introduction.

There are other threads on this website that will suggest other items to install to make your python programming easier. Try and good luck!
kucingkembar likes this post
Reply
#7
(Aug-20-2024, 09:51 PM)jefsummers Wrote: A few pointers to get you started -
Here is official documentation on installing and starting up with VS Code and Python
Here is a nice introduction.

There are other threads on this website that will suggest other items to install to make your python programming easier. Try and good luck!
thank you, i give you a reputation point
Reply
#8
This is an older post, but still a good start: VSCode from start by: Snippsat.
Reply
#9
sorry late,
is there a way to auto-backup the old py when the current py is saved?
for example like this
original : calculator.py
backup : calculator.py.2024-08-23-24-56, calculator.py.2024-08-23-23-40
Reply
#10
Thank you for sending me down a rabbit hole where I learned something.
To see the prior versions of a file you need to use Timeline View.
Choose View, then Open View, then scroll down to Timeline. In the lower left corner you will have a list of the revisions. Click the one you want and you get it in a separate pane where you can work with it.
Big Grin
kucingkembar likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Star Nodezator v1.4 released! (Python node editor in the public domain) KennedyRichard 0 1,818 Sep-04-2023, 01:42 PM
Last Post: KennedyRichard
  Lightweight Python editor for beginners Gribouillis 0 1,373 Dec-23-2022, 06:07 AM
Last Post: Gribouillis
Star Nodezator (free Python node editor) released to the public domain! KennedyRichard 4 3,772 Jun-24-2022, 09:49 AM
Last Post: Larz60+
  The best Python editor? c_rutherford 12 7,374 Jul-28-2020, 07:45 PM
Last Post: Marbelous
  Finding python editor Python666 4 72,321 Apr-12-2020, 01:29 PM
Last Post: Python666
  Learning Python. Which is a good text editor for MacOS? birb 4 4,493 Feb-18-2019, 08:26 AM
Last Post: Larz60+
  I made a real-time python editor - anyone have any feedback? Almenon 2 4,293 Jan-20-2018, 08:23 AM
Last Post: Almenon
  Spyder text editor? tcebob 11 15,878 Dec-19-2016, 09:09 AM
Last Post: wavic
  Open Source and X Platform development editor for Python donj 12 15,079 Nov-03-2016, 08:15 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020