Set up local dev environment for the notebooks#2
Draft
abhishekp106 wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Abhishek Pandya <abhishekp106@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This repo is a collection of standalone data-science / ML Jupyter notebooks (authored for Google Colab). It had no dependency manifest, build, or services. This PR adds the minimal scaffolding needed to set up and run the notebooks locally in JupyterLab.
requirements.txt— the scientific/ML stack the notebooks import (JupyterLab, numpy, pandas, matplotlib, seaborn, scikit-learn, geopandas, shapely, pydotplus, plotly, einops, fancy_einsum, torch (CPU), transformers, datasets). Colab-only ingestion pieces (google.colab, PyDrive,easy_transformer/pysvelte) are intentionally omitted since they only work inside Colab.AGENTS.md—## Cursor Cloud specific instructionsdocumenting how to install deps, the~/.local/binPATH caveat, how to launch JupyterLab / run notebooks headlessly, and which cells are expected to fail locally..gitignore— ignore.ipynb_checkpoints/and Python caches.How the environment runs
pip install --user -r requirements.txt(the configured startup update script).jupyter lab --no-browser --ip=0.0.0.0 --port=8888 --ServerApp.token=devtoken→http://localhost:8888/lab?token=devtoken.Verification
Created a throwaway hello-world notebook (not committed) exercising the core techniques from each repo notebook and ran it in JupyterLab end-to-end: TF-IDF + KMeans clustering (
WAFChallenge), a sklearn decision tree at 0.978 accuracy (CIS545FinalProject), a matplotlib figure, and a torch forward pass (Transformer_Exercise). All cells executed with no errors.jupyterlab_hello_world_demo.mp4
JupyterLab executed outputs (top)
JupyterLab executed outputs (bottom)
To show artifacts inline, enable in settings.