Show More
@@ -2639,7 +2639,10 b' class InteractiveShell(SingletonConfigurable):' | |||||
2639 | """ |
|
2639 | """ | |
2640 | cmd = self.var_expand(cmd, depth=1) |
|
2640 | cmd = self.var_expand(cmd, depth=1) | |
2641 | # warn if there is an IPython magic alternative. |
|
2641 | # warn if there is an IPython magic alternative. | |
2642 | main_cmd = cmd.split()[0] |
|
2642 | if cmd == "": | |
|
2643 | main_cmd = "" | |||
|
2644 | else: | |||
|
2645 | main_cmd = cmd.split()[0] | |||
2643 | has_magic_alternatives = ("pip", "conda", "cd") |
|
2646 | has_magic_alternatives = ("pip", "conda", "cd") | |
2644 |
|
2647 | |||
2645 | if main_cmd in has_magic_alternatives: |
|
2648 | if main_cmd in has_magic_alternatives: |
General Comments 0
You need to be logged in to leave comments.
Login now