Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. """
  2. Launch ipython with a custom namespace and configuration
  3. """
  4. from IPython import start_ipython
  5. from IPython.terminal.ipapp import load_default_config
  6.  
  7. c = load_default_config()
  8.  
  9. c.TerminalIPythonApp.display_banner = False
  10. c.TerminalInteractiveShell.confirm_exit = False
  11. ns = dict(
  12. foo='bar',
  13. other='whatever'
  14. )
  15. start_ipython(user_ns=ns, config=c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement