Show More
@@ -223,7 +223,7 b' def module_completion(line):' | |||||
223 | return ['import '] |
|
223 | return ['import '] | |
224 |
|
224 | |||
225 | # 'from xy<tab>' or 'import xy<tab>' |
|
225 | # 'from xy<tab>' or 'import xy<tab>' | |
226 |
if nwords < 3 and (words[0] in |
|
226 | if nwords < 3 and (words[0] in {'%aimport', 'import', 'from'}) : | |
227 | if nwords == 1: |
|
227 | if nwords == 1: | |
228 | return get_root_modules() |
|
228 | return get_root_modules() | |
229 | mod = words[1].split('.') |
|
229 | mod = words[1].split('.') |
@@ -2103,6 +2103,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
2103 |
|
2103 | |||
2104 | self.set_hook('complete_command', module_completer, str_key = 'import') |
|
2104 | self.set_hook('complete_command', module_completer, str_key = 'import') | |
2105 | self.set_hook('complete_command', module_completer, str_key = 'from') |
|
2105 | self.set_hook('complete_command', module_completer, str_key = 'from') | |
|
2106 | self.set_hook('complete_command', module_completer, str_key = '%aimport') | |||
2106 | self.set_hook('complete_command', magic_run_completer, str_key = '%run') |
|
2107 | self.set_hook('complete_command', magic_run_completer, str_key = '%run') | |
2107 | self.set_hook('complete_command', cd_completer, str_key = '%cd') |
|
2108 | self.set_hook('complete_command', cd_completer, str_key = '%cd') | |
2108 | self.set_hook('complete_command', reset_completer, str_key = '%reset') |
|
2109 | self.set_hook('complete_command', reset_completer, str_key = '%reset') |
General Comments 0
You need to be logged in to leave comments.
Login now