From the course: Data Visualization in Python with Dash
Unlock the full course today
Join today to access over 25,200 courses taught by industry experts.
Hello World with Dash - Python Tutorial
From the course: Data Visualization in Python with Dash
Hello World with Dash
- [Instructor] It is traditional for developers to write a Hello World program when working with a new language or framework to ensure that the basic setup is correct. We saw this done with Dash in the last video. And here, we're going to look at the code for this minimum working example to see how it works. First of all, we have some inputs. So we input the dash module, and then we import HTML, which we'll be using to create HTML objects. Then we have the constructor on line four. This is creating the dash application. And now we have the layout. The layout of a dash app describes what the app looks like. The layout is a hierarchical tree of components. The dash HTML library provides classes for all of the HTML tags and the keyword arguments describe the HTML attributes like style, class name, and ID. So in line six, we have an example of this HTML library in use. We have a P object, which is a paragraph. This creates a…