title: Saving or downloading plotly iplot images on Google Colaboratory
body: <p>I have been attempting to download a plot created using plotly on google colaboratory. So far this is what I have attempted:</p>
  
  <p>I have tried changing </p>
  
  <pre class="lang-py prettyprint-override"><code>files.download('foo.svg')
  </code></pre>
  
  <p>to </p>
  
  <pre class="lang-py prettyprint-override"><code>files.download('foo')
  </code></pre>
  
  <p>and I still get no results. I navigated to the files on Google colab and nothing shows there</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np 
  import pandas as pd
  from plotly.offline import iplot
  import plotly.graph_objs as go
  from google.colab import files
  
  def enable_plotly_in_cell():
    import IPython
    from plotly.offline import init_notebook_mode
    display(IPython.core.display.HTML('''&lt;script src="/static/components/requirejs/require.js"&gt;&lt;/script&gt;'''))
    init_notebook_mode(connected=False)
  
  #this actually shows the plot 
  enable_plotly_in_cell()
  
  N = 500
  x = np.linspace(0, 1, N)
  y = np.random.randn(N)
  df = pd.DataFrame({'x': x, 'y': y})
  df.head()
  
  data = [
      go.Scatter(
          x=df['x'], # assign x as the dataframe column 'x'
          y=df['y']
      )
  ]
  
  iplot(data,image = 'svg', filename = 'foo')
  
  files.download('foo.svg')
  </code></pre>
  
  <p>This is the error I am getting:</p>
  
  <pre class="lang-py prettyprint-override"><code>OSErrorTraceback (most recent call last)
  &lt;ipython-input-18-31523eb02a59&gt; in &lt;module&gt;()
       29 iplot(data,image = 'svg', filename = 'foo')
       30 
  ---&gt; 31 files.download('foo.svg')
       32 
  
  /usr/local/lib/python2.7/dist-packages/google/colab/files.pyc in download(filename)
      140     msg = 'Cannot find file: {}'.format(filename)
      141     if _six.PY2:
  --&gt; 142       raise OSError(msg)
      143     else:
      144       raise FileNotFoundError(msg)  # pylint: disable=undefined-variable
  
  OSError: Cannot find file: foo.svg
  </code></pre>