mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Suppress ipython banner
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
try:
|
||||
import os, IPython
|
||||
from traitlets import config
|
||||
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
|
||||
IPython.start_ipython()
|
||||
cfg = config.Config()
|
||||
cfg.TerminalIPythonApp.display_banner = False
|
||||
IPython.start_ipython(config=cfg)
|
||||
raise SystemExit
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user