Easiest method. This button launches notebook from this GitHub
There is a predefined devcontainer.json with Python 3.11 and Jupyter extensions. So VS Code should detect it and offer you automatic installation of dev containers
Using pyenv, you can install Python 3.11 version and then subsequent dependencies in Jupyter notebook.
pyenv install 3.11
After pyenv 3.11 installation, any python command should be automatically routed to 3.11 in this directory/repo if the pyenv is active using .python-version
file