# Step 1: Setting up Kaggle API

**Install the Kaggle API**:
   First, install the Kaggle API by running the following command:
   ```bash
   pip install kaggle
   ```
**Get Your Kaggle API Key:**
- Log in to your Kaggle account.
- Go to Account settings and scroll down to the API section.
- Click on Create New API Token. This will download a file named `kaggle.json`.

**Configure Kaggle API:**
- Create a directory in your home folder to store your Kaggle API credentials. In linux, use the following command:
```bash
mkdir ~/.kaggle
```
- Move the `kaggle.json` file to the `~/.kaggle/` directory:
```bash
mv kaggle.json ~/.kaggle/
```
- Set the correct permissions on the kaggle.json file to keep it secure. On linux, use the following command:
```bash
chmod 600 ~/.kaggle/kaggle.json
```
**Test Kaggle API:** You can verify that the Kaggle API is correctly set up by listing the available competitions:
```bash
kaggle competitions list
```
This should display a list of active competitions you are a part of.

# Step 2: Making submission
Use the following command on terminal to make submission on Kaggle.
```bash
kaggle competitions submit -c casml-2024-scientific-machine-learning-challenge -f submission.csv -m "Submission"
```