kaggle_dagger
You can chain python code and GPTScript prompts in any combination you want.```bash
dagger call import-data --working-dir ./working_dir --api-keys ~/kaggle.json --competition Titanic preprocess-data --task-dir ./preprocess1 --name preprocess1 preprocess-data --task-dir ./preprocess2 --name preprocess2 preprocess-data --task-dir ./preprocess3 --name preprocess3 jupyterlab --jupyter-secret env:TOKEN as-service up
```
Installation
dagger install github.com/dciangot/kaggle-dagger@0fda20a3a4caa38c983ad5467f2ae8b155aeed96Entrypoint
Return Type
KaggleDagger !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| labcontainer | Container | - | An OCI-compatible container, also known as a Docker container. |
| workingDir | Directory ! | - | A directory. |
Example
Function KaggleDagger.Constructor is not accessible from the kaggle_dagger moduleFunction KaggleDagger.Constructor is not accessible from the kaggle_dagger moduleFunction KaggleDagger.Constructor is not accessible from the kaggle_dagger moduleFunction KaggleDagger.Constructor is not accessible from the kaggle_dagger moduleTypes
KaggleDagger 🔗
debug() 🔗
Return the container for debug
Return Type
Container ! Example
Function KaggleDagger.debug is not accessible from the kaggle_dagger moduleFunction KaggleDagger.debug is not accessible from the kaggle_dagger moduleFunction KaggleDagger.debug is not accessible from the kaggle_dagger moduleFunction KaggleDagger.debug is not accessible from the kaggle_dagger modulejupyterlab() 🔗
Returns a service running a JupyterLab instance on working dir
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| jupyterSecret | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
Function KaggleDagger.jupyterlab is not accessible from the kaggle_dagger moduleFunction KaggleDagger.jupyterlab is not accessible from the kaggle_dagger moduleFunction KaggleDagger.jupyterlab is not accessible from the kaggle_dagger moduleFunction KaggleDagger.jupyterlab is not accessible from the kaggle_dagger moduleimportData() 🔗
Create a container with my data
Return Type
KaggleDagger !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| apiKeys | File ! | - | A file. |
| competition | String ! | - | No description provided |
Example
Function KaggleDagger.importData is not accessible from the kaggle_dagger moduleFunction KaggleDagger.importData is not accessible from the kaggle_dagger moduleFunction KaggleDagger.importData is not accessible from the kaggle_dagger moduleFunction KaggleDagger.importData is not accessible from the kaggle_dagger modulepreprocessData() 🔗
Execute a python script passed from task dir with deps into requirements.txt
Return Type
KaggleDagger !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| taskDir | Directory ! | - | A directory. |
Example
Function KaggleDagger.preprocessData is not accessible from the kaggle_dagger moduleFunction KaggleDagger.preprocessData is not accessible from the kaggle_dagger moduleFunction KaggleDagger.preprocessData is not accessible from the kaggle_dagger moduleFunction KaggleDagger.preprocessData is not accessible from the kaggle_dagger modulepreprocessGpt() 🔗
Execute a gptScript file with the given openai token and duckDB available for data analysis operation
Return Type
KaggleDagger !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| gptFile | File ! | - | A file. |
| openaiToken | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
Function KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger moduleFunction KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger moduleFunction KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger moduleFunction KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger module