I want to have numpy loaded as np and matplotlib.pyplot loaded as plt when I start Jupyter QtConsole session.
Earlier I could do this by adding
c.InteractiveShellApp.exec_lines = [
'import numpy as np',
'import matplotlib.pyplot',
]
to .ipython/ipython_config.py, but newer version of Jupyter has moved away from using that config file.
I've tried adding it to jupyter_qtconsole_config.py, but that doesn't work.
What is the best way of doing this today?