Python, elementary math 

My child likes to play with and do simple stuff like addition and checking for True and False. I hacked together some code to teach some more basic .

codeberg.org/ashwinvis/mathfun

Could be better, but seems to work. Suggestions welcome.

I'm in! Hacktoberfest 2020 

The project: the repository of standalone type annotations for the stdlib opened up for 2 weeks back.

It is fairly easy to contribute and find low hanging fruits yourself as described here:

github.com/python/typeshed/iss

I got my last PR for this season into typeshed:
github.com/python/typeshed/pul

Apart from this I have submitted 2 PRs to , 1 to - tools that I regularly use.

Now to get that tree :)

πŸ’– I'm sponsoring Stefan Behnel (scoder) because he is the unspoken hero of the Scientific ecosystem, maintainer of the package. [1]

Cython powers everything like , , , scikit-image - you name it. Cython as a project makes a little below $50 a year [2] and is woefully underfunded.

[1]: cython.org/#donate
[2]: github.com/paugier/czi-joint-p

I am trying my hand at exposing a code to .

βœ… Building a shared library
βœ… Linking and building a module
πŸ˜• Initializing and passing MPI_COMM_WORLD to a Fortran subroutine

I am unsure whether I should rely on or add a bunch of C / Fortran functions to initialize natively.

Framework
gr-framework.org/index.html

GR is a universal framework for cross-platform applications. There are examples in

Found this because supports GR

's walrus operator is like that friend who is weird at first, but over time you like having him around.

This explanation, although the example is trivial, sums it up nicely.

Python packaging, research code 

I made a new release of the file reader package today --- twice!

pypi.org/project/pymech/1.3.0.

Some weird bug in setuptools + setuptools_scm toolchain caused empty wheels to be uploaded first. This fixed it:

github.com/jcanton/pymech/comm

I should file a bug report later on.

Supporting open-source 

I just donated to NumFOCUS! Join me and show your support for the open source projects we love. numfocus.salsalabs.org/donate

Aah... better late than never, removeprefix and removesuffix string methods soon in 3.9.

python.org/dev/peps/pep-0616

Visualization in Python and R 

I was mostly happy with the visualization capabilities of and the surrounding ecosystem [1]. Heck you can even hack and get cool retro plots [2].

That changed when I saw the package [3] and its 3D rendering capabilities. The only way to achieve that with would be to use [4].

[1]: github.com/rougier/python-visu
[2]: matplotlib.org/matplotblog/pos
[3]: github.com/tylermorganwall/ray
[4]: blog.kitware.com/paraview-and-

Python asyncio critique 

3 has managed to clean up a lot of historic baggage, only to add new pain points like the implementation. 😫 Futures and tasks are kind of the same, but not? Refactor a lot of code to get it working, only to get a code which runs sequentially!

This also affects third party libraries, like , which I have been trying to get it right. If it does not work, I will check out , and their fork of urllib3, hip.

Mastodon @ SUNET

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!