anaconda-project.yml
file to demonstrate how to use a scheduled deployment task with scripts and notebooks:
python
executable that’s consistent with the packages specified in the anaconda-project.yml
file—in this example, a Python 3.7 Notebook.
The following excerpt of an example anaconda-project.yml
file uses an appropriate python
executable.
task.py
runs the following code, which will print the time and date when the script runs.
notebook:
command, as that command starts an interactive Jupyter session.
Instead, you can specify a unix:
command to execute a Jupyter notebook.
For example, create a simple notebook named task.ipynb
, with a single cell:
run_nb.sh
that contains the following:
run_nb.sh
script runs the nbconvert tool against the notebook file, and ensures that:
anaconda-project.yml
file for the task.ipynb
notebook: