Configuring your shell¶
The JupyterLab Terminal runs the bash
shell.
You can configure your bash
environment (including environment variables, aliases, and functions) by editing the ~/.bashrc
file.
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.
Note
Environment variables that you set in ~/.bashrc
are not available from notebooks.
You can add such environment variables to you ~/notebooks/.user_setups
file, see Export environment variables for notebooks.