Web app deployment easy with anvil

ADITYA DASADITYA DAS
3 min read

1. What is anvil platform ๐Ÿ™„

5555.PNG

Anvil is a platform for building full-stack web apps entirely in Python. It makes it easy to build and deploy full-stack machine learning apps. It is easy-to-use and open-source. We will use the framework for this build.

Deployment is not a easy task without a great tool right ๐Ÿค”, I face this deployment problem in my machine learning project. The rough idea behind anvil is mention below

IMG20220922100959.jpg

Also we can run onsite network by using private onsite anvil installation in same way.

IMG20220922101520.jpg

The anvil server basically give the output to the executable machine learning model in jupyter notebook and predict this output with high accuracy according to the model and send the information to the anvil server. Finally we can get the result and display on anvil UI.

2. Why anvil ๐Ÿ’๐Ÿปโ€โ™‚๏ธ๐Ÿ’๐Ÿปโ€โ™€๏ธ

7845.PNG

3. How deployment works here ๐Ÿš€

illustration-people-pushing-globe-rocket-1.png

  • Set up a Jupyter Notebook
  • Connect it to an Anvil app
  • Make a UI

Step 1: login into anvil and click create app option

00001.PNG

Click on the setting button on upper left corner and click in uplink option

00002.PNG

Enable the uplink option and copy the uplink key for leter use

00004.PNG

00005.PNG

Finally install anvil in your local system

pip install anvil-uplink

ezgif.com-gif-maker (1).gif

Step 2: Setup the uplink to jupyter notebook

Use the uplink key here to connect the UI

0007.PNG

Step 3: Finally design UI

0008.PNG

Setup the server uplink with the UI and click on run button on the top of the page.

00008.PNG

Finally publish your app and share the public url

8888.PNG

4. Advantages of using anvil ๐Ÿงญ

5361079.png

5. Get Involve ๐Ÿšฉ

online-studying-flat-concept-with-people-characters-illustration_9209-4455.jpg

6. Resources

๐Ÿšฉ https://anvil.works/

๐Ÿšฉ https://anvil.works/docs/overview

๐Ÿšฉ https://anvil.works/learn/tutorials/feedback-form

๐Ÿšฉ https://www.youtube.com/c/Anvil-works

That's all for this blog, I hope you will learn something new. And feel free to share your thoughts and feedback, Thanks for reading.

Feel free to reach out me ๐Ÿ‘€

Twitter ๐Ÿ–ฑ

LinkedIn ๐Ÿ–ฑ

Github ๐Ÿ–ฑ

20
Subscribe to my newsletter

Read articles from ADITYA DAS directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

ADITYA DAS
ADITYA DAS

Hi, i am a post graduate (MCA) student and a open source contributor.