banner



How to open and view Python PY files on Windows 10

This post will show you how to open Python PY files in Windows 10. PY is a script file written in Python programming language. In this post, we have covered some gratuitous tools to open Python scripts in Windows 10. You can view the content of a PY file and also edit it. Thus, these can also be used as Python file editor software.

These tools also provide the characteristic to run PY files – only Python Interpreter has to exist installed on your PC to use that characteristic. Alternatively, you lot tin also apply Control Prompt and Python Interpreter to run a Python script file.

Open PY Files on Windows ten

We take added v free Python file viewer software to open Python files:

  1. PyCharm
  2. PyScripter
  3. Thonny
  4. Notepad++
  5. Cantlet.

1] PyCharm

PyCharm IDE software

PyCharm is a practiced Python IDE (Integrated Development Environment) program to open, edit, and run Python scripts. Information technology comes with a navigation pane to open a PY file. You can also open different Python files on separate tabs in a single interface. The features that go far more than useful are you tin can view the list of problems in a split up section and bank check quick fixes for them. Its debugger tool is also helpful.

Download the complimentary open up-source community edition of this software. During the installation process, it too provides the options to add together it to the correct-click context menu and associate Python files with information technology.

After opening it for the first time, you lot can cull a theme (light or dark) using a UI Themes plugin. You can always change the theme later using Settings. Subsequently that, you can skip the remaining plugins, create a new project, or open an existing project. Or simply open a Python file using Ctrl+Shift+N hotkey or accessing the File menu or navigation menu.

At present beginning the editing, debug the script, and run your Python script using its Run menu or given buttons.

ii] PyScripter

open and view Python PY files

PyScripter is another open-source Python IDE software to help you hands view and edit a PY script. It comes with some good features similar show/hide special characters, syntax highlighting, toggle breakpoints, code folding, syntax checking, debugger hints, open up a remote file by providing file proper noun and SSH server, evidence/hide line numbers, employ different themes, etc.

Catch the setup of this software and install it. While installing this software, you tin can as well enable the selection to integrate it with the Windows right-click menu.

Open its main interface then you can create a new project. Or else, you can use the navigation pane or File bill of fare to add a Python script. The tabbed interface feature is also in that location to open multiple scripts. Y'all tin view and edit the script in the main section and view breakpoints, variables, output, and other items in the bottom section. Apart from that, there are different menus like the Run menu to perform syntax check, run the script, etc., and buttons that you can employ.

3] Thonny

Thonny software

Thonny is a nice option to create a PY file, open Python files, and edit PY files on Windows 10. This open-source tool has a simple interface and information technology is intended to use for beginners. It comes with pre-added Python iii.seven, so you tin can run Python script without installing a Python Interpreter separately.

Apart from that, information technology has many other useful features that brand it a better than basic Python viewer tool. You tin can testify/hide outlines, variables, program tree, etc., using the View menu, select Interpreter (default or other available), run script, and debug the current script using the Run menu, code completion proffer, etc. The feature to automatically highlight syntax errors (similar unclosed quotes or parentheses) is as well there.

Grab this tool using this link. Afterward opening the interface, employ the File carte to create a new file or add together an existing PY file. You tin as well open multiple Python scripts on dissever tabs. Afterwards that, you merely need to explore and use options present in different menus and make the nearly of it.

Read Also: How to install NumPy using PIP on Windows 10.

iv] Notepad++

Notepad++ software

Notepad++ is a very versatile source code editor and text editor. Information technology supports a wide range of formats to open a normal text file, programming files (like C++, C#, etc.), Java files, JSON, LaTeX, Windows PowerShell files, etc. This is also a good pick to open and edit PY files. You can also check the total number of lines, selected lines, and column number where the mouse cursor is available.

This software provides syntax highlighting for PY files, tabbed interface to open multiple Python files on dissimilar tabs, start and stop macro recording, etc. Y'all can as well run a Python script using the Run carte and providing the path of the Python interpreter installed on your PC.

Grab Notepad++ from here. Afterward downloading the portable or installer version of Notepad++, launch its, and employ the File bill of fare to add a Python file. After that, its content is visible which you tin can edit equally per the requirement. Afterwards that, you tin can save the file or a copy of the Python file using the same carte du jour.

v] Atom

Atom software

Atom is an open-source text and code editor software which is developed by GitHub. It supports Markdown and other lawmaking files and the PY file is also supported. The interface is convenient where you can open multiple PY files and edit them. It comes with text selection, text auto-complete, line numbers, enable/disable tree view, lawmaking folding, increase/decrease text size, change text case, and other options.

Its download link is here. After launching it, you tin open up a PY file or a project. One time the file is added, you can start the editing, and apply the options available in different menus. Y'all can also modify its default theme by accessing Settings using the File menu.

The settings folio also helps you install packages for Python files. For case, you can search for and install the python-debugger parcel. Subsequently that, you tin use the Packages menu and utilise Python file debugger past adding input arguments and debugger commands.

You can observe and install more packages such as format Python code, run Python file in terminal, add docstrings to Python, etc., to make it more than useful for PY script files.

These are some good tools that yous can use to open Python PY files in Windows ten PC. Though Python IDE programs are better to use, simple text and lawmaking editor tools besides serve the purpose of opening PY files in Windows PC quite well. Hope these Python file viewers will aid.

TIP: here are some of the best websites to acquire or improve your HTML coding knowledge.

how to open py files in windows 10

Source: https://www.thewindowsclub.com/open-python-py-files-on-windows-10

Posted by: woodmanseenevolly.blogspot.com

0 Response to "How to open and view Python PY files on Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel