Skip to content

Commit 5c3e747

Browse files
Fix formatting and structure in quickstart notebook
1 parent 15d6fe9 commit 5c3e747

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tutorials/get-started-notebooks/quickstart.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,18 @@
540540
"metadata": {},
541541
"source": [
542542
"Deploy the latest version of the model. "
543-
{
544-
"cell_type": "code",
545-
"metadata": {
546-
"language": "python"
543+
]
547544
},
545+
{
546+
"cell_type": "code",
547+
"metadata": {
548+
"language": "python"
549+
},
548550
"source": [
549551
"# Create the scoring script for the deployment",
552+
"deploy_dir = \"./deploy\"",
553+
"os.makedirs(deploy_dir, exist_ok=True)",
554+
"",
550555
"score_script = \"\"\"",
551556
"import json",
552557
"import numpy as np",
@@ -567,15 +572,11 @@
567572
"",
568573
"print('Scoring script created at:', os.path.join(deploy_dir, 'score.py'))"
569574
]
570-
}
571-
]
572-
},
575+
},
573576
{
574577
"cell_type": "code",
575578
"execution_count": null,
576-
"metadata": { {
577-
"language": "python"
578-
},
579+
"metadata": {
579580
"gather": {
580581
"logged": 1679004373833
581582
},
@@ -596,12 +597,11 @@
596597
" name=\"blue\",",
597598
" endpoint_name=online_endpoint_name,",
598599
" model=model,",
599-
"environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
600600
" code_configuration=CodeConfiguration(",
601601
" code=deploy_dir,",
602602
" scoring_script='score.py'",
603603
" ),",
604-
" instance_type=\"Standard_DS3_v2\",\n",
604+
" instance_type=\"Standard_DS3_v2\",",
605605
" instance_count=1,",
606606
")",
607607
"",

0 commit comments

Comments
 (0)