Skip to content

Commit 7d6a0a2

Browse files
committed
update samples from Release-108 as a part of SDK release
1 parent 6cc8af8 commit 7d6a0a2

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/aml-pipelines-showcasing-dataset-and-pipelineparameter.ipynb

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
"outputs": [],
4848
"source": [
4949
"import azureml.core\n",
50-
"from azureml.core import Workspace, Experiment, Dataset\n",
50+
"from azureml.core import Workspace, Experiment, Dataset, RunConfiguration\n",
5151
"from azureml.core.compute import ComputeTarget, AmlCompute\n",
52+
"from azureml.core.environment import CondaDependencies\n",
5253
"from azureml.data.dataset_consumption_config import DatasetConsumptionConfig\n",
5354
"from azureml.widgets import RunDetails\n",
5455
"\n",
@@ -223,6 +224,18 @@
223224
"Note that the ```file_ds_consumption``` and ```tabular_ds_consumption``` are specified as both arguments and inputs to create a step."
224225
]
225226
},
227+
{
228+
"cell_type": "code",
229+
"execution_count": null,
230+
"metadata": {},
231+
"outputs": [],
232+
"source": [
233+
"conda_dep = CondaDependencies()\n",
234+
"conda_dep.add_pip_package(\"pandas\")\n",
235+
"\n",
236+
"run_config = RunConfiguration(conda_dependencies=conda_dep)"
237+
]
238+
},
226239
{
227240
"cell_type": "code",
228241
"execution_count": null,
@@ -235,7 +248,8 @@
235248
" arguments=[\"--param1\", file_ds_consumption, \"--param2\", tabular_ds_consumption],\n",
236249
" inputs=[file_ds_consumption, tabular_ds_consumption],\n",
237250
" compute_target=compute_target,\n",
238-
" source_directory=source_directory)\n",
251+
" source_directory=source_directory,\n",
252+
" runconfig=run_config)\n",
239253
"\n",
240254
"print(\"train_step created\")\n",
241255
"\n",
@@ -498,7 +512,7 @@
498512
"pygments_lexer": "ipython3",
499513
"version": "3.6.7"
500514
},
501-
"order_index": 13,
515+
"order_index": 13.0,
502516
"star_tag": [
503517
"featured"
504518
],

0 commit comments

Comments
 (0)