Skip to content

Instantly share code, notes, and snippets.

@buhanec
Created December 15, 2015 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buhanec/99b6f96a3f36a305db14 to your computer and use it in GitHub Desktop.
Save buhanec/99b6f96a3f36a305db14 to your computer and use it in GitHub Desktop.
import sys
import logging
import IPython
c = get_config()
c.TerminalIPythonApp.display_banner = False
c.IPythonQtConsoleApp.display_banner = False
c.IPythonQtConsoleApp.confirm_exit = False
c.IPKernelApp.matplotlib = 'inline'
c.InteractiveShellApp.log_level = logging.DEBUG
c.InteractiveShellApp.extensions = [
'autoreload'
]
c.InteractiveShellApp.exec_lines = [
'%autoreload 2',
'from pprint import pprint as pp',
'import scipy',
'import numpy as np',
'import pandas as pd',
'import matplotlib.pyplot as plt'
]
c.InteractiveShellApp.exec_files = [
'isetup.py'
]
c.InteractiveShell.autoindent = True
c.InteractiveShell.colors = 'Linux'
c.InteractiveShell.confirm_exit = False
c.InteractiveShell.editor = 'nano'
c.InteractiveShell.xmode = 'Context'
c.PromptManager.in_template = '\#> '
c.PromptManager.in2_template = ' > '
c.PromptManager.out_template = '\#< '
c.PromptManager.justify = True
c.PrefilterManager.multi_line_specials = True
c.AliasManager.user_aliases = [
('l', 'ls -Al'),
('ll', 'ls -al'),
('cat', 'cat'),
('git', 'git')
]
c.InlineBackend.figure_format = 'retina'
c.InlineBackend.rc = {'figure.figsize': (8.0, 4.0)}
python_version = '.'.join(map(str, sys.version_info[0:3]))
ipython_version = '.'.join(map(str, IPython.version_info[0:3]))
print('IPython {} / Python {}'.format(ipython_version, python_version))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment