mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Suppress ipython banner
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
try:
|
try:
|
||||||
import os, IPython
|
import os, IPython
|
||||||
|
from traitlets import config
|
||||||
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
|
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
|
raise SystemExit
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user