Skip to content

mr-pylin/python-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

90 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Python Workshop

License Python Version Codacy Badge Code Style Repo Size Last Updated PRs Welcome

Comprehensive Python Workshop: Mastering Fundamentals and Advanced Techniques.

πŸ“– Table of Contents

πŸ“– Main Notebooks

  1. Introduction to Python
  2. Data Structures
  3. Index and Slice
  4. Operators and Operands
  5. Type Conversions
  6. Conditional Statements
  7. Loops
  8. Functions
  9. Built-In Functions
  10. Namespaces and Scopes
  11. Anonymous Functions (Lambda)
  12. Pack and Unpack Data
  13. Type Hints and Docstrings
  14. Dependencies
  15. Comprehensions
  16. Introduction to Object-Oriented Programming (OOP)
  17. Closures and Decorators
  18. Object-Oriented Programming Concepts
  19. Context Managers
  20. Special Methods
  21. Errors and Exceptions
  22. Meta Classes
  23. Singleton Design

πŸ“– Built-in Methods

πŸ“‹ Prerequisites

  • πŸ’» Basic Computer Skills
    • Familiarity with using a computer, web browsers, and file management.
  • 🐍 Python Environment Setup

βš™οΈ Setup

This project requires Python v3.10 or higher. It was developed and tested using Python v3.12.8. If you encounter issues, consider using this specific Python version.

πŸ“ List of Dependencies

Installing matplotlib, numpy, pandas, and torch is OPTIONAL. They are used exclusively in the Dependencies Notebook to demonstrate how to import and manage dependencies effectively.

ipykernel matplotlib numpy pandas torch

πŸ“¦ Install Dependencies

πŸ“¦ Method 1: uv (Recommended βœ…)

  • Use uv for dependency management. It handles dependencies, virtual environments, and locking versions more efficiently than pip.

  • To install exact dependency versions specified in uv.lock for consistent environments without installing the current project as a package:

      uv sync --no-install-project                   # Install only numpy
      uv sync --no-install-project --extra complete  # Install numpy + optional dependencies

πŸ“¦ Method 2: Pip

  • Install all dependencies listed in requirements.txt using pip:

    pip install -r requirements.txt
  • Note: The requirements.txt includes complete installation of dependencies. Comment matplotlib, numpy, pandas, and torch in order to skip Dependencies section`.

πŸ› οΈ Usage Instructions

  1. Open the root folder with VS Code (Ctrl/Cmd + K followed by Ctrl/Cmd + O).
  2. Open .ipynb files using the Jupyter extension integrated with VS Code.
  3. Select the correct Python kernel and virtual environment where the dependencies were installed.
  4. Allow VS Code to install any recommended dependencies for working with Jupyter Notebooks.

✍️ Notes:

  • It is highly recommended to stick with the exact dependency versions specified in uv.lock or requirements.txt rather than using the latest package versions. The repository has been tested on these versions to ensure compatibility and stability.
  • This repository is actively maintained, and dependencies are updated regularly to the latest stable versions.
  • The table of contents embedded in the notebooks may not function correctly on GitHub.
  • For an improved experience, open the notebooks locally or view them via nbviewer.

πŸ”— Useful Links

Python

  • Official Website:
    • The main website for Python, offering downloads, news, and community resources.
    • Official site: python.org
  • Documentation
    • Comprehensive guide and reference for all functionalities and features of the Python programming language.
    • Doc: docs.python.org
  • Source Code

Looking Ahead

πŸ” Find Me

Any mistakes, suggestions, or contributions? Feel free to reach out to me at:

I look forward to connecting with you! πŸƒβ€β™‚οΈ

πŸ“„ License

This project is licensed under the Apache License 2.0.
You are free to use, modify, and distribute this code, but you must include copies of both the LICENSE and NOTICE files in any distribution of your work.

©️ Copyright Information

About

Comprehensive Python Workshop: Mastering Fundamentals and Advanced Techniques

Topics

Resources

License

Stars

Watchers

Forks