##// END OF EJS Templates
Backport PR #13093: Fix #13084
Blazej Michalik -
Show More
@@ -65,7 +65,12 b' class PackagingMagics(Magics):'
65 Usage:
65 Usage:
66 %pip install [pkgs]
66 %pip install [pkgs]
67 """
67 """
68 python = shlex.quote(sys.executable)
68 python = sys.executable
69 if sys.platform == "win32":
70 python = '"' + python + '"'
71 else:
72 python = shlex.quote(python)
73
69 self.shell.system(" ".join([python, "-m", "pip", line]))
74 self.shell.system(" ".join([python, "-m", "pip", line]))
70
75
71 print("Note: you may need to restart the kernel to use updated packages.")
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