importing libraries in junyper code example
Example 1: pip install safely in jupyter
# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install numpy
Example 2: install a package in jupyter notebook
install a package in jupyter notebook