Skip to content

adding cell metadata for extraction into docs #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

# Default owner for everything, unless overridden by a more specific rule.
* @Azure-Samples/azure-ai-samples-maintainers
/scenarios/resource-creation/basic/AIStudioHubAndProject.ipynb @sdgilley @msakande @Blackmist @ssalgadodev @lgayhardt @fbsolo-ms1
40 changes: 30 additions & 10 deletions scenarios/resource-creation/basic/AIStudioHubAndProject.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"cell_type": "code",
"execution_count": null,
"id": "84916e91",
"metadata": {},
"metadata": {
"name": "subscription"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could "name" be changed to be more descriptive (e.g. Azure-Docs-Code-Sample)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kdestin Unfortunately no. The docfx publishing system we use for docs.microsoft.com looks for the "name" tag. It'd take a feature request to the platform team to change it. The value of that tag has to be unique and can be whatever.

},
"outputs": [],
"source": [
"from azure.identity import DefaultAzureCredential\n",
Expand All @@ -51,7 +53,9 @@
"cell_type": "code",
"execution_count": null,
"id": "102bc0f4-3883-4f15-8add-552b165f3aeb",
"metadata": {},
"metadata": {
"name": "mlclient"
},
"outputs": [],
"source": [
"# Create a resource group\n",
Expand Down Expand Up @@ -82,7 +86,9 @@
"cell_type": "code",
"execution_count": null,
"id": "df454cfa-d8e4-45a3-918e-241397f613c5",
"metadata": {},
"metadata": {
"name": "resource-names"
},
"outputs": [],
"source": [
"## Hub\n",
Expand Down Expand Up @@ -131,7 +137,9 @@
"cell_type": "code",
"execution_count": null,
"id": "c770d5b6-aa51-43fa-90c9-7198acd4047d",
"metadata": {},
"metadata": {
"name": "create-hub"
},
"outputs": [],
"source": [
"from azure.ai.ml.entities import Hub\n",
Expand All @@ -156,7 +164,9 @@
"cell_type": "code",
"execution_count": null,
"id": "5fc32ab7-08ce-4d05-a820-9401d47f583a",
"metadata": {},
"metadata": {
"name": "create-project"
},
"outputs": [],
"source": [
"from azure.ai.ml.entities import Project\n",
Expand All @@ -181,7 +191,9 @@
"cell_type": "code",
"execution_count": null,
"id": "73972152",
"metadata": {},
"metadata": {
"name": "create-aiservices"
},
"outputs": [],
"source": [
"# Create AI Services resource, this may take a few minutes\n",
Expand Down Expand Up @@ -215,7 +227,9 @@
"cell_type": "code",
"execution_count": null,
"id": "9513ab57",
"metadata": {},
"metadata": {
"name": "create-connection"
},
"outputs": [],
"source": [
"aiservices_key = aiservices_client.accounts.list_keys(\n",
Expand Down Expand Up @@ -257,7 +271,9 @@
"cell_type": "code",
"execution_count": null,
"id": "e29d32c5-89ad-41c7-91ca-6aa16f707d4d",
"metadata": {},
"metadata": {
"name": "create-deployment"
},
"outputs": [],
"source": [
"from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient\n",
Expand Down Expand Up @@ -312,7 +328,9 @@
"cell_type": "code",
"execution_count": null,
"id": "6c4219d3",
"metadata": {},
"metadata": {
"name": "create-aisearch"
},
"outputs": [],
"source": [
"from azure.mgmt import search as Se\n",
Expand Down Expand Up @@ -366,7 +384,9 @@
"cell_type": "code",
"execution_count": null,
"id": "d5cd467b-51e7-4bbe-a236-cbe5c646087a",
"metadata": {},
"metadata": {
"name": "update-client"
},
"outputs": [],
"source": [
"ml_client = MLClient(\n",
Expand Down
Loading