"Hello World" H2O Wave Web App in Python [H2O.ai WAVE Tutorial]

1littlecoder · Beginner ·🛠️ AI Tools & Apps ·5y ago

Key Takeaways

This video teaches building a Hello World H2O Wave Web App in Python using H2O Wave's Documentation

Full Transcript

hey friends welcome to one little coder in this video we are going to learn how to build a first hello world H2O W application the H2O wave application is um basically a software stack that helps you build a web application and the previous video we learned how to install H2 if you have not seen it please check it out it's it's um it's a pretty simple process so in this video we learn how to build our first Hollow World application we going to uh follow their tutorial pretty much not going to do anything different uh so the first step is you need to run your existing uh wave server so if you have already got a wave server make sure uh that you invoke it so first get your terminal and once you have your terminal let me increase the size of the terminal if you cannot see it let me increase the size think this is this is decent let me put this in one side this in one side I hope you can see that okay so now that we have this the first step is you have to you have to run uh wave so wherever you have installed wave and if you have followed their tutorial probably you would have installed wave your home directory um wave and then you can go there and then do waved once you do this thing you can see that at this point the wave server is uh initiated so you can basically go to Local Host um Local Host I think the URL is uh the port number is 1 let me just quickly check the port number um it is still loading that's uh that's quite bad or what worth yeah uh okay okay let's uh let's see this um host one 01 okay it's it's it's searching myo that's fine that uh we'll get to it uh so it's basically one1 that's support in which it is running so you can see it is saying wait waiting for Content that means now you can be sure that your wable application is successfully running so uh this is one uh once you you know that your wave application is running so it's better you create a new environment so now is the place where you are going to um uh put your wave application so make sure that um you want to put it in a place so what I want to do is I want to create a a docu uh a directory uh where I usually keep my python codes uh I'm going to call it wave apps okay uh inside wave apps I'm going to enter into wave apps okay so once I'm into wave apps um I can I can just start with my basic uh application so before even um I do that uh let's say I want to create a new directory get uh hello world okay so now at this point I've got uh my hello world uh you can see Hello World okay that's nice so you can either create a virtual environment only within this directory or you can uh you can have a virtual environment overall it's up to you Python 3 mvn VN so I'm uh I'm creating a virtual environment first that's what it is advisable so once I once the virtual environment is created then we are going to be in action so the virtual environment is created and then the first step is maybe like um we can we can first uh activate the virtual environment saying VN uh V bin activate permission okay I don't want to I don't want to deal with the permission issues uh so let me first quickly install the app uh sorry the package three install H2O so it's installing H2O wave first U that's the package that is required for us uh primarily to do this task so that is successfully installed so once that is successfully installed our next next step is for us to create a new file and for us to create a new uh wave file we can use any code editor in this case I'm going to invoke my vs code so my VSS code is loaded and within my vs code I'm going to just basically basically paste whatever they have uh um that we get in the help document then I'm going to save it within the same directory going to call it um okay uh let let me just quickly save it and then I'll show it to you I'm going to call it uh hello world I'm not going to give any special name for it wave apps hello world hello world. py okay as you can see this is basically copied from their documentation I've not done anything different I can explain this code so first of all uh wave so the wave if you see the server has a lot of pages so this is one page that we calling uh so whatever you are giving here that's going to be like uh your home URL something like that so you have uh we are importing site and UI so UI is going to help us add UI components so if you're familiar with um all of these um packages or libraries that help you create uh that help you create um um that help you create a web application simply so every Everything follows almost the same uh formula where um you have got a UI class and from there you can add the function that you want uh if you see streamlit uh you would probably import streamlit s SD and from there you would start adding UI components so you can see uh this this is basically a markdown card where you can start adding things in markdown so you can have markdown content uh not necessarily we have to have the same content we can say Hello World um let's say this is one little coder trying to show you H2O wave demo okay that sounds nice and this is a box position where it you wanted to appear on the page uh and finally you can save the page so loading the page so once you save the page uh the next thing that you want to do is let's take it down you want to go to the page where this is loading okay uh so you have to go to which is called uh in this case as hello sorry in this case it is called hello uh but uh that hello has to be loaded so that's why I want to show you first if you load Hollow you wouldn't basically see anything because there is nothing it's still waiting for the content so what you can do is you can go and run Python 3 okay it says no module uh that is primar because I was trying to run it just like that rather than activating my virtual environment so B Python 3 so at this point when you can see that the moment we ran the code you could see that this this uh successfully showed the demo so it says hello this is one little coder trying to show you H2O demo uh so the same way you can actually basically uh change it um you can go change whatever you want for example um you've got hello here so let's say instead of hello you want to say uh you want probably want to show it in the homepage itself so now you can say go viral environment and uh now instead of hello what we going to do is we are showing it in the homepage itself so these are uh the things that you can start doing like for example um instead of the markdown page now you can have something else or even in the content you can say um this is a okay this is a title let's see let's try to run it and then you can okay maybe it's not renting properly but uh you can start adding the content here you can have multiple cards here and that is how um you would basically start adding uh um the you would basically start adding the W um components to the wave application so this is um this is a very simple demo uh so basically we followed whatever they showed in the documentation and uh we started uh we started going through we we started with uh creating a directory to put our apps and then from that we created our own directory uh so maybe you can do like how I did it or you can have one virtual environment for all the W application it's up to you uh so you can basically do whatever you want to do and then um you install H2 wave Library python Library uh package for you to start using it in the code so as you know with any virtual environment whatever package that you want to use within code so you have to make sure that you are installing it once that is done then you add your code um whatever python file name it basically doesn't matter much because um this is the this is the place where you are actually defining the page the wave page and this will not work if you stop the server just wanted to show you you stop the server nothing works because of course the server is not running um so that's a main concept uh you now you have managed to successfully write your first wave application basically the hello wave hello world I'm saying hello wave hello world application uh but um yeah nonetheless it's a first step and happy coding so welcome to H2O wave let's hope that it's a good beginning

