Skip to content

Commit c5f1cdc

Browse files
cwebster-99wesm
authored andcommitted
Adopting Python Walkthrough edits (microsoft/vscode-python#23214)
Applying edits to the pythonWalkthrough and removing experimental walkthrough.
1 parent 0235a5d commit c5f1cdc

File tree

2 files changed

+23
-135
lines changed

2 files changed

+23
-135
lines changed

β€Žextensions/positron-python/package.json

+14-95
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,24 @@
8181
"description": "%walkthrough.pythonWelcome.description%",
8282
"when": "workspacePlatform != webworker",
8383
"steps": [
84+
{
85+
"id": "python.createPythonFolder",
86+
"title": "%walkthrough.step.python.createPythonFolder.title%",
87+
"description": "%walkthrough.step.python.createPythonFolder.description%",
88+
"media": {
89+
"svg": "resources/walkthrough/open-folder.svg",
90+
"altText": "%walkthrough.step.python.createPythonFile.altText%"
91+
},
92+
"when": "workspaceFolderCount = 0"
93+
},
8494
{
8595
"id": "python.createPythonFile",
8696
"title": "%walkthrough.step.python.createPythonFile.title%",
8797
"description": "%walkthrough.step.python.createPythonFile.description%",
8898
"media": {
8999
"svg": "resources/walkthrough/open-folder.svg",
90100
"altText": "%walkthrough.step.python.createPythonFile.altText%"
91-
},
92-
"when": ""
101+
}
93102
},
94103
{
95104
"id": "python.installPythonWin8",
@@ -120,25 +129,14 @@
120129
"when": "workspacePlatform == linux && showInstallPythonTile",
121130
"command": "workbench.action.terminal.new"
122131
},
123-
{
124-
"id": "python.selectInterpreter",
125-
"title": "%walkthrough.step.python.selectInterpreter.title%",
126-
"description": "%walkthrough.step.python.selectInterpreter.description%",
127-
"media": {
128-
"svg": "resources/walkthrough/python-interpreter.svg",
129-
"altText": "%walkthrough.step.python.selectInterpreter.altText%"
130-
},
131-
"when": "workspaceFolderCount == 0"
132-
},
133132
{
134133
"id": "python.createEnvironment",
135134
"title": "%walkthrough.step.python.createEnvironment.title%",
136135
"description": "%walkthrough.step.python.createEnvironment.description%",
137136
"media": {
138137
"svg": "resources/walkthrough/create-environment.svg",
139138
"altText": "%walkthrough.step.python.createEnvironment.altText%"
140-
},
141-
"when": "workspaceFolderCount > 0"
139+
}
142140
},
143141
{
144142
"id": "python.runAndDebug",
@@ -147,8 +145,7 @@
147145
"media": {
148146
"svg": "resources/walkthrough/rundebug2.svg",
149147
"altText": "%walkthrough.step.python.runAndDebug.altText%"
150-
},
151-
"when": ""
148+
}
152149
},
153150
{
154151
"id": "python.learnMoreWithDS",
@@ -157,85 +154,7 @@
157154
"media": {
158155
"altText": "%walkthrough.step.python.learnMoreWithDS.altText%",
159156
"svg": "resources/walkthrough/learnmore.svg"
160-
},
161-
"when": ""
162-
}
163-
]
164-
},
165-
{
166-
"id": "pythonWelcome2",
167-
"title": "%walkthrough.pythonWelcome.title%",
168-
"description": "%walkthrough.pythonWelcome.description%",
169-
"when": "false",
170-
"steps": [
171-
{
172-
"id": "python.createPythonFile",
173-
"title": "%walkthrough.step.python.createPythonFile.title%",
174-
"description": "%walkthrough.step.python.createPythonFile.description%",
175-
"media": {
176-
"svg": "resources/walkthrough/open-folder.svg",
177-
"altText": "%walkthrough.step.python.createPythonFile.altText%"
178-
},
179-
"when": ""
180-
},
181-
{
182-
"id": "python.installPythonWin8",
183-
"title": "%walkthrough.step.python.installPythonWin8.title%",
184-
"description": "%walkthrough.step.python.installPythonWin8.description%",
185-
"media": {
186-
"markdown": "resources/walkthrough/install-python-windows-8.md"
187-
},
188-
"when": "workspacePlatform == windows && showInstallPythonTile"
189-
},
190-
{
191-
"id": "python.installPythonMac",
192-
"title": "%walkthrough.step.python.installPythonMac.title%",
193-
"description": "%walkthrough.step.python.installPythonMac.description%",
194-
"media": {
195-
"markdown": "resources/walkthrough/install-python-macos.md"
196-
},
197-
"when": "workspacePlatform == mac && showInstallPythonTile",
198-
"command": "workbench.action.terminal.new"
199-
},
200-
{
201-
"id": "python.installPythonLinux",
202-
"title": "%walkthrough.step.python.installPythonLinux.title%",
203-
"description": "%walkthrough.step.python.installPythonLinux.description%",
204-
"media": {
205-
"markdown": "resources/walkthrough/install-python-linux.md"
206-
},
207-
"when": "workspacePlatform == linux && showInstallPythonTile",
208-
"command": "workbench.action.terminal.new"
209-
},
210-
{
211-
"id": "python.createEnvironment2",
212-
"title": "%walkthrough.step.python.createEnvironment.title2%",
213-
"description": "%walkthrough.step.python.createEnvironment.description2%",
214-
"media": {
215-
"svg": "resources/walkthrough/create-environment.svg",
216-
"altText": "%walkthrough.step.python.createEnvironment.altText%"
217-
},
218-
"when": ""
219-
},
220-
{
221-
"id": "python.runAndDebug2",
222-
"title": "%walkthrough.step.python.runAndDebug2.title%",
223-
"description": "%walkthrough.step.python.runAndDebug2.description%",
224-
"media": {
225-
"svg": "resources/walkthrough/rundebug2.svg",
226-
"altText": "%walkthrough.step.python.runAndDebug.altText%"
227-
},
228-
"when": ""
229-
},
230-
{
231-
"id": "python.learnMoreWithDS2",
232-
"title": "%walkthrough.step.python.learnMoreWithDS2.title%",
233-
"description": "%walkthrough.step.python.learnMoreWithDS.description2%",
234-
"media": {
235-
"altText": "%walkthrough.step.python.learnMoreWithDS.altText%",
236-
"svg": "resources/walkthrough/learnmore.svg"
237-
},
238-
"when": ""
157+
}
239158
}
240159
]
241160
},

β€Žextensions/positron-python/package.nls.json

+9-40
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,19 @@
8989
"python.venvPath.description": "Path to folder with a list of Virtual Environments (e.g. ~/.pyenv, ~/Envs, ~/.virtualenvs).",
9090
"walkthrough.pythonWelcome.title": "Get Started with Python Development",
9191
"walkthrough.pythonWelcome.description": "Your first steps to set up a Python project with all the powerful tools and features that the Python extension has to offer!",
92-
"walkthrough.step.python.createPythonFile.title": "Create a Python file",
92+
"walkthrough.step.python.createPythonFile.title": "Create a Python file",
9393
"walkthrough.step.python.createPythonFolder.title": "Open a Python project folder",
9494
"walkthrough.step.python.createPythonFile.description": {
9595
"message": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22python%22%7D) a Python file - make sure to save it as \".py\".\n[Create Python File](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22python%22%7D)",
9696
"comment": [
97-
"{Locked='](command:toSide:workbench.action.files.openFile'}",
9897
"{Locked='](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22python%22%7D'}",
9998
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
10099
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
101100
]
102101
},
103102
"walkthrough.step.python.createPythonFolder.description": {
104103
"message": "[Open](command:workbench.action.files.openFolder) or create a project folder.\n[Open Project Folder](command:workbench.action.files.openFolder)",
105-
"comment": [
104+
"comment": [
106105
"{Locked='](command:workbench.action.files.openFolder'}",
107106
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
108107
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
@@ -129,53 +128,23 @@
129128
]
130129
},
131130
"walkthrough.step.python.selectInterpreter.title": "Select a Python Interpreter",
132-
"walkthrough.step.python.selectInterpreter.description": {
133-
"message": "Choose which Python interpreter/environment you want to use for your Python project.\n[Select Python Interpreter](command:python.setInterpreter)\n**Tip**: Run the ``Python: Select Interpreter`` command in the [Command Palette](command:workbench.action.showCommands).",
134-
"comment": [
135-
"{Locked='](command:python.setInterpreter'}",
136-
"{Locked='](command:workbench.action.showCommands'}",
137-
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
138-
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
139-
]
140-
},
141-
"walkthrough.step.python.createEnvironment.title": "Create a Python Environment",
142-
"walkthrough.step.python.createEnvironment.title2": "Select a Python environment",
131+
"walkthrough.step.python.createEnvironment.title": "Select or create a Python environment",
143132
"walkthrough.step.python.createEnvironment.description": {
144-
"message": "Create an environment for your Python project.\n[Create Environment](command:python.createEnvironment)\n**Tip**: Run the ``Python: Create Environment`` command in the [Command Palette](command:workbench.action.showCommands).\n πŸ” Check out our [docs](https://aka.ms/pythonenvs) to learn more.",
145-
"comment": [
133+
"message": "Create an environment for your Python project or use [Select Python Interpreter](command:python.setInterpreter) to select an existing one.\n[Create Environment](command:python.createEnvironment)\n**Tip**: Run the ``Python: Create Environment`` command in the [Command Palette](command:workbench.action.showCommands).",
134+
"comment": [
146135
"{Locked='](command:python.createEnvironment'}",
147136
"{Locked='](command:workbench.action.showCommands'}",
148-
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
149-
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
150-
]
151-
},
152-
"walkthrough.step.python.createEnvironment.description2": {
153-
"message": "[Select a Python interpreter](command:python.setInterpreter) or [create an environment](command:python.createEnvironment) for your Python project.\n[Select Interpreter](command:python.setInterpreter)",
154-
"comment": [
155-
"{Locked='](command:python.createEnvironment'}",
156137
"{Locked='](command:python.setInterpreter'}",
157138
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
158139
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
159140
]
160141
},
161142
"walkthrough.step.python.runAndDebug.title": "Run and debug your Python file",
162-
"walkthrough.step.python.runAndDebug2.title": "Run and debug",
163-
"walkthrough.step.python.runAndDebug2.description": "Click the play button on the top right of the editor, or press F5 when on the file and select \"Python File\" to run with the debugger.",
164-
"walkthrough.step.python.runAndDebug.description": "Open your Python file and click on the play button on the top right of the editor, or press F5 when on the file and select \"Python File\" to run with the debugger. \n \n[Learn more](https://code.visualstudio.com/docs/python/python-tutorial#_run-hello-world)",
165-
"walkthrough.step.python.learnMoreWithDS.title": "Explore more resources",
166-
"walkthrough.step.python.learnMoreWithDS2.title": "Keep exploring!",
143+
"walkthrough.step.python.runAndDebug.description": "Open your Python file and click on the play button on the top right of the editor, or press F5 when on the file and select \"Python File\" to run with the debugger. \n \n[Learn more](https://code.visualstudio.com/docs/python/python-tutorial#_run-hello-world)",
144+
"walkthrough.step.python.learnMoreWithDS.title": "Keep exploring!",
167145
"walkthrough.step.python.learnMoreWithDS.description": {
168-
"message": "🎨 Find all the features the Python extension has to offer by looking for \"Python\" in the [Command Palette](command:workbench.action.showCommands). \n πŸ“ˆ Learn more about getting started with [data science](command:workbench.action.openWalkthrough?%7B%22category%22%3A%22ms-python.python%23pythonDataScienceWelcome%22%2C%22step%22%3A%22ms-python.python%23python.createNewNotebook%22%7D) in Python. \n ✨ Take a look at our [Release Notes](https://aka.ms/AA8dxtb) to learn more about the latest features. \n \n[Learn More](https://aka.ms/AA8dqti)",
169-
"comment": [
170-
"{Locked='](command:workbench.action.showCommands'}",
171-
"{Locked='](command:workbench.action.openWalkthrough?%7B%22category%22%3A%22ms-python.python%23pythonDataScienceWelcome%22%2C%22step%22%3A%22ms-python.python%23python.createNewNotebook%22%7D'}",
172-
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
173-
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
174-
]
175-
},
176-
"walkthrough.step.python.learnMoreWithDS.description2": {
177-
"message": "🎨 Explore all the features the Python extension has to offer by searching for \"Python\" in the [Command Palette](command:workbench.action.showCommands). \n πŸ“ˆ Learn more about getting started with [data science](command:workbench.action.openWalkthrough?%7B%22category%22%3A%22ms-python.python%23pythonDataScienceWelcome%22%2C%22step%22%3A%22ms-python.python%23python.createNewNotebook%22%7D) in Python. \n ✨ Take a look at our [Release Notes](https://aka.ms/AA8dxtb) to learn more about the latest features. \n \n[Follow along with the Python Quick Start](https://code.visualstudio.com/docs/python/python-quick-start)",
178-
"comment": [
146+
"message":"🎨 Explore all the features the Python extension has to offer by looking for \"Python\" in the [Command Palette](command:workbench.action.showCommands). \n πŸ“ˆ Learn more about getting started with [data science](command:workbench.action.openWalkthrough?%7B%22category%22%3A%22ms-python.python%23pythonDataScienceWelcome%22%2C%22step%22%3A%22ms-python.python%23python.createNewNotebook%22%7D) in Python. \n ✨ Take a look at our [Release Notes](https://aka.ms/AA8dxtb) to learn more about the latest features. \n \n[Follow along with the Python Tutorial](https://aka.ms/AA8dqti)",
147+
"comment":[
179148
"{Locked='](command:workbench.action.showCommands'}",
180149
"{Locked='](command:workbench.action.openWalkthrough?%7B%22category%22%3A%22ms-python.python%23pythonDataScienceWelcome%22%2C%22step%22%3A%22ms-python.python%23python.createNewNotebook%22%7D'}",
181150
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",

0 commit comments

Comments
Β (0)