I was using this latest function, sklearn.metrics.plot_confusion_matrix to plot my confusion matrix.
cm = plot_confusion_matrix(classifier,X , y_true,cmap=plt.cm.Greens)
And when I execute that cell, the confusion matrix plot showed up as expected. My problem is I want to use the plot for another cell later. When I called cm in another cell, it only shows the location of that object.
>>> cm
>>> <sklearn.metrics._plot.confusion_matrix.ConfusionMatrixDisplay at 0x1af790ac6a0>
Calling plt.show() doesn't work either

