Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
43 views

Python and Sublime Configuration

This document provides steps to configure Python and Sublime Text for Python development. It outlines downloading and installing Python, verifying the installation, downloading and configuring Sublime Text by installing packages like Package Control and SublimeREPL to allow running Python code. It also describes creating a Python_Run build system to allow running Python files from within Sublime Text. Following these steps sets up the environment to write, save and execute Python code directly from Sublime Text.

Uploaded by

PREEVITHA
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Python and Sublime Configuration

This document provides steps to configure Python and Sublime Text for Python development. It outlines downloading and installing Python, verifying the installation, downloading and configuring Sublime Text by installing packages like Package Control and SublimeREPL to allow running Python code. It also describes creating a Python_Run build system to allow running Python files from within Sublime Text. Following these steps sets up the environment to write, save and execute Python code directly from Sublime Text.

Uploaded by

PREEVITHA
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

PYTHON AND SUBLIME

CONFIGURATION
1ST STEP – Download Python
https://www.python.org/downloads/
2ND STEP – DURING INSTALLATION
MAKE SURE TO CHECKED THIS BOX
(PYTHON PATH)

By default this box is Please checked the Add Python 3.9 to


unchecked… PATH and clicked Install Now
3RD STEP – TEST YOUR PYTHON

To test whether your python is installed correctly. Open your


cmd and type in python
3RD STEP – TEST YOUR PYTHON

If your cmd shows screen like above then CONGRATULATIONS you’ve


successfully installed python in your system.
3RD STEP – DOWNLOAD SUBLIME
https://www.sublimetext.com/
4TH STEP – SETTING UP SUBLIME –
INSTALL PACKAGE CONTROL

Go to Tools > Command


Pallate
4TH STEP – SETTING UP SUBLIME –
Install Package Control
Type in Install Package
Control
5TH STEP – SETTING UP SUBLIME –
INSTALL Package Control: Install Package
Go back to Tools > Command
Pallate and type in Package
Control: Install Package
6TH STEP – SETTING UP SUBLIME –
INSTALLING SublimeREPL

After installing Package


Control: Install Package your
command palate will still be
open, then type in
SublimeREPL to install the last
package
6TH STEP – SETTING UP SUBLIME –
INSTALLING SublimeREPL

To check whether your


SublimeREPL is install or not go
to Tools and
you will see SublimeREPL at the
bottom of the Tools menu
7TH STEP – SETTING UP PYTHON-RUN
BUILD SYSTEM

Go to Tools > Build System > New Build System, copy paste the
following text, and save as Python_Run
{
"target":"run_existing_window_command",
"id":"repl_python_run",
"file":"config/Python/Main.sublime-menu"
}
7TH STEP – SETTING UP PYTHON-RUN
BUILD SYSTEM

Original Script

Replace with given script

{
"target":"run_existing_window_command",
"id":"repl_python_run",
"file":"config/Python/Main.sublime-menu"
}
7TH STEP – SETTING UP PYTHON-RUN
BUILD SYSTEM Make sure that your script is saved inside -> C:\Users\User\AppData\
Roaming\Sublime Text 3\Packages\User
DO NOT save script at DESKTOP or another place

Save script as Python_Run


8TH STEP – TESTING SUBLIME

name="<put your name here>"


print("Welcome to Python Programming "+name)

Type in the given python code. And save it as test.py


Your python file MUST end with .py
8TH STEP – TESTING SUBLIME

To run your file, you must first select


your build system. Go to Tools > Build
System > Python_Run (select)
Then to run your file you can either
press ctrl+b or go to Tools > Build
8TH STEP – TESTING SUBLIME

CONGRATULATIONS NOW YOU CAN RUN PYTHON FROM SUBLIME!!

You might also like