Environments
Environments¶
Every JupyterHub server is being spawned with two environments from the start - default python environment and an additional conda environment. On Launcher tab under Notebook or Console you can choose which environment to use. You can also use the Terminal:
Python Virtual Environments¶
Each environment has their own independent set of Python packages installed in their site directories. A virtual environment is created on top of an existing Python installation, known as the virtual environment’s base Python, and may be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available. Python Virtual Environment Docs.
Make sure you create these environments in the /home/jovyan directory or they will get deleted.
-
Add New Environments:
-
Activate Different Environment:
-
Install Packages:
-
Uninstall Packages:
-
Show Packages In Environment:
-
Deactivate Current Environment:
-
Delete Environment:
Conda Environments¶
Each environment has their own independent set of Python or Conda packages installed. Conda Environments Docs. Guide - using pip inside conda environment.
Make sure you create these environments in the /home/jovyan directory or they will get deleted.
You can check environment names and locations with:
-
Add New Environments:
-
Activate Different Environment:
-
Install Packages:
-
Uninstall Packages:
-
Show Packages In Environment:
-
Create Kernel From Environment:
-
Deactivate Current Environment:
-
Delete Environment: