Skip to content

Working Environment Set-up for Data Scientists ​

Last updated: 2026-07-21

Basic Tools Installation and Set-up ​

Macbook Basic Set-up ​

  1. set up iterms2
    1. you can customize settings and colors of iterms2, for example, using a color theme.
  2. use zsh
    1. difference between bash ans zsh
      1. Zsh is compatible with most Bash syntax but lacks compatibility with some Bash file wildcards, specifically the use of *.
      2. Zsh offers additional syntax extensions absent in Bash. Given the current prevalence of Bash in default Linux installations, it is advisable not to use Zsh extended syntax. Shell scripts should also utilize #!/bin/bash to ensure compatibility.
    2. use zsh for $SHELL
  3. install oh-my-zsh
    1. a configuration framework for zsh, which can help simplify the configuration of zsh, providing convenient plugin management and theme configuration functions.
    2. browse themes
      1. recommend: download powerlevel10k by following instructions
      bash
        git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
        # in /.zshrc
        ZSH_THEME="powerlevel10k/powerlevel10k"
        # ZSH_THEME="sorin"
    3. browse plug-ins
      1. recommend some of the zsh plugins such as syntax-highlighting
      2. ls replacement: download colorls and lsd
      3. secret manager: secman
      4. tran
    bash
      # download in command-line
      ## syntax highlighting
      git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
      ## auto-suggestions
      git clone https://github.com/zsh-users/zsh-autosuggestions.git "${ZSH_CUSTOM}"/plugins/zsh-autosuggestions
      ## history substring search
      git clone https://github.com/zsh-users/zsh-history-substring-search "${ZSH_CUSTOM}"/plugins/zsh-history-substring-search
    
      # sudo gem install colorls
      brew install lsd
      sudo gem install colorls
    
      # in ~/.zshrc write 
      plugins=(git zsh-syntax-highlighting zsh-autosuggestions zsh-history-substring-search)
      alias ls='lsd'
      alias lc='colorls -lA --sd'
      
      source $(dirname $(gem which colorls))/tab_complete.sh
      
      # then run source ~/.zshrc
  4. install Homebrew
  5. Install developer toolkits
    bash
    xcode-select --install
    • X code Command Line Tools is a toolkit containing many commonly used software, such as Git, GCC, Clang, etc. If the system does not prompt you automatically, you can manually trigger the pop-up window and install it with the following command.
  6. Install Git
    1. First Time Setup

      bash
      # Display the list of valid login shells on the system
      cat /etc/shells
      
      # Change the current user's default shell to zsh
      chsh -s /bin/zsh
      
      # Download and run the Oh My Zsh installation script from GitHub
      sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
      
      # Install Xcode command line tools (for macOS development)
      xcode-select --install
      
      # Check the installed version of Git
      git version

Editor Set-up ​

Vim ​

Use the Vim learning path for installation, core editing, configuration, and optional plugins. Start with terminal Vim and vimtutor; install MacVim or an IDE-style plugin stack only when the workflow requires it.

Emacs ​

IDE Environments (eg. VS Code) ​

  1. download VS Code
  2. VS Code Extensions
    1. Markown Extension Pack
    2. Python Extension Pack which includes must-have python environment tools and Jupyter.
    3. PyLance
    4. Git Extension Pack
    5. Path Intellisense: autocomplete file paths
    6. CodeSnap or CodeSnap plus
    7. Themes: Search themes for example, "Atom" in the marketplace and use settings

Settings

  1. Jupyter › Interactive Window › Text Editor: Execute Selection -> Yes
  2. Command + Shift + P -> install code command in PATH, then you can use "code xxx" to open files in command line

Python Set-up ​

See Python Environment Set-up

R Set-up ​

  1. Install R & R Studio
  2. R kernel for Jupyter : https://github.com/IRkernel/IRkernel

Resources ​

https://stackoverflow.com/https://discourse.jupyter.org/https://www.python.org/community/forums/https://docs.jupyter.org/en/latest/https://www.markdownguide.org/basic-syntax/

Built as an open learning notebook