The big libraries usually have a sort of “introduction” section or small snippets of code like this, It’s just that watching it In video is more fun than reading it
I have two things to say: 1. This is a great video (thanks for the great content by the way). 2. in the "Progress Bar" part, it would be much prettier not to print anything and just add the `time.sleep() in the for loop. The result is a beautifully minimal progress bar without the extra lines. :) Cheers mate!
Thanx for this tutorial. The styled output looks awesome and the formatted traceback is much nicer than the built-in traceback. PyCharm users don't forget to enable “emulate terminal” in output console option in run/debug configuration to see styled output.
If I want to do `for item in List`, can I do `for item in track(List, ...)` instead to achieve the same effect but with a nicer progress bar? EDIT: I tested it out, you can.
I love rich (also textual, a TUI from the same dev that heavily makes use of rich). My only problem with this is it doesn't plays nice with terminal output thats not natively styled with rich. Any idea how we can show standard ansi colored terminal output (from another app) with rich as it is supposed to look like? when working with these strings, rich kills all color data and formatting :-/. I even went to the length to write my own pygments syntax highlighter that is supposed to show colored terminal output but it's so painful, unreliable and feels so unnecessary
You might want to take a look also into `icecream`: ``` - It prints both expressions/variable names and their values. - It's 40% faster to type. - Data structures are pretty printed. - Output is syntax highlighted. - It optionally includes program context: filename, line number, and parent function. ``` github.com/gruns/icecream
Great video - thanks. Can you tell me please, am I right in thinking this DOES NOT format or give me invitation for INPUT from the user? How do I ask for input using Rich??? I have a horrible feeling that I can not do this! I feel that I need a terminal-user-interface :¬( thanks
Your English is quite good, so your pronunciation of "console" sticks out. When pronounced with the stress on the second syllable (conSOLE), it means "comfort (someone) at a time of grief." To refer to a terminal you should pronounce it with stress on the *first* syllable (CONsole). Mach's gut!
hi i have a question, I'm making my own terminal and i've got some ascii text on the top and i wanted to make it green, but rich wont let me, it looks decent don't get me wrong but its highlighting the slashes purple and it's bugging me, any fixes or am i stuck with hints of purple
I have been looking for a way to make textmode programs in Python, since I messed around with Turbo Pascal in my youth. So I installed the 'rich' library on my Win10 PC. When I type "python -m rich", the colors are less rich (looks like only 13 different colors), the text formats (bold, italic, underline etc) are not showing, just plain basic text. Also the asian characters don't show.
Sounds like english isn't your first language. And it's bugging me when you say console as in the verb(emphasis on the second syllable) rather than console like the noun(emphasis on the first syllable).
This is better if u are building some kind of console application else it just waste of time just practice improving the logic no one cares about this in Industry.
This is how every python library should be introduced.
The big libraries usually have a sort of “introduction” section or small snippets of code like this, It’s just that watching it In video is more fun than reading it
Do you agree that this library makes the output much more beautiful? :)
Ofc
Oh yes! 😎👍👏👏
Please share the code files or links in the description...! It's really Awesome.
I have two things to say:
1. This is a great video (thanks for the great content by the way).
2. in the "Progress Bar" part, it would be much prettier not to print anything and just add
the `time.sleep() in the for loop. The result is a beautifully minimal progress bar without the extra lines. :)
Cheers mate!
Yes of course
Excellent presentation and content.
I use python for 3 years and I wasn't aware of this package. Ty
Thanx for this tutorial.
The styled output looks awesome and the formatted traceback is much nicer than the built-in traceback.
PyCharm users don't forget to enable “emulate terminal” in output console option in run/debug configuration to see styled output.
Wow that is one really cool module. Thanks for bringing this to my attention.
Thank you so much bro. This truly helped to change my console look for the better.
Great Tutorial. Thanks for explaining it in an enjoyable way
This is fantastic....!!! Such colorful print statements. Definitely it's a must to use in projects. Thank you...
Glad you like it!
Excellent video, I
I am learning python even though I can only say that I know the most basic, but even so I feel that I need more to learn Python
Python is so much fun, take it easy tho!
very easy to learn and super useful module.
Nice tour! Thanks.
This is best for console applications
Cool.... looking good.... thanks for sharing the tutorial on this package....
Very useful for CLI app, thanks!
yep it's pretty nice :)
If I want to do `for item in List`, can I do `for item in track(List, ...)` instead to achieve the same effect but with a nicer progress bar?
EDIT: I tested it out, you can.
great!
Just discovered your channel, I love it.
thank you!
beautiful module thanks
Just awsome... Thanks alot for the video..
awsome library... i will definitely use it in my project
Nice!
Thank you !
Fun fact: the newest update of pip uses this library, and it looks amazing
Very nice! Thank you!
Very useful indeed. Thanks
Great tool! Thank you for sharing!
glad you like it!
Great, thanks
Thanks for the tip.
Very neat library! Thanks
glad you like it!
very good video seriously.
Is beautiful :o
am I dreaming? is this real? this is some game changing stuff!
Big fan of yours .
Any videos on automation framework for testing plz
Thanks! not yet but maybe in the future
Intresting
I love rich (also textual, a TUI from the same dev that heavily makes use of rich). My only problem with this is it doesn't plays nice with terminal output thats not natively styled with rich. Any idea how we can show standard ansi colored terminal output (from another app) with rich as it is supposed to look like? when working with these strings, rich kills all color data and formatting :-/. I even went to the length to write my own pygments syntax highlighter that is supposed to show colored terminal output but it's so painful, unreliable and feels so unnecessary
hmm no idea. maybe you can open a question in the github repo
I will definitely use it for debugging [ its hard to find print("function called") in console 😁]
Nice 👍🏻
You might want to take a look also into `icecream`:
```
- It prints both expressions/variable names and their values.
- It's 40% faster to type.
- Data structures are pretty printed.
- Output is syntax highlighted.
- It optionally includes program context: filename, line number, and parent function.
```
github.com/gruns/icecream
I need your Hep In progress Bar
Is it possible to generate an output html updating in realtime to see the running code directly in the browser?
How does this work across other OSes? Will this work on our primary AIX servers? What termcaps?
Beautiful! 😍
What plugin do you use for your ide?
NICE
Best.
Great video - thanks. Can you tell me please, am I right in thinking this DOES NOT format or give me invitation for INPUT from the user? How do I ask for input using Rich??? I have a horrible feeling that I can not do this! I feel that I need a terminal-user-interface :¬( thanks
hi! can you show how to setup your terminal?
You got a sub
Great channel
Yeah thanks :)
how to do this with inputs?
i feel i am indebted to u
Can i create full screen app with this library?
Your English is quite good, so your pronunciation of "console" sticks out. When pronounced with the stress on the second syllable (conSOLE), it means "comfort (someone) at a time of grief." To refer to a terminal you should pronounce it with stress on the *first* syllable (CONsole). Mach's gut!
It is nice but it should be developed as plugin rather than package
Hey man can you suggest how to print pandas data frames in styles over cmd ?
I'm not using jupyter notebook. Would love the cmd option.
did you find out?
no
How do you use new line
in console?
Does it work in Jupyter Lab?
hi i have a question, I'm making my own terminal and i've got some ascii text on the top and i wanted to make it green, but rich wont let me, it looks decent don't get me wrong but its highlighting the slashes purple and it's bugging me, any fixes or am i stuck with hints of purple
What other terminal emulators does this work with ?
Can you use rich on G Colab. Thank you kindly
I have been looking for a way to make textmode programs in Python, since I messed around with Turbo Pascal in my youth. So I installed the 'rich' library on my Win10 PC. When I type "python -m rich", the colors are less rich (looks like only 13 different colors), the text formats (bold, italic, underline etc) are not showing, just plain basic text. Also the asian characters don't show.
how it works on input?
how does your mac's terminal has so many colors? I have been trying to do with my terminal, but all in vain. Help me with this please.
I customized it with iTerm2 and Oh My Zsh
@@patloeber thanks a lot
nice
where are you from?
Germany
Nice but I don't think I'll need to learn another html
Sir, please python developer learning ROADMAP PATH PLZ for web and app data science, AI plz share pic
can you make a tutorial about pytest.🙄
Yes this is on my list
@@patloeber okay.
@@patloeber can you also make a tutorial on debugging using pycharm or VSC IDE? Danke!
Sounds like english isn't your first language. And it's bugging me when you say console as in the verb(emphasis on the second syllable) rather than console like the noun(emphasis on the first syllable).
Hide that you can’t code; with colors!
haha yeah ;)
This is better if u are building some kind of console application else it just waste of time just practice improving the logic no one cares about this in Industry.
how do i do the blinking text?