Skip to content

Instantly share code, notes, and snippets.

@elPytel
Last active February 22, 2026 13:52
Show Gist options
  • Select an option

  • Save elPytel/10f5907751935e954192196b82cf7a7a to your computer and use it in GitHub Desktop.

Select an option

Save elPytel/10f5907751935e954192196b82cf7a7a to your computer and use it in GitHub Desktop.
jupyternotebook requirements installer
# instal requirements from jupiter notebook
import os
import sys
#sys.path.append('../../')
requirements_file = 'requirements.txt'
if not os.path.exists(requirements_file):
print(f"{requirements_file} not found. Please create it with the required packages.")
sys.exit(1)
!{sys.executable} -m pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment