Skip to content

Sync with upstream - #678

Closed
atrakic wants to merge 16 commits into
github:mainfrom
atrakic:feature/sync-upstream
Closed

atrakic wants to merge 16 commits into
github:mainfrom
atrakic:feature/sync-upstream

Conversation

@atrakic

@atrakic atrakic commented Nov 26, 2026

Copy link
Copy Markdown

No description provided.

Copilot AI adaptive review requested due to automatic review settings November 26, 2026 15:49
@atrakic atrakic closed this Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Jupyter is exposed on all host interfaces with the publicly known token foo, allowing anyone who can reach it to execute code and modify the read-write mounted checkout.

6 open issues
What changed in this PR

This upstream sync expands the notebook collection with SQLite examples and adds tooling for local execution, automated checks, and browser-based publishing.

Changes:

  • Add SQL lessons, sample student data, and a notebook execution helper.
  • Introduce Docker and JupyterLite environments with updated dependencies.
  • Add notebook CI, pre-commit checks, and GitHub Pages deployment.
File Description
run-notebook.sh Executes notebooks and prints stream output.
requirements.txt Updates notebook dependencies.
notebooks/​students.ipynb Adds SQL querying, joins, and aggregation lessons.
notebooks/​sqlite-data-analasis.ipynb Demonstrates SQLite queries with pandas.
notebooks/​matplotlib.ipynb Updates kernel and notebook-format metadata.
environment.yml Defines the browser-based xeus-python environment.
Dockerfile Adds a Jupyter image with SQLite and Python dependencies.
data/​sample.sql Provides student and grade sample data.
compose.yml Configures the local Jupyter service and repository mount.
ci-requirements.txt Adds notebook execution dependencies for CI.
.python-version Selects Python 3.12.
.pre-commit-config.yaml Configures whitespace and merge-conflict checks.
.nojekyll Adds a marker to bypass Jekyll processing.
.gitignore Expands Python artifact and environment exclusions.
.github/​workflows/​static-site.yml Builds JupyterLite and deploys to GitHub Pages.
.github/​workflows/​pre-commit.yml Runs repository hygiene checks.
.github/​workflows/​ci.yml Executes the SQLite/pandas notebook in CI.
.github/​build-environment.yml Defines JupyterLite build dependencies.
.dockerignore Excludes selected files from Docker build context.

Review effort: Balanced (adaptive)

Comment thread compose.yml
- $PWD:/home/jovyan/work:rw
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=foo
- name: Build the JupyterLite site
shell: bash -l {0}
run: |
jupyter lite build --contents notebooks --output-dir dist
Comment thread notebooks/students.ipynb
},
"outputs": [],
"source": [
"%%sh\n",
Comment thread notebooks/students.ipynb
"%%sh\n",
"# Open the sqlite3 CLI and create the database from the SQL file\n",
"rm -rf sample.db\n",
"sqlite3 sample.db < ./data/sample.sql"
Comment thread notebooks/students.ipynb
Comment on lines +349 to +356
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [],
Comment thread notebooks/students.ipynb
Comment on lines +518 to +520
" SELECT student_id, class_id, AVG(final_grade ) AS avg_final_grade\n",
" FROM student_grades\n",
" GROUP BY class_id\n",
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.

2 participants