Skip to content

ScaleMind-C9308A/EEG-Research

Repository files navigation

EEG-Research

Use the dataset from 2 sources:

I. Setup Guideline:

  • Follow the commands in Git Bash (Windows) or Terminal (Linux/Mac)

*Setup repo for first-time clone:

  • Create .env folder and install neccessary packages
virtualenv .env 
source .env/Scripts/activate # For Windows
source .env/bin/activate # For Linux
pip install -r requirements.txt

*Sync with submodule repo

https://stackoverflow.com/questions/18770545/why-is-my-git-submodule-head-detached-from-master/55570998#55570998

In order to sync all of the submodules:

# cd back to project root
git submodule update --remote --merge

*How to ssh into the server

*[SSH Tools] Tmux (enable background running)

If the server has no tmux sessions and jupyter notebook is not running

  • In your local computer's terminal, run:

    • In the first terminal:
# SSH into the server to run jupyter notebook
ssh <server_name>@<server_ip_address>
tmux new -s eeg # Create new tmux session named "eeg"
cd <cloned_repo>
jupyter notebook --no-browser --port 8888
tmux detach # <Or Ctrl-T d> Detach session, no worry that the session is still running in background
  • In the second terminal:
# Local port forwarding
ssh -NL 8888:localhost:8888 <server_name>@<server_ip_address>
  • Copy the jupyter notebook's address in the first terminal
  • Open your browser and paste the copied address to address bar

If the server already has tmux sessions (jupyter is running)

  • In your local computer's terminal, run:

    • In the first terminal:
# SSH into the server to run jupyter notebook
ssh <server_name>@<server_ip_address>
tmux a -t eeg # <Or Ctrl-T s> Choose tmux session name "eeg"
  • In the second terminal:
# Local port forwarding
ssh -NL 8888:localhost:8888 <server_name>@<server_ip_address>
  • Copy the jupyter notebook's address in the first terminal
  • Open your browser and paste the copied address to address bar

Tmux useful commands

  • prefix:
    • default: Ctrl-B
    • server: Ctrl-T

Manage sessions

  • Change session: prefix s -> choose session -> enter
  • New session: tmux new -s <s_name>
  • Detach: tmux detach / prefix d
  • Attach: tmux a -t <s_name>
  • Rename session: prefix $

Manage windows

  • New window: prefix c
  • Next window: prefix n
  • Prev window: prefix p

Manage panes

  • Split window vertically: prefix "
  • Split window horizontally: prefix %
  • Navigate panes: prefix <Arrows>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published