Skip to content

Comprehensive Python Workshop: Mastering Fundamentals and Advanced Techniques

License

Notifications You must be signed in to change notification settings

mr-pylin/python-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 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 ipywidgets matplotlib numpy pandas torch

📦 Install Dependencies

📦 Method 1: Poetry (Recommended ✅)

Use Poetry for dependency management. It handles dependencies, virtual environments, and locking versions more efficiently than pip.
To install exact dependency versions specified in poetry.lock for consistent environments without installing the current project as a package:

poetry install --no-root

📦 Method 2: Pip

Install all dependencies listed in requirements.txt using pip:

pip install -r requirements.txt

🛠️ 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 poetry.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

  • SVG Images:
    • The SVG images located in the ./assets/images/svgs/ folder are licensed under the CC BY-ND 4.0.
    • Note: This license restricts derivative works, meaning you may share these images but cannot modify them.

About

Comprehensive Python Workshop: Mastering Fundamentals and Advanced Techniques

Topics

Resources

License

Stars

Watchers

Forks