Show More
@@ -66,6 +66,7 b' class PackagingMagics(Magics):' | |||||
66 | %pip install [pkgs] |
|
66 | %pip install [pkgs] | |
67 | """ |
|
67 | """ | |
68 | self.shell.system(' '.join([sys.executable, '-m', 'pip', line])) |
|
68 | self.shell.system(' '.join([sys.executable, '-m', 'pip', line])) | |
|
69 | print("Note: you may need to restart the kernel to use updated packages.") | |||
69 |
|
70 | |||
70 | @line_magic |
|
71 | @line_magic | |
71 | def conda(self, line): |
|
72 | def conda(self, line): | |
@@ -99,3 +100,4 b' class PackagingMagics(Magics):' | |||||
99 | extra_args.extend(["--prefix", sys.prefix]) |
|
100 | extra_args.extend(["--prefix", sys.prefix]) | |
100 |
|
101 | |||
101 | self.shell.system(' '.join([conda, command] + extra_args + args)) |
|
102 | self.shell.system(' '.join([conda, command] + extra_args + args)) | |
|
103 | print("\nNote: you may need to restart the kernel to use updated packages.") No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now