Skip to content

Make example notebook runnable outside Kaggle#116

Open
muskan-110 wants to merge 1 commit intoML4SCI:mainfrom
muskan-110:fix-example-notebook-portability
Open

Make example notebook runnable outside Kaggle#116
muskan-110 wants to merge 1 commit intoML4SCI:mainfrom
muskan-110:fix-example-notebook-portability

Conversation

@muskan-110
Copy link

Summary
This PR improves the portability of the example notebook so it can be run outside Kaggle without errors, interactive prompts, or environment-specific assumptions.

Changes

  • Removed Kaggle-specific assumptions for local execution (dataset paths and secrets)
  • Made dataset paths environment-aware and added a clear error when the dataset is not available locally
  • Disabled Weights & Biases by default for local runs to avoid interactive login issues
  • Switched to tqdm.auto to ensure progress bars work reliably across Jupyter, VS Code, and terminal environments
  • Relied on dependencies declared in requirements.txt instead of hardcoded import paths

Notes

  • Kaggle behavior remains unchanged
  • When running locally without the dataset, the notebook now fails early with a clear and actionable error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant