Show More
@@ -65,7 +65,12 b' class PackagingMagics(Magics):' | |||
|
65 | 65 | Usage: |
|
66 | 66 | %pip install [pkgs] |
|
67 | 67 | """ |
|
68 |
python = |
|
|
68 | python = sys.executable | |
|
69 | if sys.platform == "win32": | |
|
70 | python = '"' + python + '"' | |
|
71 | else: | |
|
72 | python = shlex.quote(python) | |
|
73 | ||
|
69 | 74 | self.shell.system(" ".join([python, "-m", "pip", line])) |
|
70 | 75 | |
|
71 | 76 | 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