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.
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 :)
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.
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/)
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
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.
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.
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.
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.
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.
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
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!
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!
New SUB here
Just flawless ❤
Concise and to the point, many thanks for a great review!
Glad you liked it!
Great tool! Clean explanation. Would like to see more tutorials on uv
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!
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 :)
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.
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/)
Thanks for easy share.
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
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.
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.
Great video! Keep at it 💪
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.
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.
tui thấy giống npm install (package.js) trong javaScripts.
What terminal are you using there?
www.warp.dev/ Fantastic terminal
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.
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?
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
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.
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`
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.
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
Poetry does the same thing
Some of it, yes. Though poetry isn't fully PEP compliant and is significantly slower on large projects.
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.