# Config = dict({'scrollZoom': True}) not working

**URL:** <https://community.plotly.com/t/config-dict-scrollzoom-true-not-working/52483>\
**Category:** 📊 Plotly Python\
**Created:** [April 29, 2021, 11:50am UTC](https://community.plotly.com/t/config-dict-scrollzoom-true-not-working/52483 "2021-04-29T11:50:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saksham7778](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@saksham7778](https://community.plotly.com/u/saksham7778)\
**Post date:** [April 29, 2021, 11:50am UTC](https://community.plotly.com/t/config-dict-scrollzoom-true-not-working/52483/1 "2021-04-29T11:50:53Z")

</div>

When I am using this config parameter inside show function , I am getting mouse scroll zoom

import plotly.graph\_objects as go  
import [plotly.io](http://plotly.io/) as pio  
pio.renderers.default = “browser”

fig = go.Figure()

config = dict({‘scrollZoom’: True})

fig.add\_trace(  
go.Scatter(  
x=[1, 2, 3],  
y=[1, 3, 1]))

fig.show(config=config)

* * *

But if I want to preview and store this fig as a html file this scroll zoom feature is not available

import plotly  
import plotly.graph\_objects as go  
import [plotly.io](http://plotly.io/) as pio  
pio.renderers.default = “browser”

fig = go.Figure()

config = dict({‘scrollZoom’: True})

fig.add\_trace(  
go.Scatter(  
x=[1, 2, 3],  
y=[1, 3, 1]))

plotly.offline.plot(fig, filename=‘try\_plot.html’, auto\_open=True)

Am I doing something wrong here , can anyone please help me?

Thanks in advance
