Why my scientific edition doesn't show image in sciview instead opens a new window?

My matplotlib imshow function shows the image not in sciview, instead it opens in new a window. I am running on Jupyter mode

8 comments
Comment actions Permalink

Hello, 

 

Do you have "View | Scientific mode" enabled?  

0
Comment actions Permalink

I did not and I enabled it now. But that did not change the behavior

0
Comment actions Permalink

Hi, 

 

I should have mentioned this as well. Please go to  Settings/Preferences | Tools | Python Scientific and check  "Show plots in tool window"

0
Comment actions Permalink

It's checked already

0
Comment actions Permalink

Please upload your logs folder zipped from ***Help | Compress Logs and Show in…***  to the FTP

https://uploads.services.jetbrains.com/   and please let me know the filename. 

 

Also, please try using different matplotlib backend, by adding in the code: 

matplotlib.use('name of backend')

https://matplotlib.org/faq/usage_faq.html

 

What if you paste the code to a python file and run it? Do you get the same result? 

 

0
Comment actions Permalink

Hi Antonina,

I have the same problem. I went over all recommendations in this thread (including trying different backends) to no avail.

I've uploaded the file you requested, its name is

pycharm-logs-20200412-190110.zip
0
Comment actions Permalink

Hello, 

Thank you for the logs, regrettably there no related events in it. 

Is it reproducible with any code or a specific one? Could you please provide me with a code example, python version so I will try to reproduce it on my site. 

You can upload files to the same FTP or post code here. 

 

0
Comment actions Permalink

Hello,

I was too lazy to construct a minimal code example, but after the problem miraculuosly disappeared today I went ahead and tracked down what helped: the culprit was the line

matplotlib.use('TkAgg')

Commenting this line leads to plots being shown in SciView, uncommenting it - to them being shown in separate windows

0

Please sign in to leave a comment.