5 EPIC New Features In REPL (Python 3.13)

  Рет қаралды 17,116

Indently

Indently

Күн бұрын

Пікірлер: 70
@foxypiratecove37350
@foxypiratecove37350 3 ай бұрын
print('\033c') do clear (and not just scrolling to hide the previous things), but there's also print('\033[2J[H') that do the same as the REPL's `clear` command.
@amelia_camellia
@amelia_camellia 3 ай бұрын
Control-L also does this, even in older versions.
@foxypiratecove37350
@foxypiratecove37350 3 ай бұрын
@amelia_camellia It doesn't on Windows, while that I said universal across major OSes (just need some config or Colorama on Windows), but Ctrl + L works on other platforms.
@Indently
@Indently 3 ай бұрын
I’m a huge REPL noob and have only opened it up by accident when working in PyCharm. Super cool with the new clear command so I don’t have to learn print command magic ahah
@foxypiratecove37350
@foxypiratecove37350 3 ай бұрын
@Indently Yeah, these are ANSI escape codes, it's more used for colors but also for things like clearing the screen. Me too I don't remember most so I made a `clear()` function in one of my local modules.
@rvft
@rvft 3 ай бұрын
​@@Indentlyyou can also do os.system("clear") but this one, as you may assume, is NOT OS independent
@ralfbauerfeind8236
@ralfbauerfeind8236 3 ай бұрын
To clear the REPL screen, as you still are in a console, you could probably use the old clear screen keystroke that works in console similar to the command 'clear', CTRL-l (that is a lowercase L).
@ego-lay_atman-bay
@ego-lay_atman-bay 3 ай бұрын
My biggest problem with the new repl, is that history doesn't get preserved in virtual environments like it did (kinda) in previous versions. However, the new paste mode, multiline editing, and colors make up for that.
@jwbowen
@jwbowen 3 ай бұрын
I LOVE that your videos are informative and get straight to the point! I get excited when I see a new one released. You've quickly become my favorite Python channel!
@Indently
@Indently 3 ай бұрын
Thank you :)
@samukaze5810
@samukaze5810 3 ай бұрын
1:10 I thought I heard "Cola in our REPL" 💀
@tompov227
@tompov227 3 ай бұрын
I enjoyed the ow-toe indentation
@samukaze5810
@samukaze5810 3 ай бұрын
@@tompov227 💀 I think it's because he has a Danish accent
@theglobalsouth9680
@theglobalsouth9680 3 ай бұрын
this is cool, i can do even more testing without needing to create a temporary file!
@conradlewis5689
@conradlewis5689 3 ай бұрын
You can use ctrl+L to clear the console in some terminals. Works in Linux Terminal and WIndows Powershell. It does not work in WIndows CMD. It will however work if you are in the Python REPL in Windows CMD
@haerbernd
@haerbernd 3 ай бұрын
I just always imported os and then used os.system('clear') ot os.system('cls') to clean the screen. Good to know that Python 3.13 has it built-in
@thenoblerot
@thenoblerot 3 ай бұрын
I'm here for my my fave tutor learning what repl is, and getting excited about screen clearing 😂
@Indently
@Indently 3 ай бұрын
Screen clearing is the hype!!!!!
@serbansenciuc
@serbansenciuc 3 ай бұрын
So python shell is starting to look similar to ipython, nice. Does this REPL affects `pdb`?
@BarryFriedman7840
@BarryFriedman7840 3 ай бұрын
Some useful updates to the REPL. A long time coming.
@Little-bird-told-me
@Little-bird-told-me 3 ай бұрын
This is amazing. It time to use python3.13 bois
@compositeboson123
@compositeboson123 3 ай бұрын
4:34 ctrl+L will clear it
@Sarath177
@Sarath177 3 ай бұрын
useful thank you
@richardboreiko
@richardboreiko Ай бұрын
What you called the cursor is the prompt. 🙂
@mudi2000a
@mudi2000a 3 ай бұрын
New repl is really nice, so it's now also usable without installing ipython (which I still do so for me not much is changing...)
@ayoubachak01
@ayoubachak01 3 ай бұрын
To clear in the python 3.12 REPL, I have to import the os package and execute the cls command, something like this: import os; os.system("cls")
@Sayied-s7d
@Sayied-s7d 3 ай бұрын
is there paste mode for cmd windows
@davidlu1003
@davidlu1003 2 ай бұрын
Fucking terribly great and awesome!!!! I love coding and python!!!!
@pedropiata648
@pedropiata648 3 ай бұрын
Very nice
@Montegasppa
@Montegasppa 3 ай бұрын
Try Ctrl+L to clean up the console.
@Jelte_Dijkmans
@Jelte_Dijkmans 2 ай бұрын
So basically, the python console is now, what the ipython console has been for ages?
@U.k358
@U.k358 3 ай бұрын
can you make a using tab inside python repl , it is super cool!u
@SkyyySi
@SkyyySi 3 ай бұрын
The new REPL is a great improvement, but it still doesn't even come close to 'ipython' (notice the 'i') :)
@MrEllinan
@MrEllinan 3 ай бұрын
4:39 Ctr + l
@googanigga
@googanigga 3 ай бұрын
Clear: import os; os.system("cls||clear")
@ramprasathmk
@ramprasathmk 3 ай бұрын
prints the 0 at the end of the clearing the screen
@PanayotPanayotov-x6p
@PanayotPanayotov-x6p 3 ай бұрын
Why don't you use ipython - super easy to work with and has so much functionalities
@dipeshsamrawat7957
@dipeshsamrawat7957 3 ай бұрын
Thank you 😊
@jerril42
@jerril42 3 ай бұрын
Thanks for the demo. A lot of very useful features for the repl. The ">>>" at the start of the line is a "prompt". You proabaly knew that, but just forgot. Take care.
@Indently
@Indently 3 ай бұрын
Thank you!
@KavyanshKhaitan
@KavyanshKhaitan 3 ай бұрын
Whatsaaaaaaaaaaaaap!
@Indently
@Indently 3 ай бұрын
Whatdaaaaaaaap
@abodyfattouh7289
@abodyfattouh7289 3 ай бұрын
Whatsaaaaaaaaaap!!!
@Indently
@Indently 3 ай бұрын
Whatsaaaaaaaaaaaaaaa
@vladimirkozyrev3617
@vladimirkozyrev3617 2 ай бұрын
So, they invented ipython
@timothywcrane
@timothywcrane 3 ай бұрын
No longer needing () after exit ... It has been the intro to Python docs and SO for almost two decades... LOL. Admit it. Who's intro to py in shell or IDLE started like vi, how do I get out of here?
@Labib-dw1lk
@Labib-dw1lk 3 ай бұрын
We have colaaar?
@ebiswatson-aputu5498
@ebiswatson-aputu5498 3 ай бұрын
whatsaaaaaaaaaaaap!!!
@Indently
@Indently 3 ай бұрын
Whatsaaaaaaaaaaaaaaaaaap
@marcushollaway3461
@marcushollaway3461 3 ай бұрын
Whatsaaaaaaaaaaaap!!!
@Indently
@Indently 3 ай бұрын
Whatsaaaaaaaaap
@spacelem
@spacelem 3 ай бұрын
Does Ctrl-L clear the screen in earlier Python? That's a pretty common shortcut for refreshing or clearing the screen in the terminal.
@Indently
@Indently 3 ай бұрын
I read from another comment here that apparently it doesn’t work on Windows. Does anyone know if there is a different shortcut for Windows?
@spacelem
@spacelem 3 ай бұрын
​@@IndentlyI don't have any experience programming in Windows unfortunately, so I didn't know that didn't work.
@ramprasathmk
@ramprasathmk 3 ай бұрын
​@@Indentlyas you said earlier in Windows ctrl+L doesn't work in both Command Prompt and Powershell 🤔.
@ebiswatson-aputu5498
@ebiswatson-aputu5498 3 ай бұрын
Whatsaaaaaaaaaaaap!
@ebiswatson-aputu5498
@ebiswatson-aputu5498 3 ай бұрын
I guess I missed the exclamation count. Here we go again 😂😂
@rudraksh111
@rudraksh111 3 ай бұрын
New py 3.13 doesn't have basic things and 3.14 is in pipeline already😅😅 popular lib cannot be found with pip
@mamaoforever1786
@mamaoforever1786 3 ай бұрын
whatsapp 👍
@Indently
@Indently 3 ай бұрын
Whatsaaaaaaap
@rvft
@rvft 3 ай бұрын
New repl colors are lame as hell ngl. Better use rich's console
@JohanildPG
@JohanildPG 3 ай бұрын
does anyone actually seriously use repl?
@joshuacox3644
@joshuacox3644 3 ай бұрын
I always just use scratch files if I’m gonna test something out but maybe it could be useful for testing small temporary functions
@emaaaaax
@emaaaaax 3 ай бұрын
I use it as calculator/converter honestly better than 90% of gui apps
@riadkhanrk
@riadkhanrk 3 ай бұрын
Hi I'm RK! Can you Create a video in the python rich library. Please please please please please please please please 🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺
@avxqt001
@avxqt001 3 ай бұрын
Whatsaaaaaaaaaaaap!!!
@Indently
@Indently 3 ай бұрын
WhatsaaaaaaaaaaaaAaaaaaap
New in Python 3.13: TypeIs
6:19
Indently
Рет қаралды 23 М.
Every F-String Trick In Python Explained
19:43
Indently
Рет қаралды 34 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 68 М.
Async for loops in Python
16:36
mCoding
Рет қаралды 69 М.
5 Really Cool Python Functions
19:58
Indently
Рет қаралды 71 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 341 М.
Turn 2 Eggs Into Fluffy Japanese Soufflé Pancakes!
5:26
CookingAtHome
Рет қаралды 3,3 МЛН
Please Master This MAGIC Python Feature... 🪄
25:10
Tech With Tim
Рет қаралды 176 М.
Solving Wordle using information theory
30:38
3Blue1Brown
Рет қаралды 10 МЛН
Avoid These BAD Practices in Python OOP
24:42
ArjanCodes
Рет қаралды 87 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 716 М.
5 Uncommon Python Features I Love
15:09
Indently
Рет қаралды 178 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН