Problem with the display of the heatmap on jupyter: it crushes the old graphs of other measures

Viewed 30

when I display the distributtion plot it works just fine and I get my graph displayed.

sns.distplot(df['Price'])

when I add a new code line to display the heatmap of the corr:

sns.heatmap(df.corr())

it Crushes my old graph and get displayed at its place. can't get both graphs displayed at the same time.

1 Answers

You can try displaying multiple images in Jupyter notebooks with the IPython.display.display() method. IPython is the python shell used by Jupyter notebooks, so you can import it without installing any external libraries. Just wrap your plots inside the function like you would with a print method:

from IPython.display import display

display(sns.distplot(df['Price']))
display(sns.heatmap(df.corr()))
Related