Dagger
Search

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@0fda20a3a4caa38c983ad5467f2ae8b155aeed96

Entrypoint

Return Type
KaggleDagger !
Arguments
NameTypeDescription
labcontainerContainer An OCI-compatible container, also known as a Docker container.
workingDirDirectory !A directory.
Example
Function KaggleDagger.Constructor is not accessible from the kaggle_dagger module
Function KaggleDagger.Constructor is not accessible from the kaggle_dagger module
Function KaggleDagger.Constructor is not accessible from the kaggle_dagger module

Types

KaggleDagger 🔗

debug() 🔗

Return the container for debug

Return Type
Container !
Example
Function KaggleDagger.debug is not accessible from the kaggle_dagger module
Function KaggleDagger.debug is not accessible from the kaggle_dagger module
Function KaggleDagger.debug is not accessible from the kaggle_dagger module
Function KaggleDagger.debug is not accessible from the kaggle_dagger module

jupyterlab() 🔗

Returns a service running a JupyterLab instance on working dir

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
jupyterSecretSecret !-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 module
Function KaggleDagger.jupyterlab is not accessible from the kaggle_dagger module
Function KaggleDagger.jupyterlab is not accessible from the kaggle_dagger module
Function KaggleDagger.jupyterlab is not accessible from the kaggle_dagger module

importData() 🔗

Create a container with my data

Return Type
KaggleDagger !
Arguments
NameTypeDefault ValueDescription
apiKeysFile !-A file.
competitionString !-No description provided
Example
Function KaggleDagger.importData is not accessible from the kaggle_dagger module
Function KaggleDagger.importData is not accessible from the kaggle_dagger module
Function KaggleDagger.importData is not accessible from the kaggle_dagger module
Function KaggleDagger.importData is not accessible from the kaggle_dagger module

preprocessData() 🔗

Execute a python script passed from task dir with deps into requirements.txt

Return Type
KaggleDagger !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
taskDirDirectory !-A directory.
Example
Function KaggleDagger.preprocessData is not accessible from the kaggle_dagger module
Function KaggleDagger.preprocessData is not accessible from the kaggle_dagger module
Function KaggleDagger.preprocessData is not accessible from the kaggle_dagger module
Function KaggleDagger.preprocessData is not accessible from the kaggle_dagger module

preprocessGpt() 🔗

Execute a gptScript file with the given openai token and duckDB available for data analysis operation

Return Type
KaggleDagger !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
gptFileFile !-A file.
openaiTokenSecret !-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 module
Function KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger module
Function KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger module
Function KaggleDagger.preprocessGpt is not accessible from the kaggle_dagger module