lrnzcig
New Contributor II

As @Vinh dqvinh87​  noted, the accepted solution only works for

force_plot

. For other plots, the following trick works for me:

import matplotlib.pyplot as plt
p = shap.summary_plot(shap_values, test_df, show=False) 
display(p)