##// END OF EJS Templates
Backport PR #13052: Fix path handling in `pip` line magic
Arthur Svistunov -
Show More
@@ -65,7 +65,9 b' class PackagingMagics(Magics):'
65 65 Usage:
66 66 %pip install [pkgs]
67 67 """
68 self.shell.system(' '.join([sys.executable, '-m', 'pip', line]))
68 python = shlex.quote(sys.executable)
69 self.shell.system(" ".join([python, "-m", "pip", line]))
70
69 71 print("Note: you may need to restart the kernel to use updated packages.")
70 72
71 73 @line_magic
General Comments 0
You need to be logged in to leave comments. Login now