Skip to content

Commit 13414fd

Browse files
author
Kraig Brockschmidt
authored
Merge pull request #797 from MicrosoftDocs/kraigb-python-mvc
Refactor TOC into MVC and add quickstarts and fuller tutorial
2 parents 6ef80f4 + 3a6018d commit 13414fd

File tree

66 files changed

+990
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+990
-101
lines changed

docs/python/TOC.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
1-
# [Python in Visual Studio](python-in-visual-studio.md)
2-
## [Installation](installation.md)
3-
### [Python Environments](python-environments.md)
4-
### [Managing Python on Azure App Service](managing-python-on-azure-app-service.md)
5-
### [Azure SDK for Python](azure-sdk-for-python.md)
6-
## [Getting Started with Python](getting-started.md)
7-
### [Publishing to Azure](publishing-to-azure.md)
8-
### [Creating a C++ Extension for Python](cpp-and-python.md)
1+
# [Overview](python-in-visual-studio.md)
2+
# [Installation](installation.md)
3+
# Quickstarts
4+
## [Create a project from existing code](quickstart-01-project-from-existing.md)
5+
## [Create a project from a template](quickstart-02-project-from-template.md)
6+
## [Create a project from a repository](quickstart-03-project-from-repository.md)
7+
## [Create a project from a Cookiecutter template](quickstart-04-project-from-cookiecutter.md)
8+
# Tutorials
9+
## [0 - Install Python support](vs-tutorial-01-00.md)
10+
## [1 - Create a new Python project](vs-tutorial-01-01.md)
11+
## [2 - Writing and running code](vs-tutorial-01-02.md)
12+
## [3 - Using the interactive REPL window](vs-tutorial-01-03.md)
13+
## [4 - Running code in the debugger](vs-tutorial-01-04.md)
14+
## [5 - Installing packages and managing Python environments](vs-tutorial-01-05.md)
15+
## [6 - Working with Git](vs-tutorial-01-06.md)
16+
# Concepts
17+
## [Python Environments](python-environments.md)
918
## [Python Projects](python-projects.md)
1019
### [Web Project Templates](template-web.md)
1120
### [Django Web Project Template](template-django.md)
1221
### [Azure Cloud Service Template](template-azure-cloud-service.md)
22+
## [Managing Python on Azure App Service](managing-python-on-azure-app-service.md)
23+
## [Azure SDK for Python](azure-sdk-for-python.md)
24+
# How To
1325
## [Editing Code](code-editing.md)
1426
### [Formatting Code](code-formatting.md)
1527
### [Refactoring Code](code-refactoring.md)
1628
### [Using PyLint](code-pylint.md)
1729
## [Interactive Python (REPL)](interactive-repl.md)
1830
### [Using IPython REPL](interactive-repl-ipython.md)
1931
## [Debugging](debugging.md)
32+
### [Cross-platform Remote Debugging](debugging-cross-platform-remote.md)
33+
## [Publishing to Azure App Service](publishing-to-azure.md)
2034
### [Azure Remote Debugging](debugging-azure-remote.md)
2135
### [Troubleshooting Azure Remote Debugging](debugging-azure-remote-troubleshooting.md)
22-
### [Cross-platform Remote Debugging](debugging-cross-platform-remote.md)
36+
## Interacting with C++
37+
### [Creating a C++ Extension for Python](cpp-and-python.md)
2338
### [Python/C++ Mixed-Mode Debugging](debugging-mixed-mode.md)
2439
### [Symbols for Mixed-Mode Debugging](debugging-symbols-for-mixed-mode.md)
25-
## [Options](options.md)
2640
## [Profiling](profiling.md)
2741
## [Unit Testing](unit-testing.md)
28-
## [Using the Cookiecutter Extension](cookiecutter.md)
42+
## [Using the Cookiecutter Extension](cookiecutter.md)
43+
## [Installation for Visual Studio 2015 and earlier](installation.md)
44+
# Reference
45+
## [Options](options.md)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1. To connect to GitHub repositories, run the Visual Studio installer, select **Modify**, and select the **Individual components** tab. Scroll down to the **Code tools** section, select **GitHub extension for Visual Studio**, and select **Modify**.
2+
3+
![Selecting the GitHub extension in the Visual Studio installer](../media/installation-github-extension.png)
4+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
1. Launch Visual Studio and select **File > New > Project**.
2+
3+
1. In the **New Project** dialog, search for "Python", select the "From Existing Python code" template, give the project a name and location, and select **OK**.
4+
5+
1. In the wizard that appears, set the path to your existing code, set a filter for file types, and specify any search paths that your project requires, then select **Next**. If you don't know what search paths are, leave that field blank.
6+
7+
![New Project from Existing Code, step 1](../media/projects-from-existing-1.png)
8+
9+
1. In the next dialog, select the startup file for your project and select **Next**. (If desired, select an environment; otherwise accept the defaults.) Note that the dialog shows only files in the root folder; if the file you want is in a subfolder, leave the startup file blank and set it later in Solution Explorer (described below).
10+
11+
![New Project from Existing Code, step 2](../media/projects-from-existing-2.png)
12+
13+
1. Select the location in which to save the project file (a `.pyproj` file on disk). If applicable, you can also include auto-detection of virtual environments and customize the project for different web frameworks. If you're unsure of these options, leave them set to the defaults.
14+
15+
![New Project from Existing Code, step 3](../media/projects-from-existing-3.png)
16+
17+
1. Select **Finish** and Visual Studio creates the project and opens it in Solution Explorer. If you want to move the `.pyproj` file elsewhere, select it in Solution Explorer and choose **File > Save As**. This action updates file references in the project but does not move any code files.
18+
19+
1. To set a different startup file, locate the file in Solution Explorer, right-click, and select **Set as Startup File**.