Original Description

In this video, We're going to use H2O Wave's Documentation to write our first H2O Wave Web App. The process involves us creating a working directory to put Wave apps, activating Wave server, creating a new Python Virtual Environment, Install H2O Wave library in that and then finally adding our Hello World program. H2O Wave - https://h2oai.github.io/wave/docs/getting-started/ Hello World Program - https://h2oai.github.io/wave/docs/tutorial-hello
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from 1littlecoder · 1littlecoder · 0 of 60

← Previous Next →
1 How to create your Free Data Science Blog on Github with Fastpages from Fastai
How to create your Free Data Science Blog on Github with Fastpages from Fastai
1littlecoder
2 Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
1littlecoder
3 Create your first Data Science Web App using R Shiny
Create your first Data Science Web App using R Shiny
1littlecoder
4 How to create a Reproducible Example in R using reprex
How to create a Reproducible Example in R using reprex
1littlecoder
5 No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
1littlecoder
6 Scrape HTML Table using rvest and Process them for insights using tidyverse in R
Scrape HTML Table using rvest and Process them for insights using tidyverse in R
1littlecoder
7 Google Teachable Machine Learning Build No Code AI solution
Google Teachable Machine Learning Build No Code AI solution
1littlecoder
8 Create meaningful fake tidy datasets in R using fakir [#rstats Package]
Create meaningful fake tidy datasets in R using fakir [#rstats Package]
1littlecoder
9 How to enable using R Programming with Visual Studio VS Code
How to enable using R Programming with Visual Studio VS Code
1littlecoder
10 Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
1littlecoder
11 Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
1littlecoder
12 Intro to Google Colab - How to use Colab
Intro to Google Colab - How to use Colab
1littlecoder
13 Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
1littlecoder
14 Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
1littlecoder
15 Do you want a career in Data Science - Tamil Webinar
Do you want a career in Data Science - Tamil Webinar
1littlecoder
16 Android Smartphone Analysis in R [Live Coding Screencast]
Android Smartphone Analysis in R [Live Coding Screencast]
1littlecoder
17 Programmatically create Images, Memes, Watermarks using Python with imgmaker
Programmatically create Images, Memes, Watermarks using Python with imgmaker
1littlecoder
18 Kaggle Walkthrough to get you started with Data Science - Webinar
Kaggle Walkthrough to get you started with Data Science - Webinar
1littlecoder
19 Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
1littlecoder
20 Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
1littlecoder
21 Excel to R - Pivot + Bar Chart in Excel  & R using tidyverse [Live Coding]
Excel to R - Pivot + Bar Chart in Excel & R using tidyverse [Live Coding]
1littlecoder
22 Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
1littlecoder
23 5 websites to get Free Real-World Datasets for Data Science/ML Projects
5 websites to get Free Real-World Datasets for Data Science/ML Projects
1littlecoder
24 Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
1littlecoder
25 Correlation-alternative PPS (Predictive Power Score) Python Package Demo
Correlation-alternative PPS (Predictive Power Score) Python Package Demo
1littlecoder
26 Automated Website Screenshots in R using {webshot}
Automated Website Screenshots in R using {webshot}
1littlecoder
27 Installing Custom RStudio Theme (Synthwave85)
Installing Custom RStudio Theme (Synthwave85)
1littlecoder
28 Analyse Google Trends Search Data in R using {gtrendsR}
Analyse Google Trends Search Data in R using {gtrendsR}
1littlecoder
29 3 Tips to ask question on Stack Overflow the right way to get answers
3 Tips to ask question on Stack Overflow the right way to get answers
1littlecoder
30 Learn Data Science with R - Mini Projects - Web Scraping Zomato
Learn Data Science with R - Mini Projects - Web Scraping Zomato
1littlecoder
31 Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
1littlecoder
32 GET Hackernews Front Page Results using REST API in R
GET Hackernews Front Page Results using REST API in R
1littlecoder
33 Quickly deploy ML WebApps from Google Colab using ngrok
Quickly deploy ML WebApps from Google Colab using ngrok
1littlecoder
34 Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
1littlecoder
35 Plotly Interactive Plots as Pandas Plotting Backend df.plot()
Plotly Interactive Plots as Pandas Plotting Backend df.plot()
1littlecoder
36 Stack Overflow Developer Survey 2020 Highlights for New Programmers
Stack Overflow Developer Survey 2020 Highlights for New Programmers
1littlecoder
37 Matplotlib Animation Charts in Python using Celluloid
Matplotlib Animation Charts in Python using Celluloid
1littlecoder
38 Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
1littlecoder
39 Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
1littlecoder
40 Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
1littlecoder
41 Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
1littlecoder
42 Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
1littlecoder
43 ggplot2 Text Customization with ggtext | Data Visualization in R
ggplot2 Text Customization with ggtext | Data Visualization in R
1littlecoder
44 Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
1littlecoder
45 YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
1littlecoder
46 Matplotlib Animated Bar Chart Race in Python | Data Visualization
Matplotlib Animated Bar Chart Race in Python | Data Visualization
1littlecoder
47 Simple Python GUI Development using {guietta}
Simple Python GUI Development using {guietta}
1littlecoder
48 #8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
#8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
1littlecoder
49 Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
1littlecoder
50 Github New Feature Profile Summary/Mini-Resume - Profile Views
Github New Feature Profile Summary/Mini-Resume - Profile Views
1littlecoder
51 Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
1littlecoder
52 What is OpenAI GPT-3 - Hype, Examples, Worries
What is OpenAI GPT-3 - Hype, Examples, Worries
1littlecoder
53 Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
1littlecoder
54 Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
1littlecoder
55 GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
1littlecoder
56 How to use Advanced Google Search to extract Email Ids from Linkedin
How to use Advanced Google Search to extract Email Ids from Linkedin
1littlecoder
57 Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
1littlecoder
58 Flow - R Package to visualize code logic, functions as a Flow Diagram
Flow - R Package to visualize code logic, functions as a Flow Diagram
1littlecoder
59 Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
1littlecoder
60 Create a Pencil Sketch Portrait with Python OpenCV
Create a Pencil Sketch Portrait with Python OpenCV
1littlecoder

Related Reads

📰
I Tried an AI Tool That Claims to Clone Any Website with One Command — Here’s Why It Failed
Learn why an AI tool that claims to clone any website with one command failed and what this means for web development and AI limitations
Dev.to · Kang Jian
📰
Cultivate Curiosity in Tech
Cultivate curiosity in tech to stay ahead in a rapidly evolving field
Dev.to · Fabio Sarmento
📰
From Apple Health Data to Clinical Storytelling: Building an AI-Powered Report with Python and Gemini
Learn to build an AI-powered report using Apple Health data and Python to create clinical storytelling with Gemini
Dev.to · Romina Elena Mendez Escobar
📰
Gemini Notebook: Vet Articles Before You Save
Use Gemini Notebook to vet articles before saving them to your knowledge base, saving time and increasing credibility
Medium · AI
Up next
How to Connect a Custom Domain to Lovable AI | Step-by-Step
Tutorial Stack
Watch →