diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-05-26 23:59:17 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-05-26 23:59:17 +0530 |
commit | dfc509b95ff03d0c9027ee74d31d7b171f867bf1 (patch) | |
tree | 4a7bfc10cc0e8c1cf41a0d50d9ec30d5f97d95e5 /docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html | |
parent | d8b9e9c58b1ee676b4eaf605d94b38325775d12c (diff) |
generated website
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 | 72 |
1 files changed, 72 insertions, 0 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 new file mode 100644 index 0000000..26753e8 --- /dev/null +++ b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + + <link rel="stylesheet" href="/assets/main.css" /> + <link rel="stylesheet" href="/assets/sakura.css" /> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Hey - Post</title> + +</head> +<body> + <nav style="display: block;"> +| +<a href="/">home</a> | +<a href="/about/">about/links</a> | +<a href="/posts/">posts</a> | +<a href="/publications/">publications</a> | +<a href="/repo/">iOS repo</a> | +<a href="/feed.rss">RSS Feed</a> | +</nav> + +<main> + <h1>Setting up Kaggle to use with Google Colab</h1> + +<p><em>In order to be able to access Kaggle Datasets, you will need to have an account on Kaggle (which is Free)</em></p> + +<h2>Grabbing Our Tokens</h2> + +<h3>Go to Kaggle</h3> + +<p><img src="/assets/posts/kaggle-colab/ss1.png" alt=""Homepage"" /></p> + +<h3>Click on your User Profile and Click on My Account</h3> + +<p><img src="/assets/posts/kaggle-colab/ss2.png" alt=""Account"" /></p> + +<h3>Scroll Down until you see Create New API Token</h3> + +<p><img src="/assets/posts/kaggle-colab/ss3.png" alt="" /></p> + +<h3>This will download your token as a JSON file</h3> + +<p><img src="/assets/posts/kaggle-colab/ss4.png" alt="" /></p> + +<p>Copy the File to the root folder of your Google Drive</p> + +<h2>Setting up Colab</h2> + +<h3>Mounting Google Drive</h3> + +<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> + +<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> + +<p>Voila! You can now download Kaggle datasets</p> + +</main> + + +<script src="assets/manup.min.js"></script> +<script src="/pwabuilder-sw-register.js"></script> +</body> +</html>
\ No newline at end of file |