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): | |
@@ -98,4 +99,5 b' class PackagingMagics(Magics):' | |||||
98 | if needs_prefix and not has_prefix: |
|
99 | if needs_prefix and not has_prefix: | |
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)) No newline at end of file |
|
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