##// END OF EJS Templates
Artur Svistunov -
Show More
@@ -12,7 +12,7 b' import re'
12 12 import shlex
13 13 import sys
14 14 from pathlib import Path
15 from multiprocessing import list2cmdline
15
16 16 from IPython.core.magic import Magics, magics_class, line_magic
17 17
18 18
@@ -66,7 +66,8 b' class PackagingMagics(Magics):'
66 66 Usage:
67 67 %pip install [pkgs]
68 68 """
69 self.shell.system(list2cmdline([sys.executable, "-m", "pip"]) + " " + line)
69 python = shlex.quote(sys.executable)
70 self.shell.system(" ".join([python, "-m", "pip", line]))
70 71
71 72 print("Note: you may need to restart the kernel to use updated packages.")
72 73
General Comments 0
You need to be logged in to leave comments. Login now