##// END OF EJS Templates
Bump codecov/codecov-action from 4 to 5 in the actions group (#14593)...
Bump codecov/codecov-action from 4 to 5 in the actions group (#14593) Bumps the actions group with 1 update: https://github.com/codecov/codecov-action

File last commit:

r23829:51ae2f68
r28979:86a74d8e merge
Show More
start_ipython_config.py
22 lines | 739 B | text/x-python | PythonLexer
"""Quick snippet explaining how to set config options when using start_ipython."""
# First create a config object from the traitlets library
from traitlets.config import Config
c = Config()
# Now we can set options as we would in a config file:
# c.Class.config_value = value
# For example, we can set the exec_lines option of the InteractiveShellApp
# class to run some code when the IPython REPL starts
c.InteractiveShellApp.exec_lines = [
'print("\\nimporting some things\\n")',
'import math',
"math"
]
c.InteractiveShell.colors = 'LightBG'
c.InteractiveShell.confirm_exit = False
c.TerminalIPythonApp.display_banner = False
# Now we start ipython with our configuration
import IPython
IPython.start_ipython(config=c)