The !pip command installs packages from the notebook into the currently running kernel but does not limit the installation to the currently running kernel only. This means that if you have multiple kernels running in your notebook, !pip will install the package in all of them.