Show More
@@ -66,7 +66,9 b' class PackagingMagics(Magics):' | |||||
66 | Usage: |
|
66 | Usage: | |
67 | %pip install [pkgs] |
|
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 | print("Note: you may need to restart the kernel to use updated packages.") |
|
72 | print("Note: you may need to restart the kernel to use updated packages.") | |
71 |
|
73 | |||
72 | @line_magic |
|
74 | @line_magic |
General Comments 0
You need to be logged in to leave comments.
Login now