[Python] Spyder IDE shows all plots in separate window/application. How to show plots in the...

Discussão em 'Python' iniciado por Stack, Maio 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to run a simple python script in the Spyder IDE, v5.5.1 as included with Anaconda.

    import pandas as pd
    import seaborn as sns
    import matplotlib.pyplot as plt

    dataset = pd.read_csv("C:/FileName")

    plt.figure(figsize=(10,5))
    sns.countplot(data=dataset, x='Departments',hue='salary')


    When I run the code, I get separate windows that open with the plots:

    enter image description here

    The Windows are associated with an R logo in the taskbar.

    I have updated the preferences as notated in other posts, restarted the kernal, restarted the application, restarted the machine, yet I am unable to show plots within Spyder. Are there other items I can attempt to remedy?

    Continue reading...

Compartilhe esta Página