diff options
author | navanchauhan <navanchauhan@gmail.com> | 2022-11-07 23:36:11 -0700 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2022-11-07 23:36:11 -0700 |
commit | d75527f7eecc4e2fcdd18ab157412506717c8adb (patch) | |
tree | 8a96e3036d59030f5654725edb1ca5ad6db4cb4e /docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html | |
parent | 8ca94ab784138ef673bc7c1691b99e2d4d69e015 (diff) |
add blog post
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.html | 12 |
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">'/content/drive'</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">'KAGGLE_CONFIG_DIR'</span><span class="p">]</span> <span class="o">=</span> <span class="s2">"/content/drive/My Drive/"</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">'KAGGLE_CONFIG_DIR'</span><span class="p">]</span> <span class="o">=</span> <span class="s2">"/content/drive/My Drive/"</span> +</code></pre> +</div> <p>Voila! You can now download Kaggle datasets</p> |