Git Product home page Git Product logo

packtpublishing / interactive-dashboards-and-data-apps-with-plotly-and-dash Goto Github PK

View Code? Open in Web Editor NEW
248.0 13.0 148.0 25.73 MB

Interactive Dashboards and Data Apps with Plotly and Dash, published by Packt

Home Page: https://povertydata.org/

License: MIT License

Jupyter Notebook 93.67% Python 0.15% HTML 6.18%
dashboard python plotly data-visualization plotly-dash frontend analytics

interactive-dashboards-and-data-apps-with-plotly-and-dash's Introduction

Interactive Dashboards and Data Apps with Plotly and Dash

Interactive Dashboards and Data Apps with Plotly and Dash

This is the code repository for Interactive Dashboards and Data Apps with Plotly and Dash, published by Packt.

Harness the power of a fully fledged frontend web framework in Python โ€“ no JavaScript required

What is this book about?

With Plotly's Dash framework, it is now easier than ever for Python programmers to develop complete data apps and interactive dashboards. Dash apps can be used by a non-technical audience, and this will make data analysis accessible to a much wider group of people. This book will help you to explore the functionalities of Dash for visualizing data in different ways and getting the most out of it.

This book covers the following exciting features:

  • Find out how to run a fully interactive and easy-to-use app
  • Convert your charts to various formats including images and HTML files
  • Use Plotly Express and the grammar of graphics for easily mapping data to various visual attributes
  • Create different chart types, such as bar charts, scatter plots, histograms, maps, and more
  • Expand your app by creating dynamic pages that generate content based on URLs

Learn how to build a fully customized dashboard using a real-life dataset.

In this book, we also go through The World Bank's Poverty and Equity Database to build an interactive dashboard, that allows users to interactivley create the chart they want and make the comparisons they want.

By the end of the book, you will have built and deployed this Plotly Dash app online, which is available for you to test and play with.

Although every chapter builds on previous chapters, each new functionality is first built as a mini independent app, and works on its own. These can be found in the JupyterLab notebooks in each of the respective chapters.

You also get a $100 hosting credit from Linode (to be consumed within 60 days of creating your account), so you can test it on an actual server and share it with the world.

Watch here the evolution of the Dash app that we build, going through chapters one by one.

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, chapter02.

The code will look like the following:

import plotly.express as px
gapminder = px.data.gapminder()
gapminder

Following is what you need for this book: This Plotly Dash book is for data professionals and data analysts who want to gain a better understanding of their data with the help of different visualizations and dashboards. Basic to intermediate-level knowledge of the Python programming language will help you to grasp the concepts covered in this book more effectively.

Software and Hardware List

You will need a system with a good internet connection and an AWS account.

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Code in Action

Click on the following link to see the Code in Action: [https://bit.ly/3vaXYQJ]

Related products

Get to Know the Author

Elias Dabbas

is an online marketing and data science practitioner. Combining both fields, he produces open source software for building dashboards and data apps, as well as software for online marketing. He is the author and maintainer of advertools, a Python library that provides various digital marketing tools, with a focus on SEO, SEM, crawling, and text analysis.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781800568914

interactive-dashboards-and-data-apps-with-plotly-and-dash's People

Contributors

davids-packt avatar eliasdabbas avatar packt-itservice avatar tcbegley avatar utkarsha-packt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

interactive-dashboards-and-data-apps-with-plotly-and-dash's Issues

cant install jupyterlab plotly extension , running Windows 11 pro

Hi; I am following the book and on page 5, setting up envronment, you say to run command: upyter labextension install [email protected].

I get the following error:

Traceback (most recent call last):
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyter_server\services\sessions\sessionmanager.py", line 9, in
import sqlite3
File "C:\Users\steve\anaconda3\pkgs\python-3.8.5-h5fd99cc_1\lib\sqlite3_init_.py", line 23, in
from sqlite3.dbapi2 import *
File "C:\Users\steve\anaconda3\pkgs\python-3.8.5-h5fd99cc_1\lib\sqlite3\dbapi2.py", line 27, in
from _sqlite3 import *
ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\steve\anaconda3\pkgs\python-3.8.5-h5fd99cc_1\lib\runpy.py", line 194, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\steve\anaconda3\pkgs\python-3.8.5-h5fd99cc_1\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\steve\OneDrive\Documents\Interactive_dashboards_dash_book\dash_project\Scripts\jupyter-labextension.EXE_main
.py", line 4, in
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyterlab_init
.py", line 7, in
from .labapp import LabApp
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyterlab\labapp.py", line 15, in
from jupyterlab_server import slugify, WORKSPACE_EXTENSION
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyterlab_server_init.py", line 4, in
from .app import LabServerApp
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyterlab_server\app.py", line 11, in
from jupyter_server.extension.application import ExtensionApp, ExtensionAppJinjaMixin
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyter_server\extension\application.py", line 21, in
from jupyter_server.serverapp import ServerApp
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyter_server\serverapp.py", line 80, in
from .services.sessions.sessionmanager import SessionManager
File "c:\users\steve\onedrive\documents\interactive_dashboards_dash_book\dash_project\lib\site-packages\jupyter_server\services\sessions\sessionmanager.py", line 12, in
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'

How to redeem hosting credits at Linode?

On the github page it says:

You also get a $100 hosting credit from Linode (to be consumed within 60 days of creating your account), so you can test it on an actual server and share it with the world.

How do we redeem this?

Adding tags and URL

@utkarsha-Packt

Can we please have the app's URL at the top of the repo as the main link?

https://povertydata.org/

Also, it would be great if we add the following topics to the repo:

python
plotly
dashboard
data-visualization
plotly-dash
frontend
analytics

Thanks a lot!

pip install - ERROR: Failed building wheel for numpy

Hello, i'm on page 5 and attempted to install the requirements.txt but I am receiving an unusual error. (See error.txt below).
error.txt

I can install the numpy version 1.24.2 but the requirements.txt calls for 1.20.1. I played around with this a bit and can't install 1.20.1 and I altered the requirements.txt file to have version 1.24.2 with no luck. I also removed/commented the line out but it still errors out.

FWIW I'm running on an Apple M1 MacBook. I don't know if there's some sort of incompatibility issue here.

python = 3.9.6
pip = 23.0.1
wheel = 0.38.4

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.