Skip to content

Conversation

MickLesk
Copy link
Member

✍️ Description

This PR refactors the installation and update logic for Jupyter Notebook to use the modern uv-based Python virtual environment under /opt/jupyter.
It ensures consistent, isolated package management and replaces legacy pip3 install jupyter usage.

Additionally, the update_script():

  • Migrates legacy containers using system-wide Python to uv venv
  • Updates existing .venv installations
  • Rewrites the systemd service if it still references the legacy jupyter binary

🔗 Related PR / Issue

Link: #

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

@MickLesk MickLesk requested a review from a team as a code owner June 20, 2025 08:38
@github-actions github-actions bot added refactor update script A change that updates a script labels Jun 20, 2025
@tremor021 tremor021 merged commit 92f631b into main Jun 20, 2025
2 checks passed
@MickLesk MickLesk deleted the uv_jupyternotebook branch June 24, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor update script A change that updates a script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants