Show More
@@ -66,7 +66,9 b' class PackagingMagics(Magics):' | |||
|
66 | 66 | Usage: |
|
67 | 67 | %pip install [pkgs] |
|
68 | 68 | """ |
|
69 | self.shell.system(' '.join([sys.executable, '-m', 'pip', line])) | |
|
69 | python = shlex.quote(sys.executable) | |
|
70 | self.shell.system(" ".join([python, "-m", "pip", line])) | |
|
71 | ||
|
70 | 72 | print("Note: you may need to restart the kernel to use updated packages.") |
|
71 | 73 | |
|
72 | 74 | @line_magic |
General Comments 0
You need to be logged in to leave comments.
Login now