call load_default_config when starting ipython shell. this time off next branch like readme informs
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -10,3 +10,4 @@ Jeremy Jones
|
|||||||
Benjamin W. Smith
|
Benjamin W. Smith
|
||||||
Pete Chudykowski
|
Pete Chudykowski
|
||||||
Mike Perez
|
Mike Perez
|
||||||
|
Justin Barber
|
||||||
|
|||||||
@@ -51,7 +51,12 @@ class IPythonShell(object):
|
|||||||
from IPython.frontend.terminal.embed import (
|
from IPython.frontend.terminal.embed import (
|
||||||
InteractiveShellEmbed
|
InteractiveShellEmbed
|
||||||
)
|
)
|
||||||
shell = InteractiveShellEmbed(banner2=banner)
|
# try and load their default profile
|
||||||
|
from IPython.frontend.terminal.ipapp import (
|
||||||
|
load_default_config
|
||||||
|
)
|
||||||
|
config = load_default_config()
|
||||||
|
shell = InteractiveShellEmbed(config=config, banner2=banner)
|
||||||
shell(local_ns=ns)
|
shell(local_ns=ns)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Support for the IPython <= 0.10 shell API
|
# Support for the IPython <= 0.10 shell API
|
||||||
|
|||||||
Reference in New Issue
Block a user