Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Browser keeps opening with auto_open=False in offline mode

I can plot a chart with nice lines, no issues but when I run my code I get the browser being opened even though I set auto_open=False:

layout = dict(title=‘Quantity by year’,

fig = dict(data=data, layout=layout)

offline.plot(fig, image='png', image_filename=chart_name, filename=file_name, auto_open=False)

What am I missing?