You can configure the configuration file for ipython as described here . For example run:
ipython profile create
ipython (, ${HOME}/.ipython/profile_default/ipython_config.py) ( ). , , :
c = get_config()
c.InteractiveShellApp.exec_lines = [
'%load_ext autoreload',
'%autoreloud 2',
'%matplotlib inline',
'import numpy as np',
'import matplotlib as mpl',
'from matplotlib import pyplot as plt',
'from matplotlib.collections import PatchCollection',
'from netCDF4 import Dataset',
'from tabulate import tabulate'
]
ipython .