Friday, November 27, 2026

Upgrading Python version 3.10 to 3.11 - lessons learned

I started experimenting with Python  roughly 6 years (at that time on Python 3.10.x)  but never paid a lot of attention on the Python version used in the different conda environments. 

Last weekend I however saw the first warnings about breaking changes. To play it safe, I decided to first upgrade from version 3.10 to 3.11 even though 3.11 is only supported until October 2027 (see Status of Python versions) for more information.

I decided not to use "conda update python" since that command tries to install the latest Python version that is compatible with all currently installed packages and available in your configured channels. With a lot of packages installed in the conda environments it would be a bit of random guess on which version would be eventually installed.

Instead I explictly pinned the the target version explicitly (conda install python=3.12) so that I knew exactly what version I was moving to and I also cloned the conda environment.



Afterwards I started testing the different Jupyter notebooks - some of them are available on Github  jorisp/tradingnotebooks. Below a list of things I had to fix:

  • yfinance broken since the peewee library got uninstalled - so I had to reinstall it conda install -c conda-forge peewee
  • Rewrote some of the panda resample code - since starting with pandas 2.1, the frequency alias 'M' (month-end) was deprecated and renamed to 'ME' ("Month End") to make its meaning clearer

  • Upgraded the alphavantage package to 3.0.0  and also noticed at the same time that the functionality in the free version has been cut down a lot so not really useful anymore. If you still want to see it working see https://github.com/jorisp/tradingnotebooks/blob/master/AlphaVantage%20GOOG.ipynb
  • Upgraded the pandas-datareader package to 0.11.1 to fix compatibility issues. I used this library to download Fama-French factor model data.

I will keep on updating this post in the coming weeks and add additional info.

References:

Sunday, September 13, 2026

Quick tips: Markdown

 Visual Studio Code supports Markdown out of the box (see Markdown and Visual Studio Code) - to switch between edit mode and preview mode - using CTRL+Shift+V on Windows.

Monday, August 10, 2026

Quick tip: how to check the Python version and packages installed in a Python virtual environment

 Activate the environment and run python --version or python -V


To check a specific package e.g. streamlit run pip show streamlit inside the anaconda prompt


Thursday, May 14, 2026

The memory paradox: why our brains need knowledge in the age of AI

I have this aching feeling - which might sound familiar -  but I never saw any academic research on this: offloading too much thinking to AI and digital tools is weakening our cognitive abilities (in plain words - AI makes us dumber ...) . 

In the white paper "The memory paradox: why our brains need knowledge in the age of AI" - the lead author - Barbara Oakley points to changes in education and the rise of cognitive offloading to why IQ scores are declining in developed countries. 

If she is right, the outlook for companies in the near future does not look good ...



Saturday, March 14, 2026

Understanding conda channels

 Conda channels are package source - locations where conda looks for software packages when you run conda install. Each channel can contain different package versions, build configurations, platform-specific binaries, etc ...


In the screenshot above, you will notice 4 different conda channels:

  • defaults: the official Anaconda repository, has stable, curated with conservative updates
  • microsoft: Microsoft maintains its own channel mainly for AzureML environment support or packages tuned for Windows performance.
  • anaconda: similar to the defaults channel
  • conda-forge: community driven, massive ecosystem with the latest versions. Receives updates within hours of upstream releases
You can add a channel using this command: conda config --add channels microsoft. Conda searches channels in order, from highest priority to lowest. So from my configuration, it first try to install from defaults. If not found, it falls back to microsoft, and so on ...



Tuesday, January 13, 2026

Quick tip: fix eID Viewer installation - a driver can't load on this device

I recently had to use the Belgian eID software and couldn't get it to work on the Windows 11 - it always failed with "A driver can't load on this device" - in the end I had to Turn off memory integrity setting (Microsoft support)

Since keeping the memory integrity setting is highly recommend - I would change the setting as soon as possible. Uninstall the Belgian eID software after you have used it and run pnputil to remove the faulty drivers so that you can enable the memory setting again.