class_docstr: Magics related to packaging & installation
class_docstr_tok: ["Magics","related","to","packaging","&","installation"]
docstr: Run the pip package manager within the current kernel.
  
  Usage:
    %pip install [pkgs]
docstr_tok: ["Run","the","pip","package","manager","within","the","current","kernel",".","Usage",":","%","pip","install","[","pkgs","]"]
code: def pip(self, line):
      """Run the pip package manager within the current kernel.
  
      Usage:
        %pip install [pkgs]
      """
      python = sys.executable
      if sys.platform == "win32":
          python = '"' + python + '"'
      else:
          python = shlex.quote(python)
  
      self.shell.system(" ".join([python, "-m", "pip", line]))
  
      print(
          "Note: you may need to restart the kernel to use updated packages."
      )
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/magics/packaging.py
imports: import functools
  import re
  import shlex
  import sys
  from pathlib import Path
  from IPython.core.magic import Magics, magics_class, line_magic
label_desc: Use image node_id 1 for calling the PackagingMagics obj's underlying member method code with example usage: obj.pip(line) without return types