title: How does one overcome an error loading a sqlite file into colab?
body: <p>When I try to load <code>my_data.sqlite</code> I get an error that the sqlite is not defined.</p>
  
  <pre><code>import os, os.chdir('/content/'), !ls: 
  drive, sample_data, my_data.sqlite
  
  con = sqlite3.connect('content/my_data.sqlite')
  </code></pre>
  
  <p>The traceback is</p>
  
  <pre><code>NameError                                 Traceback (most recent call last)
  &lt;ipython-input-81-565fe12c437c&gt; in &lt;module&gt;()
  ----&gt; 1 con = sqlite.connect('/content/my_data.sqlite')
  NameError: name 'sqlite' is not defined
  </code></pre>
  
  <p>I have tried <code>con = sqlite3.connect('content/my_data.sqlite')</code> and <code>%sql con = sqlite3.connect('content/my_data.sqlite')</code> plus many other combinations.</p>
  
  <pre><code>con = sqlite3.connect('content/my_data.sqlite')
  %sql con = sqlite3.connect('content/my_data.sqlite')
  </code></pre>