Windows and Ubuntu setup instructions are provided below
To get started easily with Ubuntu and Visual Studio Code follow the following steps:
- In the terminal run:
sudo apt-get install code - Open Visual Studio Code
- Install the following extentions from the extension tab
- Python Extension Pack
- Code Runner
- Open /LinearRegression/informativeFeatureIdentification.py
- Click on the python version number in the bottom right corner of VS code
- Click Create Virtual Environment
- Click Venv
- Check requirements.txt
- Click ok
- In the terminal run:
sudo apt-get install python3-tk
- Open /LinearRegression/informativeFeatureIdentification.py and click on the play button in the top right corner
- Observe the graph that tests linear regression
To get started easily with Windows and Visual Studio Code follow the following steps:
- Download and install python3 from here: https://www.python.org/downloads/
- Download and install Visual Studio Code from here: https://code.visualstudio.com/Download
- Open Visual Studio Code
- Search for "Code Runner" in the extensions tab
- Install the one with .run in the icon
- Search for "Python Extension Pack" in the extensions tab
- Install the Extension Pack
- Restart Visual Studio Code
- Open a powershell terminal in visual studio and ensure this directory is the current working directory
- Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Run python -m venv .venv
- Run ..venv\bin\activate
- Run pip install -r "requirements.txt"
- Click on File -> Preferences -> Settings
- Scroll down the Run Code configuration and click on it
- Scroll down until you see Run in Terminal and click on that box to check it
- Near the top right corner, there should be a play button with a dropdown arrow next to it. Click the dropdown arrow. (This was added by .run extension)
- Click run