Configuring your shell

Configuring ~/.bashrc

The JupyterLab Terminal runs the bash shell. You can configure your bash environment (including environment variables, aliases, and functions) by editing the ~/.bashrc file.

Note

In the current version of JupyterLab, the shell in the terminal is not spawned as a login shell. This means ~/.bash_profile is not sourced at startup time. See this issue for discussion of why this is.

Configuring the environment for notebooks

Environment variables that you set in ~/.bashrc are not available from notebooks. You can add such environment variables to your ~/notebooks/.user_setups file. See Configure the shell environment for notebook kernels.