What you can do is run the visualization in the notebook, save it as image and display it in the dashboard, for example:
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
# Sample data
data = np.random.rand(10, 12)
heatmap = sns.heatmap(data, cmap='viridis')
plt.show()
heatmap.figure.savefig('/dbfs/tmp/heatmap.png')
displayHTML('<img src="/files/tmp/heatmap.png" alt="heatmap">')