Why should this work?
python3 -m pip install jupyter matplotlib plotly
It cannot! Please, stop claiming it!
What you could try is something like
sudo apt install pipx pipx install virtualenv virutalenv /opt/quarto_env source /opt/quarto_env/bin/activate unset DISPLAY # yes I´m on WSL2, hngggg python3 -m pip install jupyter matplotlib plotly
muah.