import plotly.plotly as py import numpy as np from plotly.offline import init_notebook_mode, iplot from plotly.graph_objs import Contours, Histogram2dContour, Marker, Scatter configure_plotly_browser_state() init_notebook_mode(connected=False) x = np.random.randn(2000) y = np.random.randn(2000) iplot([Histogram2dContour(x=x, y=y, contours=Contours(coloring='heatmap')), Scatter(x=x, y=y, mode='markers', marker=Marker(color='white', size=3, opacity=0.3))], show_link=False)