Notebook autosave option

How do we set notebook autosave to “none” in Jupyter Notebook 7, using code?
We have tried we have tried the magic command %autosave but it does not work. Any hint?