MCPcopy Create free account
hub / github.com/ipython/ipython / pip

Method pip

IPython/core/magics/packaging.py:62–69  ·  view source on GitHub ↗

Run the pip package manager within the current kernel. Usage: %pip install [pkgs]

(self, line)

Source from the content-addressed store, hash-verified

60
61 @line_magic
62 def pip(self, line):
63 """Run the pip package manager within the current kernel.
64
65 Usage:
66 %pip install [pkgs]
67 """
68 self.shell.system(' '.join([sys.executable, '-m', 'pip', line]))
69 print("Note: you may need to restart the kernel to use updated packages.")
70
71 @line_magic
72 def conda(self, line):

Callers

nothing calls this directly

Calls 1

systemMethod · 0.80

Tested by

no test coverage detected