docs/python/installation.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Installation for Python in Visual Studio | Microsoft Docs
33
ms.custom: ""
4-
ms.date: 7/13/2017
4+
ms.date: 9/22/2017
55
ms.reviewer: ""
66
ms.suite: ""
77
ms.technology:
@@ -20,7 +20,7 @@ manager: "ghogen"
2020

2121
To install Python support for Visual Studio, follow the instructions in the section that matches your version of Visual Studio:
2222

23-
- [Visual Studio 2017](#visual-studio-2017)
23+
- [Visual Studio 2017](vs-tutorial-01-00.md)
2424
- [Visual Studio 2015](#visual-studio-2015)
2525
- [Visual Studio 2013 and earlier](#visual-studio-2013-and-earlier)
2626

@@ -36,20 +36,8 @@ To quickly test Python support after following the installation steps, Open the
3636
3737
## Visual Studio 2017
3838

39-
1. Install the Visual Studio 2017 from [https://www.visualstudio.com/vs/](https://www.visualstudio.com/vs/).
39+
Refer to [Tutorial Step 0: install Python support in Visual Studio 2017](vs-tutorial-01-00.md).
4040

41-
1. In the Visual Studio installer, select the **Web & Cloud > Python Development** workload.
42-
43-
![Python development workload in the Visual Studio installer](media/installation-python-workload.png)
44-
45-
> [!Note]
46-
> Python is also included in the **Data science and analytical applications** workload.
47-
48-
1. On the right side of the installer, select the Python interpreters and other related tools you want to include. For example, if you plan on developing C++ extensions for Python, include the **Python native development tools** option.
49-
50-
![Python development options in the Visual Studio installer](media/installation-python-options.png)
51-
52-
1. If you already have interpreters installed on your computer, see [Creating an environment for an existing interpreter](python-environments.md#creating-an-environment-for-an-existing-interpreter).
5341

5442
## Visual Studio 2015
5543

0 commit comments

Comments
 (0)