I'm using InteractiveShellEmbed
from IPython.terminal.embed
to embed IPython in my app. All works rigth, but autocomplete not works with modules. For example: import rand[TAB]
doesn't completes to import random
.
What can I do to fix this?
My code:
# -*- coding: utf-8 -*-
#!/usr/bin/env python
def main():
from IPython.terminal.embed import InteractiveShellEmbed
ipshell = InteractiveShellEmbed(banner1 = 'Loading\n',
exit_msg = 'Leaving')
ipshell('Hit Ctrl-D to exit interpreter.\n')
if __name__ == "__main__":
main()