Note that this guide is specifically for notebooks running on a warehouse.
See here for when running a notebook on a container runtime.
If yo want to use a Python package within a notebook running on a warehouse and it's not available via Snowflake’s Anaconda channel of pre-approved packages you’ll need to use a stage to upload the source code of the Python packages you want to use.