import chart_studio.plotly as py code example Example: upgrade plotly version pip install plotly --upgrade