From d207365d3424d4ba9fcfb19387d8ff3aedeca653 Mon Sep 17 00:00:00 2001 From: Vasu Bhog Date: Thu, 17 Jun 2021 23:44:02 -0700 Subject: [PATCH 1/3] Parameterization Notebook Sample --- .../azure-data-studio/parameterization.ipynb | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 samples/applications/azure-data-studio/parameterization.ipynb diff --git a/samples/applications/azure-data-studio/parameterization.ipynb b/samples/applications/azure-data-studio/parameterization.ipynb new file mode 100644 index 00000000..8adf8985 --- /dev/null +++ b/samples/applications/azure-data-studio/parameterization.ipynb @@ -0,0 +1,79 @@ +{ + "metadata": { + "kernelspec": { + "name": "python3", + "display_name": "Python 3", + "language": "python" + }, + "language_info": { + "name": "python", + "version": "3.6.8", + "mimetype": "text/x-python", + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "pygments_lexer": "ipython3", + "nbconvert_exporter": "python", + "file_extension": ".py" + } + }, + "nbformat_minor": 2, + "nbformat": 4, + "cells": [ + { + "cell_type": "markdown", + "source": [ + "# Parameterization in Azure Data Studio" + ], + "metadata": { + "azdata_cell_guid": "de96a5d8-105e-403d-a284-134eef3d8533" + } + }, + { + "cell_type": "code", + "source": [ + "x = 2.0\n", + "y = 5.0" + ], + "metadata": { + "azdata_cell_guid": "45afab06-c690-4c94-a67c-47690d93c28d", + "tags": [ + "parameters" + ] + }, + "outputs": [], + "execution_count": 1 + }, + { + "cell_type": "code", + "source": [ + "addition = x + y\n", + "multiply = x * y" + ], + "metadata": { + "azdata_cell_guid": "c962b295-06ee-4c1f-93c6-4d53fa347755" + }, + "outputs": [], + "execution_count": 2 + }, + { + "cell_type": "code", + "source": [ + "print(\"Addition: \" + str(addition))\n", + "print(\"Multiplication: \" + str(multiply))" + ], + "metadata": { + "azdata_cell_guid": "d3c849f6-fd01-467d-9240-1e8831b5d19f" + }, + "outputs": [ + { + "name": "stdout", + "text": "Addition: 7.0\nMultiplication: 10.0\n", + "output_type": "stream" + } + ], + "execution_count": 3 + } + ] +} \ No newline at end of file From e0f8ef4712a09fdcdfd0e011b6e1422ab15dfa56 Mon Sep 17 00:00:00 2001 From: Vasu Bhog Date: Fri, 18 Jun 2021 14:06:16 -0700 Subject: [PATCH 2/3] add readme --- .../applications/azure-data-studio/README.md | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 samples/applications/azure-data-studio/README.md diff --git a/samples/applications/azure-data-studio/README.md b/samples/applications/azure-data-studio/README.md new file mode 100644 index 00000000..cb09314a --- /dev/null +++ b/samples/applications/azure-data-studio/README.md @@ -0,0 +1,66 @@ + +![](./media/solutions-microsoft-logo-small.png) + +# Azure Data Studio Notebook Samples + +Helpful notebooks for troubleshooting and new features in Azure Data Studio. + + +### Contents + +[About this sample](#about-this-sample)
+[Before you begin](#before-you-begin)
+[Run this sample](#run-this-sample)
+[Sample details](#sample-details)
+[Disclaimers](#disclaimers)
+[Related links](#related-links)
+ + + + +## About this sample + + +- **Applies to:** Azure Data Studio +- **Key features:** Notebook Samples +- **Programming Language:** SQL & Python Notebooks +- **Authors:** Vasu Bhog [vabhog] + + + +## Before you begin + +To run this sample, you need the following prerequisites. + +**Software prerequisites:** + + +1. Azure Data Studio 1.30.0 +2. Python + + +## Run this sample + + + +For Parameterization.ipynb Sample: +1. From Azure Data Studio, open the **Notebook** file. +2. Follow docs for paremeteization [here](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/parameterize-papermill). + + +## Sample details + +This Notebook allows users to follow along the docs as well as use a already parameterized notebook. + +## Related Links + + +For more information, see these articles: +* [Notebooks Overview](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/notebooks-guidance) +* [SQL Kernel](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/notebooks-sql-kernel) +* [Python Kernel](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/notebooks-python-kernel) +* [Kusto Kernel](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/notebooks-kusto-kernel) +* [KqlMagic](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/notebooks-kqlmagic) +* [Papermill Parameterization](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/parameterize-papermill) +* [URI Parameterization](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/parameterize-uri) +* [Run with Parameters](https://docs.microsoft.com/en-us/sql/azure-data-studio/notebooks/run-with-parameters) From feef85c60f50aecf9e5cb21e7c891affe99b6d55 Mon Sep 17 00:00:00 2001 From: Vasu Bhog Date: Fri, 18 Jun 2021 14:09:35 -0700 Subject: [PATCH 3/3] fix readme --- samples/applications/azure-data-studio/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/applications/azure-data-studio/README.md b/samples/applications/azure-data-studio/README.md index cb09314a..f3482555 100644 --- a/samples/applications/azure-data-studio/README.md +++ b/samples/applications/azure-data-studio/README.md @@ -12,7 +12,6 @@ Helpful notebooks for troubleshooting and new features in Azure Data Studio. [Before you begin](#before-you-begin)
[Run this sample](#run-this-sample)
[Sample details](#sample-details)
-[Disclaimers](#disclaimers)
[Related links](#related-links)