Working Environment Set-up for Data Scientists
Last updated: 2026-07-21
Basic Tools Installation and Set-up
Macbook Basic Set-up
- set up iterms2
- you can customize settings and colors of iterms2, for example, using a color theme.
- use zsh
- difference between bash ans zsh
- Zsh is compatible with most Bash syntax but lacks compatibility with some Bash file wildcards, specifically the use of *.
- 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.
- use zsh for $SHELL
- difference between bash ans zsh
- install oh-my-zsh
- a configuration framework for zsh, which can help simplify the configuration of zsh, providing convenient plugin management and theme configuration functions.
- browse themes
- recommend: download powerlevel10k by following instructions
bashgit 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" - browse plug-ins
- recommend some of the zsh plugins such as syntax-highlighting
- ls replacement: download colorls and lsd
- secret manager: secman
- 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 - install Homebrew
- Install developer toolkitsbash
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.
- Install Git
- 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)
- download VS Code
- VS Code Extensions
- Markown Extension Pack
- Python Extension Pack which includes must-have python environment tools and Jupyter.
- PyLance
- Git Extension Pack
- Path Intellisense: autocomplete file paths
- CodeSnap or CodeSnap plus
- Themes: Search themes for example, "Atom" in the marketplace and use settings
Settings
- Jupyter › Interactive Window › Text Editor: Execute Selection -> Yes
- Command + Shift + P -> install code command in PATH, then you can use "code xxx" to open files in command line
Python Set-up
R Set-up
- Install R & R Studio
- 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/