You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using IPython.terminal.embed.InteractiveShellEmbed as an embedded, interactive shell, I cannot get regular importing to tab-complete. Once a package (say netrc) is imported, I can still tab-complete the package, though.
To wit, create a test file sheller.py:
from cli.app import CommandLineApp
from IPython.terminal.embed import InteractiveShellEmbed
class Manager(CommandLineApp):
def setup(self):
super(Manager, self).setup()
self.intro_message = 'Context manager running'
def main(self):
ipshell = InteractiveShellEmbed()
ipshell.banner2 = self.intro_message
ipshell(global_ns=dict(), local_ns=dict())
logging.info("Interactive shell closed.")
if __name__ == "__main__":
Manager().run()
Then, from Bash, run it:
$ python sheller.py
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
Type "copyright", "credits" or "license"for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.
object? -> Details about 'object', use 'object??'for extra details.
Context manager running
In : import net<tab># ...crickets...
In : import netrc # explicit import, not tabbing
In : netrc.<tab>
netrc.NetrcParseError netrc.netrc netrc.os netrc.shlex
In : quit
$ ipython
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
Type "copyright", "credits" or "license"for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.
object? -> Details about 'object', use 'object??'for extra details.
In : import net<tab>rc
In : import netrc
This appears to be related to the following issues:
Using
IPython.terminal.embed.InteractiveShellEmbed
as an embedded, interactive shell, I cannot get regularimport
ing to tab-complete. Once a package (saynetrc
) is imported, I can still tab-complete the package, though.To wit, create a test file
sheller.py
:Then, from Bash, run it:
This appears to be related to the following issues:
The text was updated successfully, but these errors were encountered: