Clemens Brunner
@cbrnr.bsky.social
67 followers 230 following 32 posts
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
Posts Media Videos Starter Packs
cbrnr.bsky.social
I've just released MNELAB 1.0.4 (a GUI for MNE-Python, a package for analyzing EEG/MEG data), which now includes standalone installers for macOS and Windows:

github.com/cbrnr/mnelab

#EEG #Python
GitHub - cbrnr/mnelab: MNELAB – a GUI for MNE
MNELAB – a GUI for MNE. Contribute to cbrnr/mnelab development by creating an account on GitHub.
github.com
Reposted by Clemens Brunner
florianaigner.at
Newsflash: Fliegen kann man nicht billiger machen. Man kann nur erreichen, dass die, die fliegen, weniger zahlen. Die Schäden, die dadurch entstehen, müssen von allen anderen gezahlt werden.
Hätten wir Kostenwahrheit im Transport, würden wir längst hektisch Highspeed-Zugnetze bauen.
cbrnr.bsky.social
#rstats 4.5 now includes the `penguins` data frame! 🚀
cbrnr.bsky.social
When installing #rstats on #macos, installing packages defaults to the system library. R won't use the user library (~/Library/R/arm64/4.5/library) unless I *manually* create it. On Linux and Windows, R creates this location automatically. Is this intentional? It feels unintuitive and inconsistent.
cbrnr.bsky.social
#Electron apps cannot be resized on #Wayland anymore, at least on #GNOME. Given that GNOME defaults to Wayland nowadays, I wonder why so few people experience this problem, since it affects VS Code, Signal, Discord, and so on. If you can help, please check out github.com/electron/ele.... #Linux
Resize window doesn't work on Wayland · Issue #44543 · electron/electron
Preflight Checklist I have read the Contributing Guidelines for this project. I agree to follow the Code of Conduct that this project adheres to. I have searched the issue tracker for a bug report ...
github.com
cbrnr.bsky.social
Ja, ist mir schon vor einiger Zeit positiv aufgefallen! Jetzt fehlt nur mehr ein Mastodon-Account 😉.
cbrnr.bsky.social
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!
cbrnr.bsky.social
And I also agree, maybe it's still too early times. IDE integration could also be much improved with native uv support for example!
cbrnr.bsky.social
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!
cbrnr.bsky.social
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`).
cbrnr.bsky.social
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).
cbrnr.bsky.social
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.
cbrnr.bsky.social
MNELAB, a GUI for #EEG/#MEG analysis in #Python, has reached the v1.0.0 milestone!

- UI improvements such as an improved sidebar
- Improved Montage dialog
- Improved Filter dialog
- A new dialog to inspect channel statistics
- Improved export to BrainVision format

github.com/cbrnr/mnelab
GitHub - cbrnr/mnelab: MNELAB – a GUI for MNE
MNELAB – a GUI for MNE. Contribute to cbrnr/mnelab development by creating an account on GitHub.
github.com
cbrnr.bsky.social
Python 3.13 currently has a known issue on Windows that prevents users from pasting code snippets containing indentation into the new REPL.

The Python development team is looking for someone with Windows expertise to help test a proposed fix: github.com/python/cpyth...

#Python #Windows #VSCode
Pasting a function definition does not work in 3.13 REPL with Windows Terminal · Issue #124096 · python/cpython
Bug report Bug description: I use Python downloaded from python.org without using a graphical environment such as IPython. Instead, I use the Windows Terminal with the REPL built into python.exe. I...
github.com
cbrnr.bsky.social
Ja, vermutlich damit dann noch mehr Chalets in die Berge gebaut werden können...
cbrnr.bsky.social
Does anyone else find it irritating that the default behavior of #RStats on #macOS installs packages to the system library instead of the user library?

I think the problem only occurs if the directory does not exist. If I manually create it, then everything works.

Is this a bug? Or is it just me?
cbrnr.bsky.social
Also, Excel cannot open more than one file with the same name, but in different folders, at the same time (at least on macOS).
cbrnr.bsky.social
Here's my #AdventOfCode Day 6 solution in Julia:

github.com/cbrnr/aoc202...

Not optimized at all, so Part 2 takes a few seconds, but I'm quite happy with the solution.

#julialang
aoc2024/06.jl at main · cbrnr/aoc2024
Contribute to cbrnr/aoc2024 development by creating an account on GitHub.
github.com
cbrnr.bsky.social
Naja, Grazer Radweg wäre es, wenn man da zwischen den Schienen fahren müsste und es nicht extra gekennzeichnet ist 😆.
cbrnr.bsky.social
Here's my #AdventOfCode Day 5 solution in #Julia:

github.com/cbrnr/aoc202...

Nothing fancy to see here (no graph-related algorithms), just some nice function vectorizations made easy in Julia. In Part 2, I simply swap items for each incorrect rule until all the rules are satisfied.
aoc2024/05.jl at main · cbrnr/aoc2024
Contribute to cbrnr/aoc2024 development by creating an account on GitHub.
github.com
cbrnr.bsky.social
Here's my #AdventOfCode Day 4 solution in #Julia:

github.com/cbrnr/aoc202...

Fairly straightforward and OG implementation I think, I'm just manually checking all directions in a matrix of chars.
aoc2024/04.jl at main · cbrnr/aoc2024
Contribute to cbrnr/aoc2024 development by creating an account on GitHub.
github.com
cbrnr.bsky.social
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.