# Loading local dataset to colab

**URL:** <https://discuss.huggingface.co/t/loading-local-dataset-to-colab/19059>\
**Category:** Beginners\
**Created:** [June 12, 2022, 8:32pm UTC](https://discuss.huggingface.co/t/loading-local-dataset-to-colab/19059 "2022-06-12T20:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasticrunch](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@kasticrunch](https://discuss.huggingface.co/u/kasticrunch)\
**Post date:** [June 12, 2022, 8:32pm UTC](https://discuss.huggingface.co/t/loading-local-dataset-to-colab/19059/1 "2022-06-12T20:32:46Z")

</div>

Hello!

I have created a `DatasectDict` object contain nested `Dataset` objects for ‘train’ and test’ inputs. I have saved it locally using `DatasectDict.save_to_disk`, but I am not quite sure how to load this into google colab? Is there a simple way to accomplish this?

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Petar](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@Petar](https://discuss.huggingface.co/u/Petar)\
**Post date:** [June 12, 2022, 11:20pm UTC](https://discuss.huggingface.co/t/loading-local-dataset-to-colab/19059/2 "2022-06-12T23:20:41Z")

</div>

I upload my datasets into google drive and then connect my colab with google drive like this.  
 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/2/2303a4b2bc791447088e208c361b37554d60a5ad.png)  
Then you load your dataset

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/a/aa12fd2a0318601f79eee755d2ec373d532caa7e.png)

---

<div class="post-metadata">

**Author:** ![kasticrunch](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@kasticrunch](https://discuss.huggingface.co/u/kasticrunch)\
**Post date:** [June 19, 2022, 8:38pm UTC](https://discuss.huggingface.co/t/loading-local-dataset-to-colab/19059/3 "2022-06-19T20:38:36Z")

</div>

You the best @Petar.

I am thankful for your help and hope you have a great weekend.

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](https://discuss.huggingface.co/u/mariosasko)\
**Post date:** [June 20, 2022, 5:14pm UTC](https://discuss.huggingface.co/t/loading-local-dataset-to-colab/19059/4 "2022-06-20T17:14:40Z")

</div>

Hi! It’s even easier to use `push_to_hub` on a local dataset (set `private=True` to make it private) and then load it from the Hub using `load_dataset("<username>/<dataset>", use_auth_token=True)` after authenticating with:

```python
from huggingface_hub import notebook_login
notebook_login()

```
