Skip to content

Update Run code section under Python language #6174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2023
Merged

Update Run code section under Python language #6174

merged 2 commits into from
Mar 27, 2023

Conversation

karrtikr
Copy link
Contributor

Closes #6138

@karrtikr karrtikr requested a review from gregvanl March 27, 2023 19:17
@vscodenpa vscodenpa added this to the March 2023 milestone Mar 27, 2023

- In the text editor: right-click anywhere in the editor and select **Run Python File in Terminal**. If invoked on a selection, only that selection is run.
- In Explorer: right-click a Python file and select **Run Python File in Terminal**.
![Using the run python file in terminal button](images/tutorial/run-python-file-in-terminal-button.png)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You won't be able to reach over to the docs/python images folder from docs/languages and it's better to not share images widely since this can break if topics are moved around.
Can you make a second copy of the run-python-file-in-terminal-button.png under docs/languages/images/python? Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for the catch!

@@ -33,14 +33,13 @@ To experience Python, create a file (using the [File Explorer](/docs/getstarted/
print("Hello World")
```

The Python extension then provides shortcuts to run Python code in the currently selected interpreter (**Python: Select Interpreter** in the Command Palette):
The Python extension then provides shortcuts to run Python code using the currently selected interpreter (**Python: Select Interpreter** in the Command Palette), just click the **Run Python File in Terminal** play button in the top-right side of the editor.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe simplify and break this into two sentences:
"To run the active Python file, select the **Run Python File in...."

@karrtikr karrtikr requested a review from gregvanl March 27, 2023 22:39
Copy link

@gregvanl gregvanl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gregvanl gregvanl merged commit a7a54d6 into main Mar 27, 2023
@gregvanl gregvanl deleted the kartik/runcode branch March 27, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Run code section in Python language
3 participants