summaryrefslogtreecommitdiff
path: root/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html')
-rw-r--r--docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
index 9a7faef..d1c88d4 100644
--- a/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
+++ b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
@@ -69,17 +69,21 @@
<h3>Mounting Google Drive</h3>
-<div class="codehilite"><pre><span></span><code><span class="kn">import</span> <span class="nn">os</span>
+<div class="codehilite">
+<pre><span></span><code><span class="kn">import</span> <span class="nn">os</span>
<span class="kn">from</span> <span class="nn">google.colab</span> <span class="kn">import</span> <span class="n">drive</span>
<span class="n">drive</span><span class="o">.</span><span class="n">mount</span><span class="p">(</span><span class="s1">&#39;/content/drive&#39;</span><span class="p">)</span>
-</code></pre></div>
+</code></pre>
+</div>
<p>After this click on the URL in the output section, login and then paste the Auth Code</p>
<h3>Configuring Kaggle</h3>
-<div class="codehilite"><pre><span></span><code><span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;KAGGLE_CONFIG_DIR&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;/content/drive/My Drive/&quot;</span>
-</code></pre></div>
+<div class="codehilite">
+<pre><span></span><code><span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;KAGGLE_CONFIG_DIR&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;/content/drive/My Drive/&quot;</span>
+</code></pre>
+</div>
<p>Voila! You can now download Kaggle datasets</p>