The Snyk quick user guide (Python)
Snyk is a developer security platform that enables application and cloud developers to
secure their whole application — finding and fixing vulnerabilities from their first lines of code
to their running cloud.
I. Sign up
1.1. Go to the Snyk website: [Link] → Sign up
1.2. Select sign up for an account. For example, select to sign up with a Google account.
1
1.3. Sign in the Google account. Choose Continue to sign up
1.4. After Sign in the Google account. Choose Skip for now
2
1.5. Dashboard of your account on Snyk
II. Configure
2.1. On your Dashboard → Choose Setting
3
2.2. On Setting → DeepCode AI Fix → Enable DeepCode AI Fix
III. Using Snyk with Visual Studio Code IDE (VS Code)
After installing VS Code and opening VS Code (see installation and configuration
instructions in part IV. Python and V. Visual Studio Code IDE (VS Code) below)
4
3.1. Install Snyk extension
- Choose Extension or press keys: Ctrl + Shift + X
- Type Snyk to filter
- Choose Snyk Security
- Choose Install
(2) Type Snyk
(3)
(4)
(1)
- After Install, the Snyk icon on the Activity Bar
5
3.2. Synk with Python
3.3.1. Open Python project folder: Choose File → Open Folder or Ctrl +K
After browser to Python project folder: Choose Select Folder
6
If this folder opened the first time by VS Code, VS Code will display the Workspace Trust
dialog. Then, select Yes, I trust the authors to enable all features in the workspace. Example,
we opened folder c:\temp\vscode101
7
3.3.2. Using Snyk to analyze code: Click the Snyk icon on the Activity Bar
8
Snyk to analyze code report: For example, Snyk detected an error in the Security
section and an error in Quality section. Both cases are on line 02.
At the Quality section, Snyk detected “Missing close for open, add close or use a with
block”. Synk suggest 03 solutions to fix error
9
3.3.3. DeepCode AI fix.
Additionally, in the Security section, Snyk detected a Path Traversal error in line 02.
We click Generate AI fix to receive suggestions to help fix errors.
10
Snyk AI suggests 05 solutions. We choose the best solutions and click Apply fix and
check logic code.
IV. Python
4.1. Download
4.1.1. Go to the website: [Link]
11
4.1.2. Click Download Python 3.13.1 to download
4.2. Install
4.2.1. Open [Link]
12
4.2.2. Checkbox Use admin privileges when installing [Link] and Add [Link] to
PATH. Click Install Now
(2)
(1)
13
4.2.3. After completing the setup. Python installed on your Windows system. You will
see a successful message. Click Close
4.2.4. Verify the Python Installation in Windows: click on the Start menu and type “cmd”
in the search bar. Then on Command Prompt, type python –version
14
V. Visual Studio Code IDE (VS Code)
5.1. Download
5.1.1. Go to the website: [Link]
5.1.2. Choose Download for Windows to download
15
5.2. Install
5.2.1. Open [Link]
5.2.2. After the Installer opens, it will ask you to accept the terms and conditions of the
Visual Studio Code. Click on I accept the agreement and then click the Next button.
16
5.2.3. By default, the Visual Studio Code installation location displayed on the screen.
However, you can choose a different location by clicking the “Browse” button and selecting a
different directory. Then click on the Next button.
5.2.4. Select Additional Tasks. You can choose to create a start menu folder for VS Code
or leave it unchecked if you prefer not to have a start menu entry. Then click on the Next button.
17
1: if none
5.2.5. The installer may provide additional options, such as creating a desktop icon,
adding Visual Studio Code to the PATH environment variable, or installing additional
components. Review these options and make your selections based on your preferences. Then
click on the Next button.
18
(1)
(2)
5.2.6. Click the Install button to begin the installation process.
19
5.2.7. Once the installation is complete, you can launch Visual Studio Code by clicking
the Finish button in the installer:
20
5.2.8. The icon of Visual Studio Code on Desktop.
5.3. The basic user interface
Now that you have a folder open in VS Code, we take a quick tour of the user interface.
5.3.1. Switch between views with the Activity Bar
[Link]. Use the Activity Bar to switch between different views.
21
[Link]. When you select a view in the Activity Bar, the Primary Side Bar opens
to show view-specific information. For example, the Run and Debug view enables you to
configure and start debugging sessions.
5.3.2. View and edit files with the Editor
[Link]. Select the Explorer view in the Activity Bar, and select the New Untitled
Text File button to create a new file in your workspace.
22
[Link]. Click Select a language.
[Link]. Choose Python (python)
23
[Link]. Start typing some code in the file.
As you type, you should see suggestions popping up that help you complete your code
(IntelliSense). You can use the Up and Down keys to navigate the suggestions, and Tab to insert
the selected suggestion.
[Link]. Click the icon Save All, then type the file name and choose Save. A file
added to your workspace and an Editor opens in the main area of the window. Example, file
name is [Link]
24
[Link]. Add more files to your workspace and notice that each file opens a new
Editor tab. You can open as many editors as you like and view them side by side vertically or
horizontally.
25
5.4. Configure run Python on VS Code
1. On search box, type >Python: Select the interpreter
2. Choose Use Python from `[Link]` setting …
26