anaconda-project.yml
file.
While there are various ways to modify this file—using the user interface or
a command-line interface—any changes to a project’s configuration will
persist for future project sessions and deployments, regardless of the method
you use.
conda install
to add a package using the conda environment during a session, as that method impacts the project temporarily, during the current session only.anaconda-project
commands only.
You’ll need to run these commands in a terminal.
To open a terminal window within a Jupyter Notebook editor session:
anaconda-project add-packages
followed by the package names and optionally the versions.
EXAMPLE: anaconda-project add-packages hvplot pandas=0.25
anaconda-project.yml
file. If this file is already open, close it and reopen it to see your changes.
To install packages from a specific channel:
EXAMPLE: anaconda-project add-packages -c conda-forge tranquilizer
anaconda-project
commands must be run from the lab_launch
environment. This is the default environment when using the Jupyter Notebook terminal. For JupyterLab, it will be the first terminal on left. If your terminal prompt is not (lab_launch)
, you can activate it with the command conda activate lab_launch
.channel_alias
for conda in Anaconda Enterprise is configured to point to the internal package repository, which means that short channel names will refer to channels in the internal package repository.anaconda-project add-packages bokeh -c https://conda.anaconda.org/pyviz
in a command or in anaconda-project.yml
. The channel_alias
can be customized by an administrator, which affects all sessions and deployments.
If you are working in an air-gapped environment (without internet access), your Administrator will need to mirror the packages into your organization’s internal package repository for you to be able to access them.
pip:
section of anaconda-project.yml
. For example:
anaconda-project.yml
file to include the pip packages you want to install, run the anaconda-project prepare
command to install the packages.
sudo yum install
followed by the package name.
EXAMPLE: sudo yum install sqlite
anaconda-project.yml
file. The system package must be available in an Anaconda Enterprise channel for it to be installed correctly via the anaconda-project.yml
file.new_env
with notebook, pandas, and bokeh:
notebook
package for the environment to edit and run notebooks in either the Jupyter Notebook or JupyterLab editors.anaconda-project
command ensures that the environment will prepare correctly when the session is restarted. For more information about anaconda-project
commands type anaconda-project --help
.preparing
. When the environment has finished initializing, it will be replaced by a file named prepare.log
.
anaconda-project prepare
command is written to /opt/continuum/preparing
, and when the command completes, the log is moved to /opt/continuum/prepare.log
.anaconda-project.yml
:
anaconda-project add-command --type notebook default data-science-notebook.ipynb
The following are example deployment commands you can use:
For a Notebook:
main.py
file:
anaconda-project--
arguments (like Panel) supports_http_options: True
must be added to the command.anaconda-project.yml
and verify your project will deploy successfully:
anaconda44_py35
with the name of your environment, if it’s different:test_deployment
command. You can view the deployment commands for your project from the projects .yml
configuration file.
commands:
section of the projects .yml
configuration file will be run.+
button next to VARIABLES. Provide the name, description and default value of all variables you require.MY_VAR
to hello
.: