Clemens Brunner
banner
cbrnr.bsky.social
Clemens Brunner
@cbrnr.bsky.social
I love Python, R, and Julia, and I combine their power to do neuroscience, EEG processing, machine learning, and applied statistics. I am currently working as a senior scientist at University of Graz, Austria.

cbrnr.github.io · scholar.social/@cbrnr
Buchempfehlung:

www.acityonmars.com

Die Autoren sind auch hier auf Bsky zu finden (ich tagge sie absichtlich nicht).
A CITY ON MARS
Earth is not well. The promise of starting life anew somewhere far, far away—no climate change, no war, no Twitter—beckons, and settling the stars finally seems within our grasp. Or is it? Critica...
www.acityonmars.com
March 5, 2025 at 6:33 AM
Ja, ist mir schon vor einiger Zeit positiv aufgefallen! Jetzt fehlt nur mehr ein Mastodon-Account 😉.
February 10, 2025 at 2:32 PM
I'd say yes, because instantiating a project is instantaneous (if you've downloaded the packages before). However, there are alternatives, such as running just the script, or even `uvx python` (short for `uv tool run python`) for spawing a REPL. I'm still learning new things about uv every day too!
February 10, 2025 at 12:12 PM
Exactly! Alternatively, if you don't want to create a project, you can even include it in the script directly (see docs.astral.sh/uv/guides/sc...).
Running scripts | uv
A guide to using uv to run Python scripts, including support for inline dependency metadata, reproducible scripts, and more.
docs.astral.sh
February 10, 2025 at 11:19 AM
And I also agree, maybe it's still too early times. IDE integration could also be much improved with native uv support for example!
February 10, 2025 at 10:56 AM
I guess my point is: uv is the greatest thing Python tooling has ever seen, but you cannot and should not expect it to work just like pip and venv!
February 10, 2025 at 10:55 AM
uv requires you to re-think many things you have gotten used to. It took me a while to wrap my head around. It doesn't work like pip, but you can (but probably shouldn't) use `uv pip` (e.g. you can `uv pip install` packages into the corresponding venv, which you can manually create with `uv venv`).
February 10, 2025 at 10:54 AM
Using the official installers is a good solution! But I don't think you should blame uv here, it sounds like an IDE-related issue. In VS Code, you can set the interpreter for a project, then it will use the venvby default (`python` works). Also, there is no global Python in uv (you don't need it).
February 10, 2025 at 10:43 AM
I think this is kind of the point, you should never have to think about environments. If you hate running `uv python`, then you can always activate the underlying venv to use `python`. Although I'd be interested to know what's bothering you.
February 10, 2025 at 10:32 AM
Ja, vermutlich damit dann noch mehr Chalets in die Berge gebaut werden können...
January 13, 2025 at 1:40 PM
Also, Excel cannot open more than one file with the same name, but in different folders, at the same time (at least on macOS).
December 10, 2024 at 1:56 PM
Naja, Grazer Radweg wäre es, wenn man da zwischen den Schienen fahren müsste und es nicht extra gekennzeichnet ist 😆.
December 9, 2024 at 3:21 PM
Yeah, I guess (2) is the correct definition from a technical point of view (since methods are just callable attributes). But I still think of attributes vs methods, maybe because other languages make a clearer distinction.
December 3, 2024 at 1:48 PM