Skip to content

Commit a074e8b

Browse files
cwebster-99Kartik Rajluabud
authored
Updating package.json for Create Env tile (#20066)
Updated package.json to include a Create Environment tile in the Python Getting Started walkthrough if there is a workspace open. If there is no workspace open, it will default to the normal Getting Started walkthrough with the Select Interpreter tile. This also incorporates the new walkthrough artwork. Co-authored-by: Kartik Raj <[email protected]> Co-authored-by: Luciana Abud <[email protected]>
1 parent 4253600 commit a074e8b

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

package.json

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"onCommand:python.createEnvironment",
8787
"onCommand:python.createNewFile",
8888
"onWalkthrough:pythonWelcome",
89+
"onWalkthrough:pythonWelcomeWithEnv",
8990
"onWalkthrough:pythonWelcomeWithDS",
9091
"onWalkthrough:pythonDataScienceWelcome",
9192
"workspaceContains:mspythonconfig.json",
@@ -177,6 +178,93 @@
177178
}
178179
]
179180
},
181+
{
182+
"id": "pythonWelcomeWithEnv",
183+
"title": "Get started with Python development",
184+
"description": "Your first steps to set up a Python project with all the powerful tools and features that the Python extension has to offer!",
185+
"when": "false",
186+
"steps": [
187+
{
188+
"id": "python.createPythonFile2",
189+
"title": "Create a Python file",
190+
"description": "[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)",
191+
"media": {
192+
"svg": "resources/walkthrough/open-folder.svg",
193+
"altText": "Open a Python file or a folder with a Python project."
194+
},
195+
"when": ""
196+
},
197+
{
198+
"id": "python.installPythonWin82",
199+
"title": "Install Python",
200+
"description": "The Python Extension requires Python to be installed. Install Python [from python.org](https://www.python.org/downloads).\n\n[Install Python](https://www.python.org/downloads)\n",
201+
"media": {
202+
"markdown": "resources/walkthrough/install-python-windows-8.md"
203+
},
204+
"when": "workspacePlatform == windows && showInstallPythonTile"
205+
},
206+
{
207+
"id": "python.installPythonMac2",
208+
"title": "Install Python",
209+
"description": "The Python Extension requires Python to be installed. Install Python 3 through the terminal.\n[Install Python via Brew](command:python.installPythonOnMac)\n",
210+
"media": {
211+
"markdown": "resources/walkthrough/install-python-macos.md"
212+
},
213+
"when": "workspacePlatform == mac && showInstallPythonTile",
214+
"command": "workbench.action.terminal.new"
215+
},
216+
{
217+
"id": "python.installPythonLinux2",
218+
"title": "Install Python",
219+
"description": "The Python Extension requires Python to be installed. Install Python 3 through the terminal.\n[Install Python via terminal](command:python.installPythonOnLinux)\n",
220+
"media": {
221+
"markdown": "resources/walkthrough/install-python-linux.md"
222+
},
223+
"when": "workspacePlatform == linux && showInstallPythonTile",
224+
"command": "workbench.action.terminal.new"
225+
},
226+
{
227+
"id": "python.createEnvironment",
228+
"title": "Create a Python Environment ",
229+
"description": "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.",
230+
"media": {
231+
"svg": "resources/walkthrough/create-environment.svg",
232+
"altText": "Creating a Python environment from the Command Palette"
233+
},
234+
"when": "workspaceFolderCount > 0"
235+
},
236+
{
237+
"id": "python.selectInterpreter2",
238+
"title": "Select a Python Interpreter",
239+
"description": "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).",
240+
"media": {
241+
"svg": "resources/walkthrough/python-interpreter.svg",
242+
"altText": "Selecting a python interpreter from the status bar"
243+
},
244+
"when": "workspaceFolderCount == 0"
245+
},
246+
{
247+
"id": "python.runAndDebug2",
248+
"title": "Run and debug your Python file",
249+
"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)",
250+
"media": {
251+
"svg": "resources/walkthrough/rundebug2.svg",
252+
"altText": "How to run and debug in VS Code with F5 or the play button on the top right."
253+
},
254+
"when": ""
255+
},
256+
{
257+
"id": "python.learnMoreWithDS2",
258+
"title": "Explore more resources",
259+
"description": "🎨 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[Learn More](https://aka.ms/AA8dqti)",
260+
"media": {
261+
"altText": "Image representing our documentation page and mailing list resources.",
262+
"svg": "resources/walkthrough/learnmore.svg"
263+
},
264+
"when": ""
265+
}
266+
]
267+
},
180268
{
181269
"id": "pythonDataScienceWelcome",
182270
"title": "Get started with Python for Data Science",

0 commit comments

Comments
 (0)