Skip to content
Advertisement

Is there a way to display a seaborn plot without using the python console? [closed]

I am quite new to Seaborn, and I am in the process of learning it. However, when I try to run my code, the plot never shows up and instead, the program ends.

This is my code:

JavaScript

The 4th line of code is importing the data. This is what I get when running the code normally. The error appears in the Python console, but I do not think this is causing the plot not to be shown.

JavaScript

If I try and run this on the python console, the code works as expected.

This is the result.

enter image description here

The matplotlib plots do show up but the seaborn ones don’t. If anyone’s got any solutions, please post on here.

Advertisement

Answer

Please read the document of matplotlib.pyplot.show. The only argument that can be passed as an argument is a bool value which indicates whether you need interactive or non interactive mode (default value is None), which is basically what your error says as well.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement