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