https://github.com/heaths/azure-sdk-notebooks
Azure SDK examples in Jupyter Notebooks
https://github.com/heaths/azure-sdk-notebooks
Last synced: about 2 months ago
JSON representation
Azure SDK examples in Jupyter Notebooks
- Host: GitHub
- URL: https://github.com/heaths/azure-sdk-notebooks
- Owner: heaths
- License: mit
- Created: 2020-09-02T06:03:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T20:05:40.000Z (over 5 years ago)
- Last Synced: 2025-01-01T10:16:46.080Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Interactive Azure SDK Samples
These samples use [Jupyter](https://jupyter.org) to host different runtimes that allow you to experience the Azure SDK interactively.
## Getting Started
The easiest way to run these samples is to install [Docker](https://docker.com) and run a container with everything you need. On Windows, running [Docker on Windows Subsystem for Linux version 2 (WSL2)](https://docs.docker.com/docker-for-windows/wsl) is the fastest option.
### Visual Studio Code: Development Containers
You can open this workspace directory in [Visual Studio Code](https://code.visualstudio.com) with the [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) and [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extensions installed.
Soon after Code has opened, you should be prompted to reopen Code in a container automatically; however, you can also do so manually:
1. Press `F1` (default binding) to open the command window.
2. Type "Remote-Containers: Reopen in Container" and press enter with the command selected.
This will restart Code and build the container, which may take a few minutes. After the workspace folder is displayed in Code, you can open or create _\*.ipynb_ notebooks, execute command blocks, or make changes as desired.
If you would like to use the Jupyter Notebook browser experience instead, navigate to .
### Docker
You can also manually build and run the container:
1. Build the container:
```bash
docker build -t azure-sdk-notebooks .devcontainer
```
2. Start the container:
```bash
docker run -it --rm -p 8888:8888 -v "${PWD}:/home/jovyan/work" azure-sdk-notebooks
```
3. Navigate to or, if using [Visual Studio Code](https://code.visualstudio.com) with the Python extension installed, paste that link into the prompt after running `Python: Specify local or remote Jupyter server for connections`.
When finished, click `Ctrl+C` twice in the terminal to close the connection and shut down the container. If `--rm` was passed to `docker run`, the container is automatically deleted but any changes to the file system will be saved since you passed a volume mount using `-v`.