0%

Become proficient and efficient with Visual Studio Code and learn how to integrate all your external tools!

Visual Studio Code for Python Programmers helps Python developers become not just familiar, but productive in Visual Studio Code. To start, you’ll find the steps for installing Visual Studio Code on Windows, Mac and Linux platforms, along with an introduction to the editing features of the workspace. Coverage of more advanced functionality includes managing source code, debugging, unit testing, and Jupyter Notebook support. The book finishes with a walk-through of real-world projects which utilize Visual Studio Code features introduced in the book.

For developers, the choice of an editor is a very personal one. You have idiosyncratic needs and wants that are unique to you as a developer. This book will help you learn how to customize Visual Studio Code to meet your needs and Python development workflow.

  • Introduces you to the features of the Visual Studio Code workspace and how those features can be customized
  • Demonstrates how Visual Studio Code allows you to choose your structure according to your needs
  • Covers editing code in Python, including syntax highlighting, code completion, object definition, refactoring, and code navigation
  • Describes Git integration and how to perform common Git functions (commits, checkouts, branches, and merges) from within Visual Studio Code
  • Highlights debugging features for Python developers
 A final section on Real World Applications will step you through several examples (and features integration with Django, Flask, Jupyter Notebook, Docker, and Azure), so you can hit the ground running with Visual Studio Code.

Table of Contents

  1. Cover
  2. Title Page
  3. Introduction
    1. Who Will Benefit Most from This Book
    2. Special Features
    3. How to Contact Wiley
  4. Part I: Welcome to Visual Studio Code
    1. CHAPTER 1: Getting Started
    2. Installing Visual Studio Code
    3. The Visual Studio Code User Interface
    4. Command Palette
    5. Extensions
    6. Customizations
    7. Summary
    8. Note
    9. CHAPTER 2: Hello World for Python
    10. Installing a Python Interpreter
    11. Installing the Python Extension for Visual Studio Code
    12. Creating a Python File
    13. Selecting an Interpreter
    14. Selecting a Linter
    15. Editing a Python File
    16. Running a Python File
    17. Workflow Recap
    18. Summary
    19. CHAPTER 3: Editing Code
    20. Quick Fixes
    21. Code Completion, Definitions, and Declarations
    22. Formatting
    23. Linting
    24. Refactoring
    25. Snippets
    26. Summary
  5. Part II: Additional Visual Studio Code Features
    1. CHAPTER 4: Managing Projects and Collaboration
    2. Files and Folders
    3. Environments
    4. Source Control
    5. Live Share
    6. Summary
    7. CHAPTER 5: Debugging
    8. Starting a Debug Session
    9. Debug Commands
    10. Call Stack
    11. Triggering a Breakpoint
    12. Logpoints
    13. Watch
    14. The Debug Console
    15. Launch Configurations
    16. Summary
    17. CHAPTER 6: Unit Testing
    18. Enable and Discover Tests
    19. Run Tests
    20. Debug Tests
    21. Summary
    22. CHAPTER 7: Jupyter Notebook
    23. Creating and Opening a Jupyter Notebook
    24. Code Cell Modes
    25. Adding Cells
    26. Editing Cells
    27. Running a Cell
    28. Viewing Variables and Data
    29. Viewing Plots
    30. Debugging a Jupyter Notebook
    31. Connecting to a Remote Server
    32. Exporting a Notebook
    33. Summary
    34. CHAPTER 8: Using Git and GitHub with Visual Studio Code
    35. Getting Started
    36. GitHub Pull Requests and Issues Extension
    37. Publish a Project to GitHub
    38. Push Changes to GitHub
    39. Manage Pull Requests and Issues
    40. Clone Repository
    41. Timeline View
    42. Summary
    43. CHAPTER 9: Deploy a Django App to Azure App Service with the Azure App Service Extension
    44. Getting Started
    45. Creating a Django Project
    46. Creating an App
    47. Creating a Home Page
    48. Creating Website Pages
    49. Deploying to Azure
    50. Summary
    51. CHAPTER 10: Create and Debug a Flask App
    52. Getting Started
    53. Create a Flask App
    54. Create and Render a Template
    55. Debug the Flask App
    56. Summary
    57. CHAPTER 11: Create and Deploy a Container with Azure Container Registry and Azure App Service
    58. Getting Started
    59. Create a Container
    60. Debug a Container
    61. Push an Image to the Registry
    62. Deploy the Container Image to Azure
    63. Make Changes to the App and Deploy
    64. Multicontainer Apps
    65. Summary
    66. CHAPTER 12: Deploy an Azure Function Trigger by a Timer
    67. Getting Started
    68. Create an Azure Function
    69. Invoke the Function Locally
    70. Add the Code to the Function
    71. Deploy the Function to Azure
    72. Summary
  6. APPENDIX: Getting Started with Azure
  7. Index
  8. Copyright
  9. Dedication
  10. About the Author
  11. About the Technical Editor
  12. Acknowledgments
  13. End User License Agreement
3.21.100.34