Amazing video! This channel is criminally underrated. It would be cool to see how you would migrate an existing project managed via poetry over to using uv in a future video!
Thank you. One suggesstion; When you share the screen, there should be some space at the bottom of terminal text input place so that when we pause the video, youtube's bar will not block the input and we will still be able to see the input.
Sir, you are a fabulous teacher ,who can make familiar a new tool in project management in just 6 minutes !!! Its lesson on how to make learning simple, yet effective with time consciousness . Thank you & heartful respect from India. Looking for more such videos.
Most of my Python code only uses the standard library (theres a heck of a lot you can do with those batteries) and a lot of modules I prefer to implement my own classes/functions. Might try with my Flask apps though or maybe if I made some of my stuff libraries on PIP.
That is correct, though even after removing the cache the installation is single digit seconds. The power of UV really shines in its completeness as a tool, PEP compliancy and lightning fast dependency resolution.
1. I never work with pytorch, but this github issue seems to have a solution running on GPU: github.com/astral-sh/uv/issues/7202#issuecomment-2447539317. 2. To get a python exe you can use pyinstaller.org/en/stable/. A simple `uv add --dev pyinstaller ` and `uv run pyinstaller` would do the trick :)
Thank you for this introductory video. Your terminal has a very clean look. Would you mind sharing information about the terminal, theme, fonts and file/folder icons? I already found out about bat in the other comments.
Of course! The terminal in the video is Warp (www.warp.dev/), I go back and forth between it and WezTerm. I use the basic prompt from Starship (starship.rs/) and Catppuccin Mocha as theme. I also aliased `exa` (github.com/ogham/exa) to `ll` which, together with the Jetbrains Mono font, gives the nice icons and colored `ls` output.
Thanks! I never gave it much thought though :). I have a mechanical keyboard with brown (silent) switches and a shure mv7. The mic picked up some muffled sounds from the keyboard.
Yes it is fast. If not fast enough you can enable caching: github.com/astral-sh/setup-uv?tab=readme-ov-file#enable-caching Yes, the lock file is cross platform compatible.
A thing that I really like at using poetry as my project dependency manager is that it's create the virtual environment folder outside the project, that's really a cool function So, how can I do the same thing with UV? I noticed that is has been created a .venv folder at the root project...
Personally, I really like having the .venv folder right where the code lives. However, uv does give you the option to specify a custom folder: docs.astral.sh/uv/pip/environments/#creating-a-virtual-environment
Thank you for your video. I am newbie and learning. This was really helpful. Also, if you don’t mind a trivial ask , I liked your font and color scheme- could you share the names
Glad you found it useful. All questions are welcome! I use the open source Jetbrains Mono Nerd font (www.nerdfonts.com/font-downloads), and Catppuccin Mocha color scheme (catppuccin.com/)
99% chance your lsp is using the wrong interpreter. If you use neovim (or zed, or helix), there are plugins that allow you to easily switch venv, but what I found works great is: uv run nvim . That automatically launches vim with the correct venv. In vscode no clue, you probably have to setup a python interpreter by pointing to the .venv/bin/python script. The same holds true for Jetbrains products.
Not precisely, like with requirements.txt, or Poetry, you need to manage your dependencies per project. The version of uv you are running doesn't matter. UV is there to resolve the complicated dependency tree that is pip.
Most modern terminals have nice colors, I personally switch occasionally between Warp and Wezterm, mostly using catppuccin or rosepine color schemes. For `cat` specifically I aliased `bat` to `cat`: github.com/sharkdp/bat
Amazing video! This channel is criminally underrated. It would be cool to see how you would migrate an existing project managed via poetry over to using uv in a future video!
Its lowkey hard to tell that you have 600 subs. I got to 4:00 before I looked down by accident and saw it. Keep it up!
Thank you. One suggesstion; When you share the screen, there should be some space at the bottom of terminal text input place so that when we pause the video, youtube's bar will not block the input and we will still be able to see the input.
Sir, you are a fabulous teacher ,who can make familiar a new tool in project management in just 6 minutes !!! Its lesson on how to make learning simple, yet effective with time consciousness . Thank you & heartful respect from India. Looking for more such videos.
Thank you for your kind words!
Tip: vertical flip your head video to point to the screen instead off screen
thanks for the video!
Oh snap, that's a good tip. I've never even thought about that!
Great tool! Clean explanation. Would like to see more tutorials on uv
Concise and to the point, many thanks for a great review!
Glad you liked it!
Great review Tim! thanks, already shared it with my team.
Great explanation in the right amount of time sir. Thank you 🙏 subbed
Great work, really high quality content.
Glad you think so!
New SUB here
Just flawless ❤
Thanks for easy share.
Great video! Keep at it 💪
Most of my Python code only uses the standard library (theres a heck of a lot you can do with those batteries) and a lot of modules I prefer to implement my own classes/functions. Might try with my Flask apps though or maybe if I made some of my stuff libraries on PIP.
partly why your dependencies installed so quick is because they are cached on your machine.
That is correct, though even after removing the cache the installation is single digit seconds. The power of UV really shines in its completeness as a tool, PEP compliancy and lightning fast dependency resolution.
Sir, 2 Q that I want to ask:
1. How can train/run Yolo with GPU (that Pytorch only install with pip?)
2. How to build uv python app to exe?
1. I never work with pytorch, but this github issue seems to have a solution running on GPU: github.com/astral-sh/uv/issues/7202#issuecomment-2447539317.
2. To get a python exe you can use pyinstaller.org/en/stable/. A simple `uv add --dev pyinstaller ` and `uv run pyinstaller` would do the trick :)
Thank you for this introductory video. Your terminal has a very clean look. Would you mind sharing information about the terminal, theme, fonts and file/folder icons? I already found out about bat in the other comments.
Of course! The terminal in the video is Warp (www.warp.dev/), I go back and forth between it and WezTerm. I use the basic prompt from Starship (starship.rs/) and Catppuccin Mocha as theme. I also aliased `exa` (github.com/ogham/exa) to `ll` which, together with the Jetbrains Mono font, gives the nice icons and colored `ls` output.
Typing sound is great! Couldn't understand, is it captured by the microphone from the keyboard directly or is it a sound in the computer?
Thanks! I never gave it much thought though :). I have a mechanical keyboard with brown (silent) switches and a shure mv7. The mic picked up some muffled sounds from the keyboard.
Is it fast on cold CI start? Does it generate cross platform lockfile?
Yes it is fast. If not fast enough you can enable caching: github.com/astral-sh/setup-uv?tab=readme-ov-file#enable-caching
Yes, the lock file is cross platform compatible.
A thing that I really like at using poetry as my project dependency manager is that it's create the virtual environment folder outside the project, that's really a cool function
So, how can I do the same thing with UV?
I noticed that is has been created a .venv folder at the root project...
Personally, I really like having the .venv folder right where the code lives. However, uv does give you the option to specify a custom folder: docs.astral.sh/uv/pip/environments/#creating-a-virtual-environment
Thank you for your video. I am newbie and learning. This was really helpful. Also, if you don’t mind a trivial ask , I liked your font and color scheme- could you share the names
Glad you found it useful. All questions are welcome! I use the open source Jetbrains Mono Nerd font (www.nerdfonts.com/font-downloads), and Catppuccin Mocha color scheme (catppuccin.com/)
What terminal are you using there?
www.warp.dev/ Fantastic terminal
tui thấy giống npm install (package.js) trong javaScripts.
works great, but my lsp is complaning when i install other packages, as though they weren't installed
99% chance your lsp is using the wrong interpreter. If you use neovim (or zed, or helix), there are plugins that allow you to easily switch venv, but what I found works great is: uv run nvim .
That automatically launches vim with the correct venv. In vscode no clue, you probably have to setup a python interpreter by pointing to the .venv/bin/python script. The same holds true for Jetbrains products.
@@Timnology-r4s hero! haha amazing
and yeah that is it. i will slowly transition to UV, it really looks amazing.
Well this looks great but do i need to manually update and manually manage dependencies for every uv version?
Not precisely, like with requirements.txt, or Poetry, you need to manage your dependencies per project. The version of uv you are running doesn't matter. UV is there to resolve the complicated dependency tree that is pip.
It does not look like any kind of breakthrough. Just another package manager on top of an existing one with even more new commands to learn.
What kind of terminal or configuration (not sure) do you use to have syntax highlighting and "cat" being able to output with that structure?
Most modern terminals have nice colors, I personally switch occasionally between Warp and Wezterm, mostly using catppuccin or rosepine color schemes.
For `cat` specifically I aliased `bat` to `cat`: github.com/sharkdp/bat
The cat he's using in the video is `bat`, presumably just with `alias cat=bat`
lol. may be great tool but i followed your directions and only get error messages. bummer glad it worked for other people
What kind of error messages did you get?
Question, so I can run any of my already existing Python projects just preface the command with UV (after installing)?
Provided your toml file is setup correctly, yes.
I used to have pyenv creating some venvs for my machine, not project related ... can uv do the same?
Yes, that is possible. Though you have to specify the path to the environment.
docs.astral.sh/uv/pip/environments/#creating-a-virtual-environment
Can you share how you get that pretty cat output?
Of course! I aliased `bat` to `cat`: github.com/sharkdp/bat
@@Timnology-r4s Awesome, appreciate it
i was expecting to see a 'K' by the subscribers count
UV is malfunctioning on Jetbrains fleet.
In which way? UV is a cli tool.
@@Timnology-r4s UV pip compile requirements in to requirements txt is writing in Chinese on Jetbrains fleet while in vscode not getting error.
That is not something I can help you with. Most likely an editor or OS language setting.
@@Timnology-r4s No problem and thank you for your time. I just mentioned the error I am getting on fleet maybe because its still in beta.
Cough npm cough… it might be good the only thing it must be adopted as a language standard first
Poetry does the same thing
Some of it, yes. Though poetry isn't fully PEP compliant and is significantly slower on large projects.