Coder Social home page Coder Social logo

savannahostrowski / jupyter-mercury-aca Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 4.0 443 KB

๐Ÿ“ˆ A web application used for hosting, sharing and interacting with Jupyter Notebooks via Mercury, hosted on Azure Container Apps.

License: MIT License

Dockerfile 0.77% Bicep 93.46% Jupyter Notebook 5.77%
azd-templates azure data-science jupyter-notebook mercury python python3 template

jupyter-mercury-aca's Introduction

A web application for sharing interactive Jupyter notebooks using Mercury

This is a skeleton repo/template/blueprint that renders runnable, interactive Jupyter Notebooks in the browser using Mercury via Azure Container Apps.

It includes:

  • Application code in the src/ directory (really just a sample Jupyter Notebook, generated by Mercury)
  • Infrastructure as Code (in the /infra directory), written in Bicep, that provision Azure resources and specify how to deploy the code on Azure

Prerequisites

Quickstart

The fastest way for you to get this application up and running on Azure is to use the azd up command. This single command will create and configure all necessary Azure resources - including access policies and roles for your account and service-to-service communication with Managed Identities.

  1. Open a terminal, create a new empty folder, and change into it.
  2. Create a new Python virtual environment (optional but highly recommended)
  3. Run the following command to initialize the project, provision Azure resources, and deploy the application code.
azd init --template savannahostrowski/jupyter-mercury-aca
azd up

At the end of this step, you'll be able to visit a URL to see the web app + the Jupyter notebooks in src/.

How to modify this template to make it your own!

In the src/ directory, you'll find a sample notebook generated by Mercury. You can remove this file and replace it with your own Jupyter notebook(s). Remember to pip install the Python package dependencies for any notebooks you add to the app and pip freeze > requirements.txt to save the deps (this is important for installing the deps in the container)! Whenever, you're ready, re-run azd deploy to redeploy the code to the resources on Azure!

Don't have an Azure subscription?

In order to use this template, you'll need an Azure subscription. If you don't already have one, you can sign up for a free account here.

Other resources

jupyter-mercury-aca's People

Contributors

savannahostrowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jupyter-mercury-aca's Issues

Execution history is broken

Intermittently cannot navigate to previous runs (404s) + also toggles don't take effect (also the dropdown to navigate disappears?)

'applicationsInsight' provisioning is missing and causing `azd up` to fail

This error is showing up during the provisioning process:

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
ResourceNotFound: The Resource 'Microsoft.Insights/components/appi-h4z5s5dlksjbe' under resource group 'rg-qdrant' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

I'll create a PR to fix it soon.

VSCode support

local run and debug configurations
devcontainer definition

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.