

Running the same program with ipython3, the graphs are displayed. plt.imshow (montage (W / np.max (W)), cmap'coolwarm') I tried calling plt.interactive (False) first, but it didn't make a difference. Using ipython in the shell, there is no problem when executing the very same command. 1 When I run a program with P圜harm, it doesn't display graphs made with Matplotlib. t_inputhook(create_inputhook_gtk3(self._stdin_file))ĪttributeError: 'InputHookManager' object has no attribute '_stdin_file' Module = self._system_import(name, *args, **kwargs)įile "/home/riechers/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2362, in įile "/home/riechers/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 126, in install_repl_displayhookįile "/snap/pycharm-community/155/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 155, in enable_guiįile "/snap/pycharm-community/155/helpers/pydev/pydev_ipython/inputhook.py", line 536, in enable_guiįile "/snap/pycharm-community/155/helpers/pydev/pydev_ipython/inputhook.py", line 413, in enable_gtk3

I want to use pycharm as ide, however when i import matplotlib.pyplot as plt in the pycharms python console i get the following error message: Traceback (most recent call last):įile "/home/riechers/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_codeĮxec(code_obj, er_global_ns, er_ns)įile "/snap/pycharm-community/155/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
