✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Plots Disappearing After File Download

I’ve been using Plotly in Jupyter Notebook, and everything shows up fine if I use

import plotly.io as pio
pio.renderers.default='notebook'

They still show up when the notebook is duplicated or pushed to a repository. However, the plots disappear (just empty white space) if I download the file. This occurs when using scp to get the file from a VM or when downloading from the repo. How can I fix this?