!pip install --user --upgrade kaggle

import IPython

IPython.Application.instance().kernel.do_shutdown(True) #automatically restarts kernel

"""
Explanation: Download RetinaNet code to notebook instance
End of explanation
"""


!ls ./kaggle.json

import os
current_dir=!pwd
current_dir=current_dir[0]
os.environ['KAGGLE_CONFIG_DIR']=current_dir

!${HOME}/.local/bin/kaggle datasets download mistag/arthropod-taxonomy-orders-object-detection-dataset

!unzip -q *dataset.zip

"""
Explanation: Create API Key on Kaggle

Please go https://www.kaggle.com/ and go to your Account profile page
Click on "Create New API Token"
Upload the kaggle.json to this directory.
End of explanation
"""


