Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Launch ipython with a custom namespace and configuration
- """
- from IPython import start_ipython
- from IPython.terminal.ipapp import load_default_config
- c = load_default_config()
- c.TerminalIPythonApp.display_banner = False
- c.TerminalInteractiveShell.confirm_exit = False
- ns = dict(
- foo='bar',
- other='whatever'
- )
- start_ipython(user_ns=ns, config=c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement