13

I've set my default backend to Qt5Agg in .config/matplotlib/matplotlibrc. This works if I use a regular ssh prompt and open ipython and run import matplotlib as mpl

I correctly get: mpl.get_backend() => "Qt5Agg"

When I connect through pyCharm remote console, the default backend is set to 'module://backend_interagg' which seems to be a purpose built helper extension by pycharm.

Using mpl.use("Qt5Agg") works as expected (i.e. correctly sets the backend and allows me to use it).

I'm just trying to get the default working and the pycharm remote console to properly use my rc file parameters.

Fwiw, I've tried actually setting my master rc file (in the site-packages directory) to have Qt5Agg and I still get this problem.

Also, mpl.get_configdir() correctly returns ~/.config/matplotlib

Any ideas?

1 Answer 1

19

I had the same problem in PyCharm 2017.3.3 and what helped was to disable the checkbox Show plots in toolwindow in File -> Settings -> Tools -> Python Scientific.

2
  • 1
    Amazing. I've looked everywhere and that was one rock I wouldn't have turned over in a million years. Thank you!
    – MB.
    Mar 2, 2018 at 15:18
  • 1
    Brilliant. Thanks! Never forget the old adage - if you change something, you break something.
    – Yishai E
    Oct 15, 2020 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.