ipython and jupyter-console have different matplotlib backends. Due to this I can't show my plots when using jupyter-console.
Both run in virtual environment on Xubuntu 16.04.
[edit]
Where is ipython/jupyter config file located inside virtual environment created using
python -m venv myvenv
?
I know that system-wide configuration file is something like
/.ipython/profile_default/ipython_kernel_config.py
, and I can create it running
ipython profile create
. But the ipython virtual enviroment-wide configuration file? Do I even need it, isn't changing system-wide config enough?
$ ipython
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import matplotlib
In [2]: matplotlib.get_backend()
Out[2]: 'TkAgg'
$ jupyter-console
Jupyter console 5.2.0
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import matplotlib
In [2]: matplotlib.get_backend()
Out[2]: 'module://ipykernel.pylab.backend_inline